Skip to main content

virtual_machine_sizes

Creates, updates, deletes, gets or lists a virtual_machine_sizes resource.

Overview

Namevirtual_machine_sizes
TypeResource
Idazure.compute.virtual_machine_sizes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the virtual machine size.
maxDataDiskCountintegerThe maximum number of data disks that can be attached to the virtual machine size.
memoryInMBintegerThe amount of memory, in MB, supported by the virtual machine size.
numberOfCoresintegerThe 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 _.
osDiskSizeInMBintegerThe OS disk size, in MB, allowed by the virtual machine size.
resourceDiskSizeInMBintegerThe resource disk size, in MB, allowed by the virtual machine size.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectlocation, subscription_idThis 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.

NameDatatypeDescription
locationstringThe location name. Required.
subscription_idstring

SELECT examples

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 subscription_id = '{{ subscription_id }}' -- required
;