0

我尝试了下面的代码,但它没有将新的后端池添加到现有的前门。

$backend1 = New-AzFrontDoorBackendObject -Address xx.xxx.xxx.xxx -httpPort 80 -httpsPort 443 -Priority 1 -Weight 50 -BackendHostHeader xx.xxx.xxx.xxx -EnabledState Enabled

$AzSubscription = Set-AzContext

New-AzFrontDoorBackendPoolObject -ResourceGroupName -Name "rndbackendpool" -FrontDoorName "rnd-test" -Backend $backend1 -LoadBalancingSettingsName "rndLB" -HealthProbeSettingsName "rndHP" -DefaultProfile $AzSubscription
4

1 回答 1

0

您可以查看我上传到图库的 PS 脚本:https ://gallery.technet.microsoft.com/Update-existing-Azure-23a36fce

于 2020-04-11T22:59:30.357 回答