Compartir a través de


ArmConnectedVMwarevSphereModelFactory.VmInstanceHardwareProfile Method

Definition

Initializes a new instance of VmInstanceHardwareProfile.

public static Azure.ResourceManager.ConnectedVMwarevSphere.Models.VmInstanceHardwareProfile VmInstanceHardwareProfile (int? memorySizeMB = default, int? numCpus = default, int? numCoresPerSocket = default, bool? cpuHotAddEnabled = default, bool? cpuHotRemoveEnabled = default, bool? memoryHotAddEnabled = default);
static member VmInstanceHardwareProfile : Nullable<int> * Nullable<int> * Nullable<int> * Nullable<bool> * Nullable<bool> * Nullable<bool> -> Azure.ResourceManager.ConnectedVMwarevSphere.Models.VmInstanceHardwareProfile
Public Shared Function VmInstanceHardwareProfile (Optional memorySizeMB As Nullable(Of Integer) = Nothing, Optional numCpus As Nullable(Of Integer) = Nothing, Optional numCoresPerSocket As Nullable(Of Integer) = Nothing, Optional cpuHotAddEnabled As Nullable(Of Boolean) = Nothing, Optional cpuHotRemoveEnabled As Nullable(Of Boolean) = Nothing, Optional memoryHotAddEnabled As Nullable(Of Boolean) = Nothing) As VmInstanceHardwareProfile

Parameters

memorySizeMB
Nullable<Int32>

Gets or sets memory size in MBs for the vm.

numCpus
Nullable<Int32>

Gets or sets the number of vCPUs for the vm.

numCoresPerSocket
Nullable<Int32>

Gets or sets the number of cores per socket for the vm. Defaults to 1 if unspecified.

cpuHotAddEnabled
Nullable<Boolean>

Gets or sets a value indicating whether virtual processors can be added while this virtual machine is running.

cpuHotRemoveEnabled
Nullable<Boolean>

Gets or sets a value indicating whether virtual processors can be removed while this virtual machine is running.

memoryHotAddEnabled
Nullable<Boolean>

Gets or sets a value indicating whether memory can be added while this virtual machine is running.

Returns

A new VmInstanceHardwareProfile instance for mocking.

Applies to