Interface VirtualMachineSize
- All Superinterfaces:
HasName
A type representing virtual machine size available for a subscription in a region.
-
Method Summary
Modifier and TypeMethodDescriptionintGets the maximum number of data disks allowed by a VM size.intGets the memory size supported by the VM size.intGets the number of cores supported by the VM size.intGets the OS disk size allowed by the VM size.intGets the resource disk size allowed by the VM size.The virtual machine size type if the sku describes sku for virtual machine resource type.
-
Method Details
-
numberOfCores
int numberOfCores()Gets the number of cores supported by the VM size.- Returns:
- the number of cores supported by the VM size
-
osDiskSizeInMB
int osDiskSizeInMB()Gets the OS disk size allowed by the VM size.- Returns:
- the OS disk size allowed by the VM size
-
resourceDiskSizeInMB
int resourceDiskSizeInMB()Gets the resource disk size allowed by the VM size.- Returns:
- the resource disk size allowed by the VM size
-
memoryInMB
int memoryInMB()Gets the memory size supported by the VM size.- Returns:
- the memory size supported by the VM size
-
maxDataDiskCount
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
-
virtualMachineSizeType
VirtualMachineSizeTypes virtualMachineSizeType()The virtual machine size type if the sku describes sku for virtual machine resource type.The size can be used for
VirtualMachine.DefinitionStages.WithVMSize.withSize(VirtualMachineSizeTypes)andVirtualMachine.Update.withSize(VirtualMachineSizeTypes).- Returns:
- the virtual machine size type
-