Partager via


VirtualMachineSize Interface

Implements

public interface VirtualMachineSize
extends HasName

A type representing virtual machine size available for a subscription in a region.

Method Summary

Modifier and Type Method and Description
abstract int maxDataDiskCount()

Gets the maximum number of data disks allowed by a VM size.

abstract int memoryInMB()

Gets the memory size supported by the VM size.

abstract int numberOfCores()

Gets the number of cores supported by the VM size.

abstract int osDiskSizeInMB()

Gets the OS disk size allowed by the VM size.

abstract int resourceDiskSizeInMB()

Gets the resource disk size allowed by the VM size.

abstract VirtualMachineSizeTypes virtualMachineSizeType()

The virtual machine size type if the sku describes sku for virtual machine resource type.

Method Details

maxDataDiskCount

public abstract int maxDataDiskCount()

Gets the maximum number of data disks allowed by a VM size.

Returns:

the maximum number of data disks allowed by a VM size

memoryInMB

public abstract int memoryInMB()

Gets the memory size supported by the VM size.

Returns:

the memory size supported by the VM size

numberOfCores

public abstract int numberOfCores()

Gets the number of cores supported by the VM size.

Returns:

the number of cores supported by the VM size

osDiskSizeInMB

public abstract int osDiskSizeInMB()

Gets the OS disk size allowed by the VM size.

Returns:

the OS disk size allowed by the VM size

resourceDiskSizeInMB

public abstract int resourceDiskSizeInMB()

Gets the resource disk size allowed by the VM size.

Returns:

the resource disk size allowed by the VM size

virtualMachineSizeType

public abstract VirtualMachineSizeTypes virtualMachineSizeType()

The virtual machine size type if the sku describes sku for virtual machine resource type.

The size can be used for withSize(VirtualMachineSizeTypes size) and withSize(VirtualMachineSizeTypes size).

Returns:

the virtual machine size type

Applies to