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

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the virtual machine size.
maxDataDiskCountinteger (int32)The maximum number of data disks that can be attached to the virtual machine size.
memoryInMBinteger (int32)The amount of memory, in MB, supported by the virtual machine size.
numberOfCoresinteger (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
osDiskSizeInMBinteger (int32)The OS disk size, in MB, allowed by the virtual machine size.
resourceDiskSizeInMBinteger (int32)The resource disk size, in MB, allowed by the virtual machine size.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresourceGroupName, vmName, subscriptionIdLists all available virtual machine sizes to which the specified virtual machine can be resized.

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
resourceGroupNamestringThe name of the resource group.
subscriptionIdstringSubscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
vmNamestringThe name of the virtual machine.

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 }}' -- required
AND vmName = '{{ vmName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;