Skip to content

Commit ecda790

Browse files
authored
Add example on Get-AzLocation (#14608)
* Add example on Get-AzLocation * fix typo
1 parent 23ecf1a commit ecda790

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/Resources/Resources/help/Get-AzLocation.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,26 @@ PS C:\>Get-AzLocation
2929

3030
This command gets all locations and the supported resource providers for each location.
3131

32+
### Example 2: Get all locations supporting resource provider Microsoft.AppConfiguration
33+
```
34+
PS C:\>Get-AzLocation | Where-Object {$_.Providers -contains "Microsoft.AppConfiguration"}
35+
36+
Location : eastasia
37+
DisplayName : East Asia
38+
Providers : {Microsoft.Devices, Microsoft.Cache, Microsoft.AppConfiguration, microsoft.insights…}
39+
40+
Location : southeastasia
41+
DisplayName : Southeast Asia
42+
Providers : {Microsoft.Devices, Microsoft.Cache, Microsoft.AppConfiguration, microsoft.insights…}
43+
44+
Location : centralus
45+
DisplayName : Central US
46+
Providers : {Microsoft.Devices, Microsoft.Cache, Microsoft.AppConfiguration, microsoft.insights…}
47+
...
48+
```
49+
50+
This example gets all locations which supports resource provider "Microsoft.AppConfiguration".
51+
3252
## PARAMETERS
3353

3454
### -ApiVersion

0 commit comments

Comments
 (0)