Partilhar via


Set-AzFrontDoor

Atualizar um balanceador de carga da porta frontal

Sintaxe

Set-AzFrontDoor
   -ResourceGroupName <String>
   -Name <String>
   [-RoutingRule <PSRoutingRule[]>]
   [-BackendPool <PSBackendPool[]>]
   [-FrontendEndpoint <PSFrontendEndpoint[]>]
   [-LoadBalancingSetting <PSLoadBalancingSetting[]>]
   [-HealthProbeSetting <PSHealthProbeSetting[]>]
   [-Tag <Hashtable>]
   [-EnabledState <PSEnabledState>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzFrontDoor
   -ResourceGroupName <String>
   -Name <String>
   [-RoutingRule <PSRoutingRule[]>]
   [-BackendPool <PSBackendPool[]>]
   [-FrontendEndpoint <PSFrontendEndpoint[]>]
   [-LoadBalancingSetting <PSLoadBalancingSetting[]>]
   [-HealthProbeSetting <PSHealthProbeSetting[]>]
   [-Tag <Hashtable>]
   [-EnabledState <PSEnabledState>]
   [-DisableCertificateNameCheck]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzFrontDoor
   -ResourceGroupName <String>
   -Name <String>
   [-RoutingRule <PSRoutingRule[]>]
   [-BackendPool <PSBackendPool[]>]
   [-FrontendEndpoint <PSFrontendEndpoint[]>]
   [-LoadBalancingSetting <PSLoadBalancingSetting[]>]
   [-HealthProbeSetting <PSHealthProbeSetting[]>]
   [-Tag <Hashtable>]
   [-EnabledState <PSEnabledState>]
   -BackendPoolsSetting <PSBackendPoolsSetting>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzFrontDoor
   -InputObject <PSFrontDoor>
   [-RoutingRule <PSRoutingRule[]>]
   [-BackendPool <PSBackendPool[]>]
   [-FrontendEndpoint <PSFrontendEndpoint[]>]
   [-LoadBalancingSetting <PSLoadBalancingSetting[]>]
   [-HealthProbeSetting <PSHealthProbeSetting[]>]
   [-Tag <Hashtable>]
   [-EnabledState <PSEnabledState>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzFrontDoor
   -InputObject <PSFrontDoor>
   [-RoutingRule <PSRoutingRule[]>]
   [-BackendPool <PSBackendPool[]>]
   [-FrontendEndpoint <PSFrontendEndpoint[]>]
   [-LoadBalancingSetting <PSLoadBalancingSetting[]>]
   [-HealthProbeSetting <PSHealthProbeSetting[]>]
   [-Tag <Hashtable>]
   [-EnabledState <PSEnabledState>]
   [-DisableCertificateNameCheck]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzFrontDoor
   -InputObject <PSFrontDoor>
   [-RoutingRule <PSRoutingRule[]>]
   [-BackendPool <PSBackendPool[]>]
   [-FrontendEndpoint <PSFrontendEndpoint[]>]
   [-LoadBalancingSetting <PSLoadBalancingSetting[]>]
   [-HealthProbeSetting <PSHealthProbeSetting[]>]
   [-Tag <Hashtable>]
   [-EnabledState <PSEnabledState>]
   -BackendPoolsSetting <PSBackendPoolsSetting>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzFrontDoor
   -ResourceId <String>
   [-RoutingRule <PSRoutingRule[]>]
   [-BackendPool <PSBackendPool[]>]
   [-FrontendEndpoint <PSFrontendEndpoint[]>]
   [-LoadBalancingSetting <PSLoadBalancingSetting[]>]
   [-HealthProbeSetting <PSHealthProbeSetting[]>]
   [-Tag <Hashtable>]
   [-EnabledState <PSEnabledState>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzFrontDoor
   -ResourceId <String>
   [-RoutingRule <PSRoutingRule[]>]
   [-BackendPool <PSBackendPool[]>]
   [-FrontendEndpoint <PSFrontendEndpoint[]>]
   [-LoadBalancingSetting <PSLoadBalancingSetting[]>]
   [-HealthProbeSetting <PSHealthProbeSetting[]>]
   [-Tag <Hashtable>]
   [-EnabledState <PSEnabledState>]
   [-DisableCertificateNameCheck]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzFrontDoor
   -ResourceId <String>
   [-RoutingRule <PSRoutingRule[]>]
   [-BackendPool <PSBackendPool[]>]
   [-FrontendEndpoint <PSFrontendEndpoint[]>]
   [-LoadBalancingSetting <PSLoadBalancingSetting[]>]
   [-HealthProbeSetting <PSHealthProbeSetting[]>]
   [-Tag <Hashtable>]
   [-EnabledState <PSEnabledState>]
   -BackendPoolsSetting <PSBackendPoolsSetting>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

O cmdlet Set-AzFrontDoor atualiza um balanceador de carga Front Door. Se os parâmetros de entrada não forem fornecidos, os parâmetros antigos da porta frontal existente serão usados.

Exemplos

Exemplo 1: atualize uma porta frontal existente com FrontDoorName e ResourceGroupName.

Set-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "resourceGroup1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1

FriendlyName                : frontdoor1
RoutingRules                : {routingrule1}
BackendPools                : {backendpool1}
BackendPoolsSetting         : {backendPoolsSetting1}
EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck}
HealthProbeSettings         : {healthProbeSetting1}
LoadBalancingSettings       : {loadbalancingsetting1}
FrontendEndpoints           : {frontendendpoint1}
EnabledState                : Enabled
ResourceState               : Enabled
ProvisioningState           : Succeeded
Cname                       :
Tags                        : {tag1, tag2}
Id                          : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1
Name                        : frontdoor1
Type                        : Microsoft.Network/frontdoors

atualizar um FrontDoor existente.

Exemplo 2: atualizar uma porta frontal existente com o objeto PSFrontDoor.

Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1

FriendlyName                : frontdoor1
RoutingRules                : {routingrule1}
BackendPools                : {backendpool1}
BackendPoolsSetting         : {backendPoolsSetting1}
EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck}
HealthProbeSettings         : {healthProbeSetting1}
LoadBalancingSettings       : {loadbalancingsetting1}
FrontendEndpoints           : {frontendendpoint1}
EnabledState                : Enabled
ResourceState               : Enabled
ProvisioningState           : Succeeded
Cname                       :
Tags                        : {tag1, tag2}
Id                          : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1
Name                        : frontdoor1
Type                        : Microsoft.Network/frontdoor1

atualizar um FrontDoor existente.

Exemplo 3: atualizar uma porta de entrada existente com ResourceId

Set-AzFrontDoor -ResourceId $resourceId -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1

FriendlyName                : frontdoor1
RoutingRules                : {routingrule1}
BackendPools                : {backendpool1}
BackendPoolsSetting         : {backendPoolsSetting1}
EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck}
HealthProbeSettings         : {healthProbeSetting1}
LoadBalancingSettings       : {loadbalancingsetting1}
FrontendEndpoints           : {frontendendpoint1}
EnabledState                : Enabled
ResourceState               : Enabled
ProvisioningState           : Succeeded
Cname                       :
Tags                        : {tag1, tag2}
Id                          : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1
Name                        : frontdoor1
Type                        : Microsoft.Network/frontdoor1

atualizar um FrontDoor existente.

Exemplo 4: atualizar a propriedade BackendPoolSetting EnforceCertificateNameCheck de uma porta frontal existente com o parâmetro de opção -DisableCertificateNameCheck

A porta frontal a ser atualizada pode ser identificada usando FrontoorName e ResourceGroupName, objeto PSFrontDoor ou ResourceId. (Ver 3 exemplos acima, por exemplo) O exemplo abaixo usa o objeto PSFrontDoor.

Set-AzFrontDoor -InputObject $frontDoor1 -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -DisableCertificateNameCheck

FriendlyName                : frontdoor1
RoutingRules                : {routingrule1}
BackendPools                : {backendpool1}
BackendPoolsSetting         : {PSBackendPoolsSetting object with EnforceCertificateNameCheck is set to Disabled}
EnforceCertificateNameCheck : Disabled
HealthProbeSettings         : {healthProbeSetting1}
LoadBalancingSettings       : {loadbalancingsetting1}
FrontendEndpoints           : {frontendendpoint1}
EnabledState                : Enabled
ResourceState               : Enabled
ProvisioningState           : Succeeded
Cname                       :
Tags                        : {tag1, tag2}
Id                          : /subscriptions/{guid}/resourcegroups/{guid}/providers/Microsoft.Network/frontdoors/frontdoor1
Name                        : frontdoor1
Type                        : Microsoft.Network/frontdoor1

atualizar um FrontDoor existente.

Parâmetros

-BackendPool

Backendpools disponíveis para a regra de roteamento.

Tipo:PSBackendPool[]
Position:Named
Default value:None
Necessário:False
Aceitar entrada de pipeline:False
Aceitar carateres universais:False

-BackendPoolsSetting

Configurações para todos os backendPools.

Tipo:PSBackendPoolsSetting
Position:Named
Default value:None
Necessário:True
Aceitar entrada de pipeline:False
Aceitar carateres universais:False

-Confirm

Solicita a sua confirmação antes de executar o cmdlet.

Tipo:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Necessário:False
Aceitar entrada de pipeline:False
Aceitar carateres universais:False

-DefaultProfile

As credenciais, a conta, o locatário e a assinatura usados para comunicação com o Azure.

Tipo:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Necessário:False
Aceitar entrada de pipeline:False
Aceitar carateres universais:False

-DisableCertificateNameCheck

Se deseja desabilitar a verificação do nome do certificado nas solicitações HTTPS para todos os pools de back-end. Nenhum efeito em solicitações não-HTTPS.

Tipo:SwitchParameter
Position:Named
Default value:None
Necessário:True
Aceitar entrada de pipeline:False
Aceitar carateres universais:False

-EnabledState

Estado operacional do balanceador de carga Front Door.

Tipo:PSEnabledState
Valores aceites:Enabled, Disabled
Position:Named
Default value:None
Necessário:False
Aceitar entrada de pipeline:False
Aceitar carateres universais:False

-FrontendEndpoint

Pontos de extremidade de front-end disponíveis para a regra de roteamento.

Tipo:PSFrontendEndpoint[]
Position:Named
Default value:None
Necessário:False
Aceitar entrada de pipeline:False
Aceitar carateres universais:False

-HealthProbeSetting

Configurações da sonda de integridade associadas a essa instância do Front Door.

Tipo:PSHealthProbeSetting[]
Position:Named
Default value:None
Necessário:False
Aceitar entrada de pipeline:False
Aceitar carateres universais:False

-InputObject

O objeto Front Door a ser atualizado.

Tipo:PSFrontDoor
Position:Named
Default value:None
Necessário:True
Aceitar entrada de pipeline:True
Aceitar carateres universais:False

-LoadBalancingSetting

Configurações de balanceamento de carga associadas a essa instância do Front Door.

Tipo:PSLoadBalancingSetting[]
Position:Named
Default value:None
Necessário:False
Aceitar entrada de pipeline:False
Aceitar carateres universais:False

-Name

O nome da porta da frente a ser atualizada.

Tipo:String
Position:Named
Default value:None
Necessário:True
Aceitar entrada de pipeline:False
Aceitar carateres universais:False

-ResourceGroupName

O grupo de recursos ao qual a Porta da Frente pertence.

Tipo:String
Position:Named
Default value:None
Necessário:True
Aceitar entrada de pipeline:False
Aceitar carateres universais:False

-ResourceId

ID do recurso da porta da frente para atualizar

Tipo:String
Position:Named
Default value:None
Necessário:True
Aceitar entrada de pipeline:True
Aceitar carateres universais:False

-RoutingRule

Regras de roteamento associadas a este FrontDoor

Tipo:PSRoutingRule[]
Position:Named
Default value:None
Necessário:False
Aceitar entrada de pipeline:False
Aceitar carateres universais:False

-Tag

As tags se associam ao FrontDoor.

Tipo:Hashtable
Position:Named
Default value:None
Necessário:False
Aceitar entrada de pipeline:False
Aceitar carateres universais:False

-WhatIf

Apresenta o que aconteceria mediante a execução do cmdlet. O cmdlet não é executado.

Tipo:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Necessário:False
Aceitar entrada de pipeline:False
Aceitar carateres universais:False

Entradas

PSFrontDoor

String

Saídas

PSFrontDoor