[英]How to add new backend pool to existing azure Front door using powershell script
I tried below code, but it's not adding new backend pool to existing front door.我尝试了下面的代码,但它没有将新的后端池添加到现有的前门。
$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
You can check my PS script uploaded to the gallery: https://gallery.technet.microsoft.com/Update-existing-Azure-23a36fce您可以查看我上传到图库的 PS 脚本: https://gallery.technet.microsoft.com/Update-existing-Azure-23a36fce
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.