Interface VirtualMachineSize

All Superinterfaces:
HasName

public interface VirtualMachineSize extends HasName
A type representing virtual machine size available for a subscription in a region.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the maximum number of data disks allowed by a VM size.
    int
    Gets the memory size supported by the VM size.
    int
    Gets the number of cores supported by the VM size.
    int
    Gets the OS disk size allowed by the VM size.
    int
    Gets the resource disk size allowed by the VM size.
    The virtual machine size type if the sku describes sku for virtual machine resource type.

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasName

    name
  • 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) and VirtualMachine.Update.withSize(VirtualMachineSizeTypes).

      Returns:
      the virtual machine size type