Subscriptions - List Locations
Gets all available geo-locations.
This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.
GET https://management.azure.com/subscriptions/{subscriptionId}/locations?api-version=2022-12-01
GET https://management.azure.com/subscriptions/{subscriptionId}/locations?api-version=2022-12-01&includeExtendedLocations={includeExtendedLocations}
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
subscription
|
path | True |
string |
The ID of the target subscription. |
|
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
|
include
|
query |
boolean |
Whether to include extended locations. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
OK - Returns an array of locations. |
|
| Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name | Description |
|---|---|
| user_impersonation | impersonate your user account |
Examples
|
Get |
|
Get |
GetLocationsWithASubscriptionId
Sample request
Sample response
{
"value": [
{
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/eastus",
"name": "eastus",
"type": "Region",
"displayName": "East US",
"regionalDisplayName": "(US) East US",
"metadata": {
"regionType": "Physical",
"regionCategory": "Recommended",
"geography": "United States",
"geographyGroup": "US",
"longitude": "-79.8164",
"latitude": "37.3719",
"physicalLocation": "Virginia",
"pairedRegion": [
{
"name": "westus",
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/westus"
}
]
},
"availabilityZoneMappings": [
{
"logicalZone": "1",
"physicalZone": "eastus-az1"
},
{
"logicalZone": "2",
"physicalZone": "eastus-az3"
},
{
"logicalZone": "3",
"physicalZone": "eastus-az2"
}
]
},
{
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/eastus2",
"name": "eastus2",
"type": "Region",
"displayName": "East US 2",
"regionalDisplayName": "(US) East US 2",
"metadata": {
"regionType": "Physical",
"regionCategory": "Recommended",
"geography": "United States",
"geographyGroup": "US",
"longitude": "-78.3889",
"latitude": "36.6681",
"physicalLocation": "Virginia",
"pairedRegion": [
{
"name": "centralus",
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/centralus"
}
]
},
"availabilityZoneMappings": [
{
"logicalZone": "1",
"physicalZone": "eastus2-az1"
},
{
"logicalZone": "2",
"physicalZone": "eastus2-az3"
},
{
"logicalZone": "3",
"physicalZone": "eastus2-az2"
}
]
}
]
}
GetLocationsWithExtendedLocations
Sample request
Sample response
{
"value": [
{
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/eastus",
"name": "eastus",
"type": "Region",
"displayName": "East US",
"regionalDisplayName": "(US) East US",
"metadata": {
"regionType": "Physical",
"regionCategory": "Recommended",
"geography": "United States",
"geographyGroup": "US",
"longitude": "-79.8164",
"latitude": "37.3719",
"physicalLocation": "Virginia",
"pairedRegion": [
{
"name": "westus",
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/westus"
}
]
},
"availabilityZoneMappings": [
{
"logicalZone": "1",
"physicalZone": "eastus-az1"
},
{
"logicalZone": "2",
"physicalZone": "eastus-az3"
},
{
"logicalZone": "3",
"physicalZone": "eastus-az2"
}
]
},
{
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/eastus2",
"name": "eastus2",
"type": "Region",
"displayName": "East US 2",
"regionalDisplayName": "(US) East US 2",
"metadata": {
"regionType": "Physical",
"regionCategory": "Recommended",
"geography": "United States",
"geographyGroup": "US",
"longitude": "-78.3889",
"latitude": "36.6681",
"physicalLocation": "Virginia",
"pairedRegion": [
{
"name": "centralus",
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/centralus"
}
]
},
"availabilityZoneMappings": [
{
"logicalZone": "1",
"physicalZone": "eastus2-az1"
},
{
"logicalZone": "2",
"physicalZone": "eastus2-az3"
},
{
"logicalZone": "3",
"physicalZone": "eastus2-az2"
}
]
},
{
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/eastus/edgeZones/ezecustomerlabboston1",
"name": "ezecustomerlabboston1",
"type": "EdgeZone",
"displayName": "EZE Customer Lab Boston 1",
"regionalDisplayName": "(US) EZE Customer Lab Boston 1",
"metadata": {
"regionType": "Physical",
"regionCategory": "Extended",
"geographyGroup": "US",
"geography": "United States",
"longitude": "-71.219038",
"latitude": "42.301218"
}
},
{
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/southcentralus/edgeZones/ezecustomerlabhouston1",
"name": "ezecustomerlabhouston1",
"type": "EdgeZone",
"displayName": "EZE Customer Lab Houston 1",
"regionalDisplayName": "(US) EZE Customer Lab Houston 1",
"metadata": {
"regionType": "Physical",
"regionCategory": "Extended",
"geographyGroup": "US",
"geography": "United States",
"longitude": "-95.41452",
"latitude": "29.9411"
}
}
]
}
Definitions
| Name | Description |
|---|---|
|
Availability |
Availability zone mappings for the region |
|
Cloud |
An error response for a resource management request. |
|
Error |
The resource management error additional info. |
|
Error |
The error detail. |
|
Error |
Error response |
| Location |
Location information. |
|
Location |
Location list operation response. |
|
Location |
Location metadata information |
|
Location |
The location type. |
|
Paired |
Information regarding paired region. |
|
Region |
The category of the region. |
|
Region |
The type of the region. |
AvailabilityZoneMappings
Availability zone mappings for the region
| Name | Type | Description |
|---|---|---|
| logicalZone |
string |
The logical zone id for the availability zone |
| physicalZone |
string |
The fully qualified physical zone id of availability zone to which logical zone id is mapped to |
CloudError
An error response for a resource management request.
| Name | Type | Description |
|---|---|---|
| error |
Error response |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info |
object |
The additional info. |
| type |
string |
The additional info type. |
ErrorDetail
The error detail.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
The error additional info. |
|
| code |
string |
The error code. |
| details |
The error details. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
ErrorResponse
Error response
| Name | Type | Description |
|---|---|---|
| error |
The error object. |
Location
Location information.
| Name | Type | Description |
|---|---|---|
| availabilityZoneMappings |
The availability zone mappings for this region. |
|
| displayName |
string |
The display name of the location. |
| id |
string |
The fully qualified ID of the location. For example, /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74/locations/westus. |
| metadata |
Metadata of the location, such as lat/long, paired region, and others. |
|
| name |
string |
The location name. |
| regionalDisplayName |
string |
The display name of the location and its region. |
| subscriptionId |
string |
The subscription ID. |
| type |
The location type. |
LocationListResult
Location list operation response.
| Name | Type | Description |
|---|---|---|
| value |
Location[] |
An array of locations. |
LocationMetadata
Location metadata information
| Name | Type | Description |
|---|---|---|
| geography |
string |
The geography of the location. |
| geographyGroup |
string |
The geography group of the location. |
| homeLocation |
string |
The home location of an edge zone. |
| latitude |
string |
The latitude of the location. |
| longitude |
string |
The longitude of the location. |
| pairedRegion |
The regions paired to this region. |
|
| physicalLocation |
string |
The physical location of the Azure location. |
| regionCategory |
The category of the region. |
|
| regionType |
The type of the region. |
LocationType
The location type.
| Value | Description |
|---|---|
| Region | |
| EdgeZone |
PairedRegion
Information regarding paired region.
| Name | Type | Description |
|---|---|---|
| id |
string |
The fully qualified ID of the location. For example, /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74/locations/westus. |
| name |
string |
The name of the paired region. |
| subscriptionId |
string |
The subscription ID. |
RegionCategory
The category of the region.
| Value | Description |
|---|---|
| Recommended | |
| Extended | |
| Other |
RegionType
The type of the region.
| Value | Description |
|---|---|
| Physical | |
| Logical |