簡體   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