0
votes

I am very much new to Microsoft Azure. I am using using Azure Portal in web browser to set up my application.

I followed the following procedure to load balance my tomcat applications.

  1. I created two VMs with Ubuntu (16.0.X) in the same availability set.
  2. In both the VMs I changed the network security group to make sure both are externally accessible.
  3. I downloaded tomcat 7 on each of the VMs using wget and deployed my war file on each of them.
  4. Tested with browser and ensured that application is accessible externally from each of the VMs.

Now I tried to load balance the above two VMs :

  1. Created a new load balancer in microsoft azure portal.
  2. Attached both the VMs as backend pool to the load balancer.
  3. Created a probe to check for application on port 8080
  4. Set up a load balancing rule to allow all TCP traffic on port 8080 to the VMs 8080.

However, Now when I try to connect to the load balancer using the port 8080 and the public IP . I get connection timeout error.

Is there anything which I have missed in the setup?

1
Did you associate a Public IP address resource with the load balancer, also did you define 8080/TCP as an endpoint on it?evilSnobu
I did assign a public ip address. However, I did not define TCP 8080 as an endpoint. How do I do that?user2730428
That means your VM is created in the ARM stack. No Endpoints there. Just NSGs. Double check VM firewalls.evilSnobu
That means your LB is created in the ARM stack. No Endpoints there. Just NSGs. Double check VM OS firewalls.evilSnobu
If I am able to access individual machines externally ? Will it not automatically imply that VM firewalls are properly configured?user2730428

1 Answers

0
votes

The problem with my setup was in the probe. I had configured probe on HTTP whereas it should be on TCP.