Skip to content

Commit ec7ea85

Browse files
Merge pull request #298799 from mbrat2005/mbrat2005-az-cli-pwsh-list
Availability Zone List Sample Script: add powershell az list parity with azure cli example
2 parents f44a572 + 8da70c7 commit ec7ea85

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)