ArmAvsModelFactory.VmHostPlacementPolicyProperties Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Inicializa uma nova instância de 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
Parâmetros
- state
- Nullable<PlacementPolicyState>
Se a política de posicionamento está habilitada ou desabilitada.
- displayName
- String
Nome de exibição da política de posicionamento.
- provisioningState
- Nullable<PlacementPolicyProvisioningState>
O estado de provisionamento.
- vmMembers
- IEnumerable<ResourceIdentifier>
Lista de membros de máquina virtual.
- hostMembers
- IEnumerable<String>
Lista de membros do host.
- affinityType
- AvsPlacementPolicyAffinityType
tipo de afinidade de política de posicionamento.
- affinityStrength
- Nullable<VmHostPlacementPolicyAffinityStrength>
Força de afinidade da política de posicionamento do vm-host (deve/deve).
- azureHybridBenefitType
- Nullable<AzureHybridBenefitType>
tipo de aceitação de benefício híbrido do Azure da política de posicionamento.
Retornos
Uma nova VmHostPlacementPolicyProperties instância para zombar.
Aplica-se a
Azure SDK for .NET