Freigeben über


ArmScVmmModelFactory.ScVmmHardwareProfile Method

Definition

Initializes a new instance of ScVmmHardwareProfile.

public static Azure.ResourceManager.ScVmm.Models.ScVmmHardwareProfile ScVmmHardwareProfile (int? memoryMB = default, int? cpuCount = default, Azure.ResourceManager.ScVmm.Models.LimitCpuForMigration? limitCpuForMigration = default, Azure.ResourceManager.ScVmm.Models.DynamicMemoryEnabled? dynamicMemoryEnabled = default, int? dynamicMemoryMaxMB = default, int? dynamicMemoryMinMB = default, Azure.ResourceManager.ScVmm.Models.IsHighlyAvailable? isHighlyAvailable = default);
static member ScVmmHardwareProfile : Nullable<int> * Nullable<int> * Nullable<Azure.ResourceManager.ScVmm.Models.LimitCpuForMigration> * Nullable<Azure.ResourceManager.ScVmm.Models.DynamicMemoryEnabled> * Nullable<int> * Nullable<int> * Nullable<Azure.ResourceManager.ScVmm.Models.IsHighlyAvailable> -> Azure.ResourceManager.ScVmm.Models.ScVmmHardwareProfile
Public Shared Function ScVmmHardwareProfile (Optional memoryMB As Nullable(Of Integer) = Nothing, Optional cpuCount As Nullable(Of Integer) = Nothing, Optional limitCpuForMigration As Nullable(Of LimitCpuForMigration) = Nothing, Optional dynamicMemoryEnabled As Nullable(Of DynamicMemoryEnabled) = Nothing, Optional dynamicMemoryMaxMB As Nullable(Of Integer) = Nothing, Optional dynamicMemoryMinMB As Nullable(Of Integer) = Nothing, Optional isHighlyAvailable As Nullable(Of IsHighlyAvailable) = Nothing) As ScVmmHardwareProfile

Parameters

memoryMB
Nullable<Int32>

MemoryMB is the size of a virtual machine's memory, in MB.

cpuCount
Nullable<Int32>

Gets or sets the number of vCPUs for the vm.

limitCpuForMigration
Nullable<LimitCpuForMigration>

Gets or sets a value indicating whether to enable processor compatibility mode for live migration of VMs.

dynamicMemoryEnabled
Nullable<DynamicMemoryEnabled>

Gets or sets a value indicating whether to enable dynamic memory or not.

dynamicMemoryMaxMB
Nullable<Int32>

Gets or sets the max dynamic memory for the vm.

dynamicMemoryMinMB
Nullable<Int32>

Gets or sets the min dynamic memory for the vm.

isHighlyAvailable
Nullable<IsHighlyAvailable>

Gets highly available property.

Returns

A new ScVmmHardwareProfile instance for mocking.

Applies to