Virtual Machine Sizes - List
Returns supported VM Sizes in a location
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/vmSizes?api-version=2024-10-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
location
|
path | True |
string |
The location upon which virtual-machine-sizes is queried. Regex pattern: |
subscription
|
path | True |
string |
The ID of the target subscription. |
api-version
|
query | True |
string |
The API version to use for this operation. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
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
List VM Sizes
Sample request
GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.MachineLearningServices/locations/eastus/vmSizes?api-version=2024-10-01
Sample response
{
"value": [
{
"name": "Standard_DS1_v2",
"family": "standardDSv2Family",
"vCPUs": 1,
"gpus": 0,
"osVhdSizeMB": 1047552,
"maxResourceVolumeMB": 7168,
"memoryGB": 3.5,
"lowPriorityCapable": true,
"premiumIO": true,
"estimatedVMPrices": {
"billingCurrency": "USD",
"unitOfMeasure": "OneHour",
"values": [
{
"retailPrice": 0.13,
"osType": "Windows",
"vmTier": "Standard"
},
{
"retailPrice": 0.01,
"osType": "Linux",
"vmTier": "LowPriority"
},
{
"retailPrice": 0.07,
"osType": "Linux",
"vmTier": "Standard"
},
{
"retailPrice": 0.05,
"osType": "Windows",
"vmTier": "LowPriority"
}
]
},
"supportedComputeTypes": [
"AmlCompute",
"ComputeInstance"
]
},
{
"name": "Standard_DS2_v2",
"family": "standardDSv2Family",
"vCPUs": 2,
"gpus": 0,
"osVhdSizeMB": 1047552,
"maxResourceVolumeMB": 14336,
"memoryGB": 7,
"lowPriorityCapable": true,
"premiumIO": true,
"estimatedVMPrices": {
"billingCurrency": "USD",
"unitOfMeasure": "OneHour",
"values": [
{
"retailPrice": 0.03,
"osType": "Linux",
"vmTier": "LowPriority"
},
{
"retailPrice": 0.15,
"osType": "Linux",
"vmTier": "Standard"
},
{
"retailPrice": 0.1,
"osType": "Windows",
"vmTier": "LowPriority"
},
{
"retailPrice": 0.25,
"osType": "Windows",
"vmTier": "Standard"
}
]
},
"supportedComputeTypes": [
"AmlCompute",
"ComputeInstance",
"MIR"
]
},
{
"name": "Standard_DS3_v2",
"family": "standardDSv2Family",
"vCPUs": 4,
"gpus": 0,
"osVhdSizeMB": 1047552,
"maxResourceVolumeMB": 28672,
"memoryGB": 14,
"lowPriorityCapable": true,
"premiumIO": true,
"estimatedVMPrices": {
"billingCurrency": "USD",
"unitOfMeasure": "OneHour",
"values": [
{
"retailPrice": 0.2,
"osType": "Windows",
"vmTier": "LowPriority"
},
{
"retailPrice": 0.06,
"osType": "Linux",
"vmTier": "LowPriority"
},
{
"retailPrice": 0.5,
"osType": "Windows",
"vmTier": "Standard"
},
{
"retailPrice": 0.29,
"osType": "Linux",
"vmTier": "Standard"
}
]
},
"supportedComputeTypes": [
"AmlCompute",
"ComputeInstance",
"MIR"
]
},
{
"name": "Standard_DS4_v2",
"family": "standardDSv2Family",
"vCPUs": 8,
"gpus": 0,
"osVhdSizeMB": 1047552,
"maxResourceVolumeMB": 57344,
"memoryGB": 28,
"lowPriorityCapable": true,
"premiumIO": true,
"estimatedVMPrices": {
"billingCurrency": "USD",
"unitOfMeasure": "OneHour",
"values": [
{
"retailPrice": 0.12,
"osType": "Linux",
"vmTier": "LowPriority"
},
{
"retailPrice": 0.4,
"osType": "Windows",
"vmTier": "LowPriority"
},
{
"retailPrice": 1.01,
"osType": "Windows",
"vmTier": "Standard"
},
{
"retailPrice": 0.58,
"osType": "Linux",
"vmTier": "Standard"
}
]
},
"supportedComputeTypes": [
"AmlCompute",
"ComputeInstance",
"MIR"
]
},
{
"name": "Standard_DS5_v2",
"family": "standardDSv2Family",
"vCPUs": 16,
"gpus": 0,
"osVhdSizeMB": 1047552,
"maxResourceVolumeMB": 114688,
"memoryGB": 56,
"lowPriorityCapable": true,
"premiumIO": true,
"estimatedVMPrices": {
"billingCurrency": "USD",
"unitOfMeasure": "OneHour",
"values": [
{
"retailPrice": 1.17,
"osType": "Linux",
"vmTier": "Standard"
},
{
"retailPrice": 0.81,
"osType": "Windows",
"vmTier": "LowPriority"
},
{
"retailPrice": 2.02,
"osType": "Windows",
"vmTier": "Standard"
},
{
"retailPrice": 0.23,
"osType": "Linux",
"vmTier": "LowPriority"
}
]
},
"supportedComputeTypes": [
"AmlCompute",
"ComputeInstance",
"MIR"
]
},
{
"name": "Standard_DS11_v2",
"family": "standardDSv2Family",
"vCPUs": 2,
"gpus": 0,
"osVhdSizeMB": 1047552,
"maxResourceVolumeMB": 28672,
"memoryGB": 14,
"lowPriorityCapable": true,
"premiumIO": true,
"estimatedVMPrices": {
"billingCurrency": "USD",
"unitOfMeasure": "OneHour",
"values": [
{
"retailPrice": 0.26,
"osType": "Windows",
"vmTier": "Standard"
},
{
"retailPrice": 0.18,
"osType": "Linux",
"vmTier": "Standard"
},
{
"retailPrice": 0.11,
"osType": "Windows",
"vmTier": "LowPriority"
},
{
"retailPrice": 0.04,
"osType": "Linux",
"vmTier": "LowPriority"
}
]
},
"supportedComputeTypes": [
"AmlCompute",
"ComputeInstance"
]
},
{
"name": "Standard_DS12_v2",
"family": "standardDSv2Family",
"vCPUs": 4,
"gpus": 0,
"osVhdSizeMB": 1047552,
"maxResourceVolumeMB": 57344,
"memoryGB": 28,
"lowPriorityCapable": true,
"premiumIO": true,
"estimatedVMPrices": {
"billingCurrency": "USD",
"unitOfMeasure": "OneHour",
"values": [
{
"retailPrice": 0.37,
"osType": "Linux",
"vmTier": "Standard"
},
{
"retailPrice": 0.53,
"osType": "Windows",
"vmTier": "Standard"
},
{
"retailPrice": 0.21,
"osType": "Windows",
"vmTier": "LowPriority"
},
{
"retailPrice": 0.07,
"osType": "Linux",
"vmTier": "LowPriority"
}
]
},
"supportedComputeTypes": [
"AmlCompute",
"ComputeInstance"
]
},
{
"name": "Standard_DS13_v2",
"family": "standardDSv2Family",
"vCPUs": 8,
"gpus": 0,
"osVhdSizeMB": 1047552,
"maxResourceVolumeMB": 114688,
"memoryGB": 56,
"lowPriorityCapable": true,
"premiumIO": true,
"estimatedVMPrices": {
"billingCurrency": "USD",
"unitOfMeasure": "OneHour",
"values": [
{
"retailPrice": 0.15,
"osType": "Linux",
"vmTier": "LowPriority"
},
{
"retailPrice": 0.42,
"osType": "Windows",
"vmTier": "LowPriority"
},
{
"retailPrice": 0.74,
"osType": "Linux",
"vmTier": "Standard"
},
{
"retailPrice": 1.06,
"osType": "Windows",
"vmTier": "Standard"
}
]
},
"supportedComputeTypes": [
"AmlCompute",
"ComputeInstance"
]
},
{
"name": "Standard_DS14_v2",
"family": "standardDSv2Family",
"vCPUs": 16,
"gpus": 0,
"osVhdSizeMB": 1047552,
"maxResourceVolumeMB": 229376,
"memoryGB": 112,
"lowPriorityCapable": true,
"premiumIO": true,
"estimatedVMPrices": {
"billingCurrency": "USD",
"unitOfMeasure": "OneHour",
"values": [
{
"retailPrice": 0.3,
"osType": "Linux",
"vmTier": "LowPriority"
},
{
"retailPrice": 1.48,
"osType": "Linux",
"vmTier": "Standard"
},
{
"retailPrice": 0.84,
"osType": "Windows",
"vmTier": "LowPriority"
},
{
"retailPrice": 2.11,
"osType": "Windows",
"vmTier": "Standard"
}
]
},
"supportedComputeTypes": [
"AmlCompute",
"ComputeInstance"
]
}
]
}
Definitions
Name | Description |
---|---|
Billing |
Billing currency |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Estimated |
The estimated price info for using a VM of a particular OS type, tier, etc. |
Estimated |
The estimated price info for using a VM. |
Unit |
Unit of time measure |
Virtual |
Describes the properties of a VM size. |
Virtual |
The List Virtual Machine size operation response. |
VMPrice |
OS type |
VMTier |
VM tier |
BillingCurrency
Billing currency
Name | Type | Description |
---|---|---|
USD |
string |
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. |
EstimatedVMPrice
The estimated price info for using a VM of a particular OS type, tier, etc.
Name | Type | Description |
---|---|---|
osType |
OS type |
|
retailPrice |
number |
Retail price |
vmTier |
VM tier |
EstimatedVMPrices
The estimated price info for using a VM.
Name | Type | Description |
---|---|---|
billingCurrency |
Billing currency |
|
unitOfMeasure |
Unit of time measure |
|
values |
List of estimated VM prices. |
UnitOfMeasure
Unit of time measure
Name | Type | Description |
---|---|---|
OneHour |
string |
VirtualMachineSize
Describes the properties of a VM size.
Name | Type | Description |
---|---|---|
estimatedVMPrices |
Estimated VM prices |
|
family |
string |
Virtual Machine family name |
gpus |
integer |
Number of gPUs |
lowPriorityCapable |
boolean |
Low priority capable |
maxResourceVolumeMB |
integer |
Resource volume size |
memoryGB |
number |
Memory size |
name |
string |
Virtual Machine size name |
osVhdSizeMB |
integer |
OS VHD Disk size |
premiumIO |
boolean |
Premium IO supported |
supportedComputeTypes |
string[] |
Supported Compute Types |
vCPUs |
integer |
Number of vPUs |
VirtualMachineSizeListResult
The List Virtual Machine size operation response.
Name | Type | Description |
---|---|---|
value |
The list of virtual machine sizes supported by AmlCompute. |
VMPriceOSType
OS type
Name | Type | Description |
---|---|---|
Linux |
string |
|
Windows |
string |
VMTier
VM tier
Name | Type | Description |
---|---|---|
LowPriority |
string |
|
Spot |
string |
|
Standard |
string |