ภาษา

ArmComputeModelFactory.VirtualMachineHardwareProfile Method

Definition

Specifies the hardware settings for the virtual machine.

public static Azure.ResourceManager.Compute.Models.VirtualMachineHardwareProfile VirtualMachineHardwareProfile(Azure.ResourceManager.Compute.Models.VirtualMachineSizeType? vmSize, Azure.ResourceManager.Compute.Models.VirtualMachineSizeProperties vmSizeProperties, Azure.ResourceManager.Compute.Models.ProcessorMode? processorMode);
static member VirtualMachineHardwareProfile : Nullable<Azure.ResourceManager.Compute.Models.VirtualMachineSizeType> * Azure.ResourceManager.Compute.Models.VirtualMachineSizeProperties * Nullable<Azure.ResourceManager.Compute.Models.ProcessorMode> -> Azure.ResourceManager.Compute.Models.VirtualMachineHardwareProfile
Public Shared Function VirtualMachineHardwareProfile (vmSize As Nullable(Of VirtualMachineSizeType), vmSizeProperties As VirtualMachineSizeProperties, processorMode As Nullable(Of ProcessorMode)) As VirtualMachineHardwareProfile

Parameters

vmSize
Nullable<VirtualMachineSizeType>

Specifies the size of the virtual machine. The enum data type is currently deprecated and will be removed by December 23rd 2023. The recommended way to get the list of available sizes is using these APIs: List all available virtual machine sizes in an availability set, List all available virtual machine sizes in a region, List all available virtual machine sizes for resizing. For more information about virtual machine sizes, see Sizes for virtual machines. The available VM sizes depend on region and availability set.

vmSizeProperties
VirtualMachineSizeProperties

Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-07-01. This feature is still in preview mode and is not supported for VirtualMachineScaleSet. Please follow the instructions in VM Customization for more details.

processorMode
Nullable<ProcessorMode>

Specifies the processor mode for the virtual machine or virtual machine scale set. Optional; if omitted, the platform default applies (currently Deterministic). This property can be updated on a running VM or VMSS without deallocation or reboot. Minimum api-version: 2026-04-01.

Returns

A new VirtualMachineHardwareProfile instance for mocking.

Applies to