Delen via


ArmConnectedVMwarevSphereModelFactory.HardwareProfile Method

Definition

Initializes a new instance of HardwareProfile.

public static Azure.ResourceManager.ConnectedVMwarevSphere.Models.HardwareProfile HardwareProfile (int? memorySizeMB = default, int? numCpus = default, int? numCoresPerSocket = default, bool? cpuHotAddEnabled = default, bool? cpuHotRemoveEnabled = default, bool? memoryHotAddEnabled = default);
static member HardwareProfile : Nullable<int> * Nullable<int> * Nullable<int> * Nullable<bool> * Nullable<bool> * Nullable<bool> -> Azure.ResourceManager.ConnectedVMwarevSphere.Models.HardwareProfile
Public Shared Function HardwareProfile (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 HardwareProfile

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 HardwareProfile instance for mocking.

Applies to