Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Load balancing ACIs inside a Vnet

I have Azure Container Instances inside a vnet and I want to implement load balancing but cannot think of a workable solution. For context, it will be a set of VMs contacting the load balancing resource which would direct the request to one of the ACIs.

Things I have tried thus far are Azure Load Balancer (does not work with ACI) and Azure Traffic Manager (cannot be inside a vnet). I don't think an application gateway is a feasible solution either. I want to know if anyone has faced this scenario before and how did they overcome it or if someone has a potential solution that I can test out?

like image 463
omaticat Avatar asked Oct 20 '25 22:10

omaticat


1 Answers

Well, to access the ACI inside a VNet through a Load Balancer, you just need to create a Load Balancer and add the backend pool with the IP address of the ACI, here is a screenshot for it:

enter image description here

Then create a health probe and load balancer rule for the port you need. When all things are OK, you can access the ACI inside the VNet through the Public IP address:

Result:

enter image description here

ACI:

enter image description here

Load Balancer:

enter image description here

like image 72
Charles Xu Avatar answered Oct 23 '25 18:10

Charles Xu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!