Condividi tramite


ArmAvsModelFactory.VmPlacementPolicyProperties Method

Definition

Initializes a new instance of VmPlacementPolicyProperties.

public static Azure.ResourceManager.Avs.Models.VmPlacementPolicyProperties VmPlacementPolicyProperties (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, Azure.ResourceManager.Avs.Models.AvsPlacementPolicyAffinityType affinityType = default);
static member VmPlacementPolicyProperties : Nullable<Azure.ResourceManager.Avs.Models.PlacementPolicyState> * string * Nullable<Azure.ResourceManager.Avs.Models.PlacementPolicyProvisioningState> * seq<Azure.Core.ResourceIdentifier> * Azure.ResourceManager.Avs.Models.AvsPlacementPolicyAffinityType -> Azure.ResourceManager.Avs.Models.VmPlacementPolicyProperties
Public Shared Function VmPlacementPolicyProperties (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 affinityType As AvsPlacementPolicyAffinityType = Nothing) As VmPlacementPolicyProperties

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.

affinityType
AvsPlacementPolicyAffinityType

placement policy affinity type.

Returns

A new VmPlacementPolicyProperties instance for mocking.

Applies to