Skip to main content

virtual_machines_available_sizes

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

Overview

Namevirtual_machines_available_sizes
TypeResource
Idazure.compute.virtual_machines_available_sizes

Fields

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

NameAccessible byRequired ParamsDescription
listSELECTresourceGroupName, subscriptionId, vmNameLists all available virtual machine sizes to which the specified virtual machine can be resized.

SELECT examples

Lists all available virtual machine sizes to which the specified virtual machine can be resized.

SELECT
name,
maxDataDiskCount,
memoryInMB,
numberOfCores,
osDiskSizeInMB,
resourceDiskSizeInMB
FROM azure.compute.virtual_machines_available_sizes
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vmName = '{{ vmName }}';