Azure PowerShell Error - Output of Get-AzureRmLocation changes when stored to variable -
in azure powershell, version 1.5, when write line below:
get-azurermlocation | {$_.displayname -eq "east 2"}
i following (expected) output console:
- location: eastus2
- displayname: east 2
- providers: {microsoft.automation, microsoft.backup...}
however, when instead write following code, *which should (in understanding) have exact same output above:
$location = get-azurermlocation | {$_.displayname -eq "east 2"} $location
i see different output console:
- microsoft.azure.commands.resourcemanager.cmdlets.sdkmodels.psresourceproviderlocation
further, if want call of properties expect object returned get-azurermlocation (such displayname property), error.
picture attached prove i'm not losing mind: error
what going on?
Comments
Post a Comment