Skip to content

Commit 8da70c7

Browse files
authored
add powershell az list parity with azure cli example
Add code so Azure PowerShell output is the same as the Azure CLI, which lists the AZs per region
1 parent 1714cb9 commit 8da70c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

articles/reliability/availability-zones-overview.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ az rest --method get \
7676
$subscriptionId = (Get-AzContext).Subscription.ID
7777
$response = Invoke-AzRestMethod -Method GET -Path "/subscriptions/$subscriptionId/locations?api-version=2022-12-01"
7878
$locations = ($response.Content | ConvertFrom-Json).value
79+
$locations | Where-Object {$null -ne $_.availabilityZoneMappings} | Select-Object -Property name,displayName,@{name='availabilityZoneMappings';expression={$_.availabilityZoneMappings | convertto-json}} | Format-List
7980
```
8081

8182
---

0 commit comments

Comments
 (0)