Question

First I've captured image of my Azure windows virtual machine see, then I created two new virtual machines(VM1, VM2) from this captured image. Now I want to do load balancing with these 2 virtual machines see. But the "LOAD-BALANCE TRAFFIC ON AN EXISTING ENDPOINT" option is disabled (I added the endpoint in VM1) also my availability set is not showing under "AVAILABILITY SET" option in VM2.

If I do the same process by creating virtual machine from the Gallery, and follow the steps from here, it worked for me.

Is there any power shell command or other way to load balance?

Please help me.

Thanks Kapil

Était-ce utile?

La solution

You need both the virtual machines to be under the same cloud service. Only then you get the option to load balance them. There is no way add existing VMs to the same network. there are operations in the Service management API (usable through powershell) to create a new VM. You can use that to create a fresh VM from your existing image and connect it to the same service as your first VM. Then you'llhave the necessary options enabled for load balancing.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top