简体   繁体   English

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

[英]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.

相关问题 Azure Front Door - 如何滚动更新后端池? - Azure Front Door - How to do rolling update of backend pool? 天蓝色的前门-为什么我们需要向后端池添加多个后端 - azure front door - why do we need to add multiple backends to the backend pool 指向 Azure 负载均衡器公共 IP 的 Azure 前门后端池未解析 - Azure Front Door Backend Pool pointing to Azure Load Balancer Public IP not resolving Azure Front Door - 如何使用默认后端主机名自定义域? - Azure Front Door - how to custom domain with default backend host name? 使用PowerShell将可用性集添加到Azure负载均衡器的后端池 - Using PowerShell to add an Availability Set to Backend Pool for Azure Load Balancer 为什么通过 Azure 前门的请求在浏览器上显示后端池 url 而不是前端/域? - Why does a request through Azure front door shows backend pool urls on the browser instead of frontends/domains? Azure Front Door 每秒轮询后端池状态数次 - Azure Front Door polling backend pool state several times per second Azure前门-如何添加地理过滤策略? - Azure Front Door - How to add geo filtering policy? 如何使用 Azure Front Door 主机名作为托管在虚拟机上的后端网站的域名 - How to use the Azure Front Door hostname as domain name for the backend website hosted on Virtual Machine 如何将 PIP 关联到 Azure 前门 - How To Associate A PIP to An Azure Front Door
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM