Set-AzFrontDoor
更新 Front Door 負載平衡器
語法
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
Set-AzFrontDoor Cmdlet 會更新 Front Door 負載平衡器。 如果未提供輸入參數,則會使用來自現有 Front Door 的舊參數。
範例
範例 1:使用 FrontDoorName 和 ResourceGroupName 更新現有的 Front Door。
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
更新現有的 FrontDoor。
範例 2:使用 PSFrontDoor 物件更新現有的 Front Door。
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
更新現有的 FrontDoor。
範例 3:使用 ResourceId 更新現有的 Front Door
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
更新現有的 FrontDoor。
範例 4:使用 -DisableCertificateNameCheck 參數更新現有 Front Door 的 BackendPoolSetting 属性 EnforceCertificateNameCheck
若要更新的 Front Door 可以使用 FrontoorName 和 ResourceGroupName、PSFrontDoor 物件或 ResourceId 來識別。 (例如,請參閱上述 3 個範例)下列範例使用 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
更新現有的 FrontDoor。
參數
-BackendPool
路由規則可用的後端集區。
類型: | PSBackendPool[] |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-BackendPoolsSetting
所有 backendPools 的設定。
類型: | PSBackendPoolsSetting |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-Confirm
執行 Cmdlet 之前先提示您確認。
類型: | SwitchParameter |
別名: | cf |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-DisableCertificateNameCheck
是否停用所有後端集區的 HTTPS 要求憑證名稱檢查。 對非 HTTPS 要求沒有任何影響。
類型: | SwitchParameter |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-EnabledState
Front Door 負載平衡器的作業狀態。
類型: | PSEnabledState |
接受的值: | Enabled, Disabled |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-FrontendEndpoint
路由規則可用的前端端點。
類型: | PSFrontendEndpoint[] |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-HealthProbeSetting
與此 Front Door 實例相關聯的健康情況探查設定。
類型: | PSHealthProbeSetting[] |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-InputObject
要更新的 Front Door 物件。
類型: | PSFrontDoor |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-LoadBalancingSetting
與此 Front Door 實例相關聯的負載平衡設定。
類型: | PSLoadBalancingSetting[] |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Name
要更新的 Front Door 名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceGroupName
Front Door 所屬的資源群組。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceId
要更新之 Front Door 的資源識別碼
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-RoutingRule
與此 FrontDoor 相關聯的路由規則
類型: | PSRoutingRule[] |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Tag
標記會與 FrontDoor 產生關聯。
類型: | Hashtable |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-WhatIf
顯示執行 Cmdlet 後會發生的情況。 未執行 Cmdlet。
類型: | SwitchParameter |
別名: | wi |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |