Condividi tramite


ArmAvsModelFactory.VmHostPlacementPolicyProperties Method

Definition

Initializes a new instance of VmHostPlacementPolicyProperties.

public static Azure.ResourceManager.Avs.Models.VmHostPlacementPolicyProperties VmHostPlacementPolicyProperties (Azure.ResourceManager.Avs.Models.PlacementPolicyState? state = default, string displayName = default, Azure.ResourceManager.Avs.Models.PlacementPolicyProvisioningState? provisioningState = default, System.Collections.Generic.IEnumerable<Azure.Core.ResourceIdentifier> vmMembers = default, System.Collections.Generic.IEnumerable<string> hostMembers = default, Azure.ResourceManager.Avs.Models.AvsPlacementPolicyAffinityType affinityType = default, Azure.ResourceManager.Avs.Models.VmHostPlacementPolicyAffinityStrength? affinityStrength = default, Azure.ResourceManager.Avs.Models.AzureHybridBenefitType? azureHybridBenefitType = default);
static member VmHostPlacementPolicyProperties : Nullable<Azure.ResourceManager.Avs.Models.PlacementPolicyState> * string * Nullable<Azure.ResourceManager.Avs.Models.PlacementPolicyProvisioningState> * seq<Azure.Core.ResourceIdentifier> * seq<string> * Azure.ResourceManager.Avs.Models.AvsPlacementPolicyAffinityType * Nullable<Azure.ResourceManager.Avs.Models.VmHostPlacementPolicyAffinityStrength> * Nullable<Azure.ResourceManager.Avs.Models.AzureHybridBenefitType> -> Azure.ResourceManager.Avs.Models.VmHostPlacementPolicyProperties
Public Shared Function VmHostPlacementPolicyProperties (Optional state As Nullable(Of PlacementPolicyState) = Nothing, Optional displayName As String = Nothing, Optional provisioningState As Nullable(Of PlacementPolicyProvisioningState) = Nothing, Optional vmMembers As IEnumerable(Of ResourceIdentifier) = Nothing, Optional hostMembers As IEnumerable(Of String) = Nothing, Optional affinityType As AvsPlacementPolicyAffinityType = Nothing, Optional affinityStrength As Nullable(Of VmHostPlacementPolicyAffinityStrength) = Nothing, Optional azureHybridBenefitType As Nullable(Of AzureHybridBenefitType) = Nothing) As VmHostPlacementPolicyProperties

Parameters

state
Nullable<PlacementPolicyState>

Whether the placement policy is enabled or disabled.

displayName
String

Display name of the placement policy.

provisioningState
Nullable<PlacementPolicyProvisioningState>

The provisioning state.

vmMembers
IEnumerable<ResourceIdentifier>

Virtual machine members list.

hostMembers
IEnumerable<String>

Host members list.

affinityType
AvsPlacementPolicyAffinityType

placement policy affinity type.

affinityStrength
Nullable<VmHostPlacementPolicyAffinityStrength>

vm-host placement policy affinity strength (should/must).

azureHybridBenefitType
Nullable<AzureHybridBenefitType>

placement policy azure hybrid benefit opt-in type.

Returns

A new VmHostPlacementPolicyProperties instance for mocking.

Applies to