Wednesday, April 13, 2016

Azure Load balancer mapping different port in load balancing rule not working




I have created Azure load balancer with 2 linux VMs in backend pool. I have configured common NSG for both the VMS allowing port 80 and 8080. I have hosted my website in both the VMS at port 8080. In load balancing rules i have added a rule with which if i try to load load balancer Ip at port 80, it should forward the request to port 8080 of VM.
Load balancing rule



When i created last week while learning about Load balancer it was working fine.
Now that i created everything freshly, its not working. I tried to deploy using ARM template of the working resource, still no luck. Am i missing something here?



Thanks in Advance


Answer



Your health probe appears to be set to port 80, if your backend apps are being served on port 8080, then your probe needs to be set to use that.




In this setup, the probe will be trying to talk to your VMs on port 80 and not getting a response, so it will report both machines as unhealthy, and no traffic will be sent.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...