@Hari Guvvala ,
Please review my previous comment.
#1
Your ask is not supported.
From FAQ, Can I access the frontend of my internal load balancer from the participating backend pool VM?
- No, Azure Load Balancer doesn't support this scenario.
Internal load balancers don't translate outbound originated connections to the front end of an internal load balancer because both are in private IP address space.
Public load balancers provide outbound connections from private IP addresses inside the virtual network to public IP addresses. For internal load balancers, this approach avoids potential SNAT port exhaustion inside a unique internal IP address space, where translation isn't required.
A side effect is that if an outbound flow from a VM in the backend pool attempts a flow to front end of the internal load balancer in its pool and is mapped back to itself, the two legs of the flow don't match. Because they don't match, the flow fails. The flow succeeds if the flow didn't map back to the same VM in the backend pool that created the flow to the front end.
The bold part from above explains why the issue is intermittent.
#2
Also, I am afraid your understanding of how NAT Gateway works is incorrect.
- NAT Gateway can only provide outbound connectivity to Public IP workloads.
- It cannot provide connectivity to Private IP Address (which is your case)
- So NAT Gateway is not the solution here
This means,
- NAT Gateway can provide your VMs with internet access
- But NAT Gateway cannot help you connect to any private IP for that matter (not only Load Balancer Frontend)
#3
If you require that the backend pool connect to it's Load Balancer's front end,
I hope this makes things clear.
Thanks,
Kapil
Please Accept an answer if correct.
Original posters help the community find answers faster by identifying the correct answer.