你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Virtual Machine Sizes - List
返回位置中支持的 VM 大小
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/vmSizes?api-version=2024-10-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
location
|
path | True |
string |
查询虚拟机大小的位置。 正则表达式模式: |
subscription
|
path | True |
string |
目标订阅的 ID。 |
api-version
|
query | True |
string |
用于此操作的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
还行 |
|
Other Status Codes |
描述操作失败的原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
List VM Sizes
示例请求
GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.MachineLearningServices/locations/eastus/vmSizes?api-version=2024-10-01
示例响应
{
"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"
]
}
]
}
定义
名称 | 说明 |
---|---|
Billing |
计费货币 |
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
Estimated |
使用特定 OS 类型、层等的 VM 的估计价格信息。 |
Estimated |
使用 VM 的估计价格信息。 |
Unit |
时间度量单位 |
Virtual |
描述 VM 大小的属性。 |
Virtual |
列出虚拟机大小操作响应。 |
VMPrice |
OS 类型 |
VMTier |
VM 层 |
BillingCurrency
计费货币
名称 | 类型 | 说明 |
---|---|---|
USD |
string |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
EstimatedVMPrice
使用特定 OS 类型、层等的 VM 的估计价格信息。
名称 | 类型 | 说明 |
---|---|---|
osType |
OS 类型 |
|
retailPrice |
number |
零售价 |
vmTier |
VM 层 |
EstimatedVMPrices
使用 VM 的估计价格信息。
名称 | 类型 | 说明 |
---|---|---|
billingCurrency |
计费货币 |
|
unitOfMeasure |
时间度量单位 |
|
values |
估计的 VM 价格列表。 |
UnitOfMeasure
时间度量单位
名称 | 类型 | 说明 |
---|---|---|
OneHour |
string |
VirtualMachineSize
描述 VM 大小的属性。
名称 | 类型 | 说明 |
---|---|---|
estimatedVMPrices |
估计的 VM 价格 |
|
family |
string |
虚拟机系列名称 |
gpus |
integer |
gPU 数 |
lowPriorityCapable |
boolean |
支持低优先级 |
maxResourceVolumeMB |
integer |
资源卷大小 |
memoryGB |
number |
内存大小 |
name |
string |
虚拟机大小名称 |
osVhdSizeMB |
integer |
OS VHD 磁盘大小 |
premiumIO |
boolean |
支持高级 IO |
supportedComputeTypes |
string[] |
支持的计算类型 |
vCPUs |
integer |
vCPU 数 |
VirtualMachineSizeListResult
列出虚拟机大小操作响应。
名称 | 类型 | 说明 |
---|---|---|
value |
AmlCompute 支持的虚拟机大小列表。 |
VMPriceOSType
OS 类型
名称 | 类型 | 说明 |
---|---|---|
Linux |
string |
|
Windows |
string |
VMTier
VM 层
名称 | 类型 | 说明 |
---|---|---|
LowPriority |
string |
|
Spot |
string |
|
Standard |
string |