[英]Adding an existing VMs to the Azure Load Balancer Through ARM templates
Could anybody please share scripts for adding an existing VMs to the Azure Load Balancer. 任何人都可以共享用于将现有VM添加到Azure负载平衡器的脚本。 How can we update the back-end pool of the LB with ARM scripts.
我们如何使用ARM脚本更新LB的后端池。 I have been following this script " https://github.com/Azure/azure-quickstart-templates/blob/master/201-2-vms-internal-load-balancer/azuredeploy.json " ,but the above script is for New deployment.
我一直在关注这个脚本“ https://github.com/Azure/azure-quickstart-templates/blob/master/201-2-vms-internal-load-balancer/azuredeploy.json ”,但是上面的脚本是针对新部署。
as you can see from the template its not actually updating the backend pool, it only creates it. 正如您从模板中看到的那样,它实际上并没有更新后端池,它只会创建后端池。 You attach a vm by adding a loadBalancerBackendAddressPools property to the vm nic:
您可以通过将loadBalancerBackendAddressPools属性添加到vm nic来附加一个vm:
"loadBalancerBackendAddressPools": [
{
"id": "[concat(resourceId('Microsoft.Network/loadBalancers', variables('loadBalancerName')) , '/backendAddressPools/BackendPool1')]"
}
]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.