我尝试了下面的代码,但它没有将新的后端池添加到现有的前门。
$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