你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Resource Skus - List
Gets the list of Microsoft.Compute SKUs available for your Subscription.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/skus?api-version=2021-07-01
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/skus?api-version=2021-07-01&$filter={$filter}&includeExtendedLocations={includeExtendedLocations}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
subscription
|
path | True |
string |
Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
api-version
|
query | True |
string |
Client Api Version. |
$filter
|
query |
string |
The filter to apply on the operation. Only location filter is supported currently. |
|
include
|
query |
string |
To Include Extended Locations information or not in the response. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
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
Lists all available Resource SKUs |
Lists all available Resource SKUs for the specified region |
Lists all available Resource SKUs with Extended Location information |
Lists all available Resource SKUs
Sample request
Sample response
{
"value": [
{
"resourceType": "virtualMachines",
"locations": [
"westus"
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "20480"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "1"
},
{
"name": "HyperVGenerations",
"value": "V1"
},
{
"name": "MemoryGB",
"value": "0.75"
},
{
"name": "MaxDataDiskCount",
"value": "1"
},
{
"name": "LowPriorityCapable",
"value": "False"
},
{
"name": "PremiumIO",
"value": "False"
},
{
"name": "vCPUsAvailable",
"value": "1"
},
{
"name": "ACUs",
"value": "50"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "EphemeralOSDiskSupported",
"value": "False"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "False"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"locationInfo": [
{
"location": "westus",
"zones": [
"2",
"1"
],
"zoneDetails": [
{
"name": [
"2"
],
"capabilities": [
{
"name": "UltraSSDAvailable",
"value": "True"
}
]
}
]
}
],
"name": "Standard_A0",
"tier": "Standard",
"size": "A0",
"family": "standardA0_A7Family"
},
{
"resourceType": "virtualMachines",
"locations": [
"westus"
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "71680"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "1"
},
{
"name": "HyperVGenerations",
"value": "V1"
},
{
"name": "MemoryGB",
"value": "1.75"
},
{
"name": "MaxDataDiskCount",
"value": "2"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "False"
},
{
"name": "vCPUsAvailable",
"value": "1"
},
{
"name": "ACUs",
"value": "100"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "EphemeralOSDiskSupported",
"value": "False"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "False"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"locationInfo": [
{
"location": "westus",
"zones": [
"1",
"2",
"3"
]
}
],
"name": "Standard_A1",
"tier": "Standard",
"size": "A1",
"family": "standardA0_A7Family"
}
],
"nextLink": null
}
Lists all available Resource SKUs for the specified region
Sample request
Sample response
{
"value": [
{
"resourceType": "virtualMachines",
"locations": [
"westus"
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "20480"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "1"
},
{
"name": "HyperVGenerations",
"value": "V1"
},
{
"name": "MemoryGB",
"value": "0.75"
},
{
"name": "MaxDataDiskCount",
"value": "1"
},
{
"name": "LowPriorityCapable",
"value": "False"
},
{
"name": "PremiumIO",
"value": "False"
},
{
"name": "vCPUsAvailable",
"value": "1"
},
{
"name": "ACUs",
"value": "50"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "EphemeralOSDiskSupported",
"value": "False"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "False"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"locationInfo": [
{
"location": "westus",
"zones": [
"2",
"1"
],
"zoneDetails": [
{
"name": [
"2"
],
"capabilities": [
{
"name": "UltraSSDAvailable",
"value": "True"
}
]
}
]
}
],
"name": "Standard_A0",
"tier": "Standard",
"size": "A0",
"family": "standardA0_A7Family"
},
{
"resourceType": "virtualMachines",
"locations": [
"westus"
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "71680"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "1"
},
{
"name": "HyperVGenerations",
"value": "V1"
},
{
"name": "MemoryGB",
"value": "1.75"
},
{
"name": "MaxDataDiskCount",
"value": "2"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "False"
},
{
"name": "vCPUsAvailable",
"value": "1"
},
{
"name": "ACUs",
"value": "100"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "EphemeralOSDiskSupported",
"value": "False"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "False"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"locationInfo": [
{
"location": "westus",
"zones": [
"1",
"2",
"3"
]
}
],
"name": "Standard_A1",
"tier": "Standard",
"size": "A1",
"family": "standardA0_A7Family"
}
],
"nextLink": null
}
Lists all available Resource SKUs with Extended Location information
Sample request
Sample response
{
"value": [
{
"resourceType": "virtualMachines",
"locations": [
"westus"
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "20480"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "1"
},
{
"name": "HyperVGenerations",
"value": "V1"
},
{
"name": "MemoryGB",
"value": "0.75"
},
{
"name": "MaxDataDiskCount",
"value": "1"
},
{
"name": "LowPriorityCapable",
"value": "False"
},
{
"name": "PremiumIO",
"value": "False"
},
{
"name": "vCPUsAvailable",
"value": "1"
},
{
"name": "ACUs",
"value": "50"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "EphemeralOSDiskSupported",
"value": "False"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "False"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"locationInfo": [
{
"location": "westus",
"zones": [
"2",
"1"
],
"zoneDetails": [
{
"name": [
"2"
],
"capabilities": [
{
"name": "UltraSSDAvailable",
"value": "True"
}
]
}
]
}
],
"name": "Standard_A0",
"tier": "Standard",
"size": "A0",
"family": "standardA0_A7Family"
},
{
"resourceType": "virtualMachines",
"locations": [
"westus"
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "71680"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "1"
},
{
"name": "HyperVGenerations",
"value": "V1"
},
{
"name": "MemoryGB",
"value": "1.75"
},
{
"name": "MaxDataDiskCount",
"value": "2"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "False"
},
{
"name": "vCPUsAvailable",
"value": "1"
},
{
"name": "ACUs",
"value": "100"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "EphemeralOSDiskSupported",
"value": "False"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "False"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"locationInfo": [
{
"location": "westus",
"zones": [
"1",
"2",
"3"
]
},
{
"location": "westus",
"extendedLocations": [
"Las Vegas",
"Seattle",
"Portland"
],
"type": "EdgeZone"
}
],
"name": "Standard_A1",
"tier": "Standard",
"size": "A1",
"family": "standardA0_A7Family"
}
],
"nextLink": null
}
Definitions
Name | Description |
---|---|
Extended |
The type of the extended location. |
Resource |
Describes an available Compute SKU. |
Resource |
Describes The SKU capabilities object. |
Resource |
Describes scaling information of a SKU. |
Resource |
The scale type applicable to the sku. |
Resource |
Describes metadata for retrieving price info. |
Resource |
Describes an available Compute SKU Location Information. |
Resource |
Describes an available Compute SKU Restriction Information. |
Resource |
Describes scaling information of a SKU. |
Resource |
The reason for restriction. |
Resource |
The type of restrictions. |
Resource |
The List Resource Skus operation response. |
Resource |
Describes The zonal capabilities of a SKU. |
ExtendedLocationType
The type of the extended location.
Name | Type | Description |
---|---|---|
EdgeZone |
string |
ResourceSku
Describes an available Compute SKU.
Name | Type | Description |
---|---|---|
apiVersions |
string[] |
The api versions that support this SKU. |
capabilities |
A name value pair to describe the capability. |
|
capacity |
Specifies the number of virtual machines in the scale set. |
|
costs |
Metadata for retrieving price info. |
|
family |
string |
The Family of this particular SKU. |
kind |
string |
The Kind of resources that are supported in this SKU. |
locationInfo |
A list of locations and availability zones in those locations where the SKU is available. |
|
locations |
string[] |
The set of locations that the SKU is available. |
name |
string |
The name of SKU. |
resourceType |
string |
The type of resource the SKU applies to. |
restrictions |
The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. |
|
size |
string |
The Size of the SKU. |
tier |
string |
Specifies the tier of virtual machines in a scale set. |
ResourceSkuCapabilities
Describes The SKU capabilities object.
Name | Type | Description |
---|---|---|
name |
string |
An invariant to describe the feature. |
value |
string |
An invariant if the feature is measured by quantity. |
ResourceSkuCapacity
Describes scaling information of a SKU.
Name | Type | Description |
---|---|---|
default |
integer |
The default capacity. |
maximum |
integer |
The maximum capacity that can be set. |
minimum |
integer |
The minimum capacity. |
scaleType |
The scale type applicable to the sku. |
ResourceSkuCapacityScaleType
The scale type applicable to the sku.
Name | Type | Description |
---|---|---|
Automatic |
string |
|
Manual |
string |
|
None |
string |
ResourceSkuCosts
Describes metadata for retrieving price info.
Name | Type | Description |
---|---|---|
extendedUnit |
string |
An invariant to show the extended unit. |
meterID |
string |
Used for querying price from commerce. |
quantity |
integer |
The multiplier is needed to extend the base metered cost. |
ResourceSkuLocationInfo
Describes an available Compute SKU Location Information.
Name | Type | Description |
---|---|---|
extendedLocations |
string[] |
The names of extended locations. |
location |
string |
Location of the SKU |
type |
The type of the extended location. |
|
zoneDetails |
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
Describes scaling information of a 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
The reason for restriction.
Name | Type | Description |
---|---|---|
NotAvailableForSubscription |
string |
|
QuotaId |
string |
ResourceSkuRestrictionsType
The type of restrictions.
Name | Type | Description |
---|---|---|
Location |
string |
|
Zone |
string |
ResourceSkusResult
The List Resource Skus operation response.
Name | Type | Description |
---|---|---|
nextLink |
string |
The URI to fetch the next page of Resource Skus. Call ListNext() with this URI to fetch the next page of Resource Skus |
value |
The list of skus available for the subscription. |
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[] |
The set of zones that the SKU is available in with the specified capabilities. |