In this Azure PowerShell article, we will discuss the syntax and usage of Get-AzLocation Azure PowerShell cmdlet with examples.
Get-AzLocation
Get-AzLocation is an excellent Azure PowerShell cmdlet that helps you to retrieve the location details and their supported resource providers.
syntax
Below is the syntax of Get-AzLocation Azure PowerShell cmdlet.
Get-AzLocationExample: Run the below Azure PowerShell cmdlet that helps you getting all the location details and supported resource providers for each locations.
Get-AzLocationWhen I ran the above Azure PowerShell cmdlet I got the below output.
PS C:\WINDOWS\system32> Get-AzLocation
Location : eastus
DisplayName : East US
Type : Region
Longitude : -79.8164
Latitude : 37.3719
PhysicalLocation : Virginia
RegionType : Physical
RegionCategory : Recommended
GeographyGroup : US
PairedRegion : [
{
"Name": "westus",
"Id": "/subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1
/locations/westus",
"SubscriptionId": null
}
]
Providers : {Microsoft.Cdn, Microsoft.DevTestLab, Microsoft.ManagedIdentity,
Microsoft.Storage...}
Location : eastus2
DisplayName : East US 2
Type : Region
Longitude : -78.3889
Latitude : 36.6681
PhysicalLocation : Virginia
RegionType : Physical
RegionCategory : Recommended
GeographyGroup : US
PairedRegion : [
{
"Name": "centralus",
"Id": "/subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1
/locations/centralus",
"SubscriptionId": null
}
]
Providers : {Microsoft.Cdn, Microsoft.DevTestLab, Microsoft.ManagedIdentity,
Microsoft.Storage...}
Location : southcentralus
DisplayName : South Central US
Type : Region
Longitude : -98.5
Latitude : 29.4167
PhysicalLocation : Texas
RegionType : Physical
RegionCategory : Recommended
GeographyGroup : US
PairedRegion : [
{
"Name": "northcentralus",
"Id": "/subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1
/locations/northcentralus",
"SubscriptionId": null
}
]
Providers : {Microsoft.Cdn, Microsoft.DevTestLab, Microsoft.ManagedIdentity,
Microsoft.Storage...}
Location : westus2
DisplayName : West US 2
Type : Region
Longitude : -119.852
Latitude : 47.233
PhysicalLocation : Washington
RegionType : Physical
RegionCategory : Recommended
GeographyGroup : US
PairedRegion : [
{
"Name": "westcentralus",
"Id": "/subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1
/locations/westcentralus",
"SubscriptionId": null
}
]
Providers : {Microsoft.DevTestLab, Microsoft.ManagedIdentity,
Microsoft.Storage, Microsoft.ContainerRegistry...}
Location : westus3
DisplayName : West US 3
Type : Region
Longitude : -112.074036
Latitude : 33.448376
PhysicalLocation : Phoenix
RegionType : Physical
RegionCategory : Recommended
GeographyGroup : US
PairedRegion : [
{
"Name": "eastus",
"Id": "/subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1
/locations/eastus",
"SubscriptionId": null
}
]
Providers : {Microsoft.DevTestLab, Microsoft.ManagedIdentity,
Microsoft.Storage, Microsoft.ContainerRegistry...}
Location : australiaeast
DisplayName : Australia East
Type : Region
Longitude : 151.2094
Latitude : -33.86
PhysicalLocation : New South Wales
RegionType : Physical
RegionCategory : Recommended
GeographyGroup : Asia Pacific
PairedRegion : [
{
"Name": "australiasoutheast",
"Id": "/subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1
/locations/australiasoutheast",
"SubscriptionId": null
}
]
Providers : {Microsoft.Cdn, Microsoft.DevTestLab, Microsoft.ManagedIdentity,
Microsoft.Storage...}
Location : southeastasia
DisplayName : Southeast Asia
Type : Region
Longitude : 103.833
Latitude : 1.283
PhysicalLocation : Singapore
RegionType : Physical
RegionCategory : Recommended
GeographyGroup : Asia Pacific
PairedRegion : [
{
"Name": "eastasia",
"Id": "/subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1
/locations/eastasia",
"SubscriptionId": null
}
]
Providers : {Microsoft.Cdn, Microsoft.DevTestLab, Microsoft.ManagedIdentity,
Microsoft.Storage...}
Location : northeurope
DisplayName : North Europe
Type : Region
Longitude : -6.2597
Latitude : 53.3478
PhysicalLocation : Ireland
RegionType : Physical
RegionCategory : Recommended
GeographyGroup : Europe
PairedRegion : [
{
"Name": "westeurope",
"Id": "/subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1
/locations/westeurope",
"SubscriptionId": null
}
]
Providers : {Microsoft.Cdn, Microsoft.DevTestLab, Microsoft.ManagedIdentity,
Microsoft.Storage...}
Location : swedencentral
DisplayName : Sweden Central
Type : Region
Longitude : 17.14127
Latitude : 60.67488
PhysicalLocation : Gävle
RegionType : Physical
RegionCategory : Recommended
GeographyGroup : Europe
PairedRegion : [
{
"Name": "swedensouth",
"Id": "/subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1
/locations/swedensouth",
"SubscriptionId": null
}
]
Providers : {Microsoft.DevTestLab, Microsoft.ManagedIdentity,
Microsoft.Storage, Microsoft.ContainerRegistry...}
Location : uksouth
DisplayName : UK South
Type : Region
Longitude : -0.799
Latitude : 50.941
PhysicalLocation : London
RegionType : Physical
RegionCategory : Recommended
GeographyGroup : Europe
PairedRegion : [
{
"Name": "ukwest",
"Id": "/subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1
/locations/ukwest",
"SubscriptionId": null
}
]
Providers : {Microsoft.DevTestLab, Microsoft.ManagedIdentity,
Microsoft.Storage, Microsoft.ContainerRegistry...}
Location : westeurope
DisplayName : West Europe
Type : Region
Longitude : 4.9
Latitude : 52.3667
PhysicalLocation : Netherlands
RegionType : Physical
RegionCategory : Recommended
GeographyGroup : Europe
PairedRegion : [
{
"Name": "northeurope",
"Id": "/subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1
/locations/northeurope",
"SubscriptionId": null
}
]
Providers : {Microsoft.Cdn, Microsoft.DevTestLab, Microsoft.ManagedIdentity,
Microsoft.Storage...}
Location : centralus
DisplayName : Central US
Type : Region
Longitude : -93.6208
Latitude : 41.5908
PhysicalLocation : Iowa
RegionType : Physical
RegionCategory : Recommended
GeographyGroup : US
PairedRegion : [
{
"Name": "eastus2",
"Id": "/subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1
/locations/eastus2",
"SubscriptionId": null
}
]
Providers : {Microsoft.Cdn, Microsoft.DevTestLab, Microsoft.ManagedIdentity,
Microsoft.Storage...}
Location : southafricanorth
DisplayName : South Africa North
Type : Region
Longitude : 28.218370
Latitude : -25.731340
PhysicalLocation : Johannesburg
RegionType : Physical
RegionCategory : Recommended
GeographyGroup : Africa
PairedRegion : [
{
"Name": "southafricawest",
"Id": "/subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1
/locations/southafricawest",
"SubscriptionId": null
}
]
Providers : {Microsoft.DevTestLab, Microsoft.ManagedIdentity,
Microsoft.Storage, Microsoft.ContainerRegistry...}
Location : centralindia
DisplayName : Central India
Type : Region
Longitude : 73.9197
Latitude : 18.5822
PhysicalLocation : Pune
RegionType : Physical
RegionCategory : Recommended
GeographyGroup : Asia Pacific
PairedRegion : [
{
"Name": "southindia",
"Id": "/subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1
/locations/southindia",
"SubscriptionId": null
}
]
Providers : {Microsoft.Cdn, Microsoft.DevTestLab, Microsoft.ManagedIdentity,
Microsoft.Storage...}
Location : eastasia
DisplayName : East Asia
Type : Region
Longitude : 114.188
Latitude : 22.267
PhysicalLocation : Hong Kong
RegionType : Physical
RegionCategory : Recommended
GeographyGroup : Asia Pacific
PairedRegion : [
{
"Name": "southeastasia",
"Id": "/subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1
/locations/southeastasia",
"SubscriptionId": null
}
]
Providers : {Microsoft.Cdn, Microsoft.DevTestLab, Microsoft.ManagedIdentity,
Microsoft.Storage...}
Location : japaneast
DisplayName : Japan East
Type : Region
Longitude : 139.77
Latitude : 35.68
PhysicalLocation : Tokyo, Saitama
RegionType : Physical
RegionCategory : Recommended
GeographyGroup : Asia Pacific
PairedRegion : [
{
"Name": "japanwest",
"Id": "/subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1
/locations/japanwest",
"SubscriptionId": null
}
]
Providers : {Microsoft.Cdn, Microsoft.DevTestLab, Microsoft.ManagedIdentity,
Microsoft.Storage...}
Location : koreacentral
DisplayName : Korea Central
Type : Region
Longitude : 126.9780
Latitude : 37.5665
PhysicalLocation : Seoul
RegionType : Physical
RegionCategory : Recommended
GeographyGroup : Asia Pacific
PairedRegion : [
{
"Name": "koreasouth",
"Id": "/subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1
/locations/koreasouth",
"SubscriptionId": null
}
]
Providers : {Microsoft.DevTestLab, Microsoft.ManagedIdentity,
Microsoft.Storage, Microsoft.ContainerRegistry...}
Location : canadacentral
DisplayName : Canada Central
Type : Region
Longitude : -79.383
Latitude : 43.653
PhysicalLocation : Toronto
RegionType : Physical
RegionCategory : Recommended
GeographyGroup : Canada
PairedRegion : [
{
"Name": "canadaeast",
"Id": "/subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1
/locations/canadaeast",
"SubscriptionId": null
}
]
Provider