通过 ARM 模板将现有 VM 添加到 Azure 负载均衡器
Adding an existing VMs to the Azure Load Balancer Through ARM templates
任何人都可以分享用于将现有 VM 添加到 Azure 负载均衡器的脚本。我们如何使用ARM脚本更新LB的后端池。
我一直在关注这个脚本“https://github.com/Azure/azure-quickstart-templates/blob/master/201-2-vms-internal-load-balancer/azuredeploy.json”,但上面的脚本是用于新部署的。
尽你所能 see from the template its not actually updating the backend pool, it only creates it. You attach a vm by adding a loadBalancerBackendAddressPools 属性 到虚拟机网卡:
"loadBalancerBackendAddressPools": [
{
"id": "[concat(resourceId('Microsoft.Network/loadBalancers', variables('loadBalancerName')) , '/backendAddressPools/BackendPool1')]"
}
]
任何人都可以分享用于将现有 VM 添加到 Azure 负载均衡器的脚本。我们如何使用ARM脚本更新LB的后端池。 我一直在关注这个脚本“https://github.com/Azure/azure-quickstart-templates/blob/master/201-2-vms-internal-load-balancer/azuredeploy.json”,但上面的脚本是用于新部署的。
尽你所能 see from the template its not actually updating the backend pool, it only creates it. You attach a vm by adding a loadBalancerBackendAddressPools 属性 到虚拟机网卡:
"loadBalancerBackendAddressPools": [
{
"id": "[concat(resourceId('Microsoft.Network/loadBalancers', variables('loadBalancerName')) , '/backendAddressPools/BackendPool1')]"
}
]