Sku - List By Location
List ResourceSku resources by subscription ID
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DevOpsInfrastructure/locations/{locationName}/skus?api-version=2024-10-19
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
location
|
path | True |
string pattern: ^[a-zA-Z0-9][a-zA-Z0-9-.]*$ |
Name of the location. |
subscription
|
path | True |
string (uuid) |
The ID of the target subscription. The value must be an UUID. |
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Azure operation completed successfully. |
|
Other Status Codes |
An unexpected error response. |
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
Sku_ListByLocation
Sample request
GET https://management.azure.com/subscriptions/a2e95d27-c161-4b61-bda4-11512c14c2c2/providers/Microsoft.DevOpsInfrastructure/locations/eastus/skus?api-version=2024-10-19
Sample response
{
"value": [
{
"properties": {
"resourceType": "virtualMachines",
"tier": "Basic",
"size": "A0",
"family": "basicAFamily",
"locations": [
"eastus"
],
"locationInfo": [
{
"location": "eastus",
"zones": [],
"zoneDetails": []
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "20480"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "1"
},
{
"name": "MemoryPreservingMaintenanceSupported",
"value": "True"
},
{
"name": "HyperVGenerations",
"value": "V1"
},
{
"name": "MemoryGB",
"value": "0.75"
},
{
"name": "MaxDataDiskCount",
"value": "1"
},
{
"name": "CpuArchitectureType",
"value": "x64"
},
{
"name": "LowPriorityCapable",
"value": "False"
},
{
"name": "PremiumIO",
"value": "False"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "vCPUsAvailable",
"value": "1"
},
{
"name": "ACUs",
"value": "50"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "EphemeralOSDiskSupported",
"value": "False"
},
{
"name": "EncryptionAtHostSupported",
"value": "False"
},
{
"name": "CapacityReservationSupported",
"value": "False"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "False"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"restrictions": [
{
"type": "Location",
"values": [
"eastus"
],
"restrictionInfo": {
"locations": [
"eastus"
]
},
"reasonCode": "NotAvailableForSubscription"
},
{
"type": "Zone",
"values": [
"eastus"
],
"restrictionInfo": {
"locations": [
"eastus"
],
"zones": [
"1",
"2",
"3"
]
},
"reasonCode": "NotAvailableForSubscription"
}
]
},
"id": "/subscriptions/a2e95d27-c161-4b61-bda4-11512c14c2c2/providers/Microsoft.DevOpsInfrastructure/locations/eastus/skus/Basic_A0",
"name": "Basic_A0"
},
{
"properties": {
"resourceType": "virtualMachines",
"tier": "Standard",
"size": "A2_v2",
"family": "standardAv2Family",
"locations": [
"eastus"
],
"locationInfo": [
{
"location": "eastus",
"zones": [
"1",
"2",
"3"
],
"zoneDetails": []
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "20480"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "2"
},
{
"name": "MemoryPreservingMaintenanceSupported",
"value": "True"
},
{
"name": "HyperVGenerations",
"value": "V1"
},
{
"name": "MemoryGB",
"value": "4"
},
{
"name": "MaxDataDiskCount",
"value": "4"
},
{
"name": "CpuArchitectureType",
"value": "x64"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "False"
},
{
"name": "VMDeploymentTypes",
"value": "PaaS,IaaS"
},
{
"name": "vCPUsAvailable",
"value": "2"
},
{
"name": "ACUs",
"value": "100"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "CombinedTempDiskAndCachedIOPS",
"value": "2000"
},
{
"name": "CombinedTempDiskAndCachedReadBytesPerSecond",
"value": "41943040"
},
{
"name": "CombinedTempDiskAndCachedWriteBytesPerSecond",
"value": "20971520"
},
{
"name": "UncachedDiskIOPS",
"value": "3200"
},
{
"name": "UncachedDiskBytesPerSecond",
"value": "48000000"
},
{
"name": "EphemeralOSDiskSupported",
"value": "False"
},
{
"name": "EncryptionAtHostSupported",
"value": "False"
},
{
"name": "CapacityReservationSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "False"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"restrictions": []
},
"id": "/subscriptions/a2e95d27-c161-4b61-bda4-11512c14c2c2/providers/Microsoft.DevOpsInfrastructure/locations/eastus/skus/Standard_A2_v2",
"name": "Standard_A2_v2"
}
],
"nextLink": null
}
Definitions
Name | Description |
---|---|
created |
The type of identity that created the resource. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Resource |
A ResourceSku |
Resource |
Describes The SKU capabilities object. |
Resource |
The response of a ResourceSku list operation. |
Resource |
Describes an available Compute SKU Location Information. |
Resource |
Describes an available Compute SKU Restriction Information. |
Resource |
The restrictions of the SKU. |
Resource |
Describes the reason for SKU restriction. |
Resource |
Describes the kind of SKU restrictions that can exist |
Resource |
Describes The zonal capabilities of a SKU. |
system |
Metadata pertaining to creation and last modification of the resource. |
createdByType
The type of identity that created the resource.
Value | Description |
---|---|
User | |
Application | |
ManagedIdentity | |
Key |
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. |
ResourceSku
A ResourceSku
Name | Type | Description |
---|---|---|
id |
string (arm-id) |
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name |
string |
The name of the resource |
properties.capabilities |
Name value pairs to describe the capability. |
|
properties.family |
string |
The family of the SKU. |
properties.locationInfo |
A list of locations and availability zones in those locations where the SKU is available |
|
properties.locations |
string[] |
The set of locations that the SKU is available. |
properties.resourceType |
string |
The type of resource the SKU applies to. |
properties.restrictions |
The restrictions of the SKU. |
|
properties.size |
string |
The size of the SKU. |
properties.tier |
string |
The tier of virtual machines in a scale set |
systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
ResourceSkuCapabilities
Describes The SKU capabilities object.
Name | Type | Description |
---|---|---|
name |
string |
The name of the SKU capability. |
value |
string |
The value of the SKU capability. |
ResourceSkuListResult
The response of a ResourceSku list operation.
Name | Type | Description |
---|---|---|
nextLink |
string (uri) |
The link to the next page of items |
value |
The ResourceSku items on this page |
ResourceSkuLocationInfo
Describes an available Compute SKU Location Information.
Name | Type | Description |
---|---|---|
location |
string |
Location of the SKU |
zoneDetails |
Gets details of capabilities available to a SKU in specific zones. |
|
zones |
string[] |
List of availability zones where the SKU is supported. |
ResourceSkuRestrictionInfo
Describes an available Compute SKU Restriction Information.
Name | Type | Description |
---|---|---|
locations |
string[] |
Locations where the SKU is restricted |
zones |
string[] |
List of availability zones where the SKU is restricted. |
ResourceSkuRestrictions
The restrictions of the SKU.
Name | Type | Description |
---|---|---|
reasonCode |
the reason for restriction. |
|
restrictionInfo |
The information about the restriction where the SKU cannot be used. |
|
type |
the type of restrictions. |
|
values |
string[] |
The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. |
ResourceSkuRestrictionsReasonCode
Describes the reason for SKU restriction.
Value | Description |
---|---|
QuotaId |
The restriction is due to exceeding a quota limitation. |
NotAvailableForSubscription |
The restriction is not available for this subscription. |
ResourceSkuRestrictionsType
Describes the kind of SKU restrictions that can exist
Value | Description |
---|---|
Location |
SKU restricted by location. |
Zone |
SKU restricted by availability zone. |
ResourceSkuZoneDetails
Describes The zonal capabilities of a SKU.
Name | Type | Description |
---|---|---|
capabilities |
A list of capabilities that are available for the SKU in the specified list of zones. |
|
name |
string[] |
Gets the set of zones that the SKU is available in with the specified capabilities. |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string (date-time) |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string (date-time) |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |