Add multiple Virtual Machine Scale Set instances behind one Azure Load Balancer

In this article, you’ll learn how to configure multiple Virtual Machine Scale Set instances behind a single Azure Load Balancer.

Prerequisites

  • Access to the Azure portal
  • An Azure account with an active subscription. Create an account for free
  • Two or more Virtual Machine Scale Sets
    • Ensure the upgrade policy is set to automatic.
      • If manual upgrade policy is used, upgrade all virtual machine instances after attaching it to the load balancer.
  • An existing standard SKU load balancer in the same subscription and virtual network as the Virtual Machine Scale Sets.
    • The load balancer must also have a backend pool with health probes and load balancing rules attached.

Add Virtual Machine Scale Set to an Azure Load Balancer’s backend pool

In this section, you’ll learn how to attach your Virtual Machine Scale Sets behind a single Azure Load Balancer.

Note

The following section assumes a virtual network named myVnet and an Azure Load Balancer named myLoadBalancer has been previously deployed. In addition, the following section assumes the backend pools are NIC based.

  1. Sign in to the Azure portal.
  2. In the search box at the top of the portal, enter Load balancer. Select Load balancers in the search results.
  3. Select your balancer from the list.
  4. In your load balancer's page, select Backend pools under Settings.
  5. Select your backend pool.
  6. In your backend pool's page, select + Add under IP configurations
  7. Select the two Virtual Machine Scale Sets that you want to add to the backend pool.
  8. Select Add and Save.

Next steps

In this article, you attached multiple Virtual Machine Scale Sets behind a single Azure load balancer.