你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ArmAvsModelFactory.VmPlacementPolicyProperties 方法

定义

初始化 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

参数

state
Nullable<PlacementPolicyState>

是启用或禁用放置策略。

displayName
String

放置策略的显示名称。

provisioningState
Nullable<PlacementPolicyProvisioningState>

预配状态。

vmMembers
IEnumerable<ResourceIdentifier>

虚拟机成员列表。

affinityType
AvsPlacementPolicyAffinityType

放置策略相关性类型。

返回

用于模拟的新 VmPlacementPolicyProperties 实例。

适用于