virtual_machine_sizes
Creates, updates, deletes, gets or lists a virtual_machine_sizes
resource.
Overview
Name | virtual_machine_sizes |
Type | Resource |
Id | azure.compute.virtual_machine_sizes |
Fields
The following fields are returned by SELECT
queries:
- list
Name | Datatype | Description |
---|---|---|
name | string | The name of the virtual machine size. |
maxDataDiskCount | integer (int32) | The maximum number of data disks that can be attached to the virtual machine size. |
memoryInMB | integer (int32) | The amount of memory, in MB, supported by the virtual machine size. |
numberOfCores | integer (int32) | The number of cores supported by the virtual machine size. For Constrained vCPU capable VM sizes, this number represents the total vCPUs of quota that the VM uses. For accurate vCPU count, please refer to https://docs.microsoft.com/azure/virtual-machines/constrained-vcpu or https://docs.microsoft.com/rest/api/compute/resourceskus/list |
osDiskSizeInMB | integer (int32) | The OS disk size, in MB, allowed by the virtual machine size. |
resourceDiskSizeInMB | integer (int32) | The resource disk size, in MB, allowed by the virtual machine size. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
list | select | location , subscriptionId | This API is deprecated. Use Resources Skus |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
location | string | The location upon which virtual-machine-sizes is queried. |
subscriptionId | string | Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
SELECT
examples
- list
This API is deprecated. Use Resources Skus
SELECT
name,
maxDataDiskCount,
memoryInMB,
numberOfCores,
osDiskSizeInMB,
resourceDiskSizeInMB
FROM azure.compute.virtual_machine_sizes
WHERE location = '{{ location }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;