Configure basic load balancer for existing VMs

jbassking 106 Reputation points
2019-12-06T02:31:15.94+00:00

I'm trying to configure a basic load balancer for two of our VMs. In order to do this is looks like I need an availability set. I didn't create on when I created the VMs and it doesn't look like I can assign one to the VMs now.

Do I need to create two more VMs and create the availability set at that point?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,168 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. msrini-MSFT 9,286 Reputation points Microsoft Employee
    2019-12-06T06:01:03.297+00:00

    Hi,

    When you want to load balance traffic between 2 VM for achieving high availability, it is not just enough to put the VMs behind the Load Balancer. You need to have those VMs in an availability set which will basically place the VM in different Fault Domain and Update domains providing high availability.

    You can place VMs in an availability set only during the creation and cannot be placed after creation. So you can delete your VM and recreate by placing those VMs in an availability set, so that you can add it behind your basic Load balancer.

    1 person found this answer helpful.
    0 comments No comments

  2. jbassking 106 Reputation points
    2019-12-07T18:53:38.907+00:00

  3. Emerson Caro 86 Reputation points
    2019-12-18T03:45:16.4+00:00

    The virtual machine needs to be placed in an availability set in order to for it to be added to a Load Balancer.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.