你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ArmAvsModelFactory.VmHostPlacementPolicyProperties 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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
参数
- state
- Nullable<PlacementPolicyState>
是启用或禁用放置策略。
- displayName
- String
放置策略的显示名称。
- provisioningState
- Nullable<PlacementPolicyProvisioningState>
预配状态。
- vmMembers
- IEnumerable<ResourceIdentifier>
虚拟机成员列表。
- hostMembers
- IEnumerable<String>
主机成员列表。
- affinityType
- AvsPlacementPolicyAffinityType
放置策略相关性类型。
- affinityStrength
- Nullable<VmHostPlacementPolicyAffinityStrength>
vm-host 放置策略相关性强度 (应/必须) 。
- azureHybridBenefitType
- Nullable<AzureHybridBenefitType>
放置策略 azure 混合权益选择加入类型。
返回
用于模拟的新 VmHostPlacementPolicyProperties 实例。