Class HardwareProfile
java.lang.Object
com.azure.resourcemanager.compute.models.HardwareProfile
Specifies the hardware settings for the virtual machine.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate()Validates the instance.vmSize()Get the vmSize property: Specifies the size of the virtual machine.Get the vmSizeProperties property: Specifies the properties for customizing the size of the virtual machine.withVmSize(VirtualMachineSizeTypes vmSize) Set the vmSize property: Specifies the size of the virtual machine.withVmSizeProperties(VMSizeProperties vmSizeProperties) Set the vmSizeProperties property: Specifies the properties for customizing the size of the virtual machine.
-
Constructor Details
-
HardwareProfile
public HardwareProfile()
-
-
Method Details
-
vmSize
Get the vmSize property: Specifies the size of the virtual machine. <br><br> The enum data type is currently deprecated and will be removed by December 23rd 2023. <br><br> Recommended way to get the list of available sizes is using these APIs: <br><br> [List all available virtual machine sizes in an availability set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes) <br><br> [List all available virtual machine sizes in a region]( https://docs.microsoft.com/rest/api/compute/resourceskus/list) <br><br> [List all available virtual machine sizes for resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes). For more information about virtual machine sizes, see [Sizes for virtual machines](https://docs.microsoft.com/azure/virtual-machines/sizes). <br><br> The available VM sizes depend on region and availability set.- Returns:
- the vmSize value.
-
withVmSize
Set the vmSize property: Specifies the size of the virtual machine. <br><br> The enum data type is currently deprecated and will be removed by December 23rd 2023. <br><br> Recommended way to get the list of available sizes is using these APIs: <br><br> [List all available virtual machine sizes in an availability set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes) <br><br> [List all available virtual machine sizes in a region]( https://docs.microsoft.com/rest/api/compute/resourceskus/list) <br><br> [List all available virtual machine sizes for resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes). For more information about virtual machine sizes, see [Sizes for virtual machines](https://docs.microsoft.com/azure/virtual-machines/sizes). <br><br> The available VM sizes depend on region and availability set.- Parameters:
vmSize- the vmSize value to set.- Returns:
- the HardwareProfile object itself.
-
vmSizeProperties
Get the vmSizeProperties property: Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-07-01. <br><br> This feature is still in preview mode and is not supported for VirtualMachineScaleSet. <br><br> Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details.- Returns:
- the vmSizeProperties value.
-
withVmSizeProperties
Set the vmSizeProperties property: Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-07-01. <br><br> This feature is still in preview mode and is not supported for VirtualMachineScaleSet. <br><br> Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details.- Parameters:
vmSizeProperties- the vmSizeProperties value to set.- Returns:
- the HardwareProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-