繁体   English   中英

如何使用 powershell 脚本将新后端池添加到现有 azure 前门

[英]How to add new backend pool to existing azure Front door using powershell script

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

$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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM