VirtualMachineScaleSetHardwareProfile Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. VirtualMachineScaleSetHardwareProfile
- com.
Implements
public final class VirtualMachineScaleSetHardwareProfile
implements JsonSerializable<VirtualMachineScaleSetHardwareProfile>
Specifies the hardware settings for the virtual machine scale set.
Constructor Summary
| Constructor | Description |
|---|---|
| VirtualMachineScaleSetHardwareProfile() |
Creates an instance of Virtual |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
|
Processor |
processorMode()
Get the processor |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
VMSize |
vmSizeProperties()
Get the vm |
|
Virtual |
withProcessorMode(ProcessorMode processorMode)
Set the processor |
|
Virtual |
withVmSizeProperties(VMSizeProperties vmSizeProperties)
Set the vm |
Methods inherited from java.lang.Object
Constructor Details
VirtualMachineScaleSetHardwareProfile
public VirtualMachineScaleSetHardwareProfile()
Creates an instance of VirtualMachineScaleSetHardwareProfile class.
Method Details
fromJson
public static VirtualMachineScaleSetHardwareProfile fromJson(JsonReader jsonReader)
Reads an instance of VirtualMachineScaleSetHardwareProfile from the JsonReader.
Parameters:
Returns:
Throws:
processorMode
public ProcessorMode processorMode()
Get the processorMode property: Specifies the processor mode for the virtual machine scale set. Optional; if omitted, the platform default applies (currently Deterministic). This property can be updated on a running VMSS without deallocation or reboot. Minimum api-version: 2026-04-01.
Returns:
toJson
validate
public void validate()
Validates the instance.
vmSizeProperties
public VMSizeProperties vmSizeProperties()
Get the vmSizeProperties property: Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details.
Returns:
withProcessorMode
public VirtualMachineScaleSetHardwareProfile withProcessorMode(ProcessorMode processorMode)
Set the processorMode property: Specifies the processor mode for the virtual machine scale set. Optional; if omitted, the platform default applies (currently Deterministic). This property can be updated on a running VMSS without deallocation or reboot. Minimum api-version: 2026-04-01.
Parameters:
Returns:
withVmSizeProperties
public VirtualMachineScaleSetHardwareProfile withVmSizeProperties(VMSizeProperties vmSizeProperties)
Set the vmSizeProperties property: Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details.
Parameters:
Returns: