简体   繁体   English

通过ARM模板将现有VM添加到Azure负载平衡器

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

相关问题 Azure 负载均衡器 - 使用 ARM 模板将现有 VM 添加到 Azure 负载均衡器 - Azure Load balancer - Add existing VMs to Azure Load Balancer with ARM template 为Azure预览门户中的现有VM创建Azure负载均衡器 - Create Azure Load Balancer for existing VMs in Azure Preview Portal 如何通过Azure中的ARM模板添加新的公共IP来更新(而不是覆盖)现有的负载均衡器 - How to update (not override) exsiting load balancer by adding new public IP through ARM template in Azure 如何将 Azure 负载均衡器前端的 Azure VM 上的源 IP 列入白名单 - How to whitelist source IPs on Azure VMs fronted by Azure Load Balancer ARM 模板 - 将动态数据磁盘添加到 VM 的值和参数? - ARM Templates - Values and parameters for Adding Dynamic Data disks to VMs? Azure-在ARM模板中指定负载均衡器规则 - Azure - Specifying Load Balancer Rules in ARM Template Microsoft Azure-面向公共负载均衡器的2个VM - Microsoft Azure - 2 VMs behind a public facing Load Balancer Azure - 无法访问面向 Internet 的标准负载均衡器后面的 VM - Azure - no access to VMs behind a internet facing standard Load Balancer 将端口添加到Azure负载平衡器 - Adding Ports to Azure Load Balancer 通过ARM模板将子网添加到现有Vnet - Addition of subnets to existing Vnet through ARM templates
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM