Is it possible to add more than 300 rules for load balancer?

vsi_pranav 161 Reputation points
2021-05-11T06:52:25.317+00:00

Hello,
I have Standard Public Load Balancer in place and VM Scale Set placed behind the load balancer. I am running the WebRTC application on VMSS which usually requires UDP port range (For eg Port 10000 to 110000) open for communication. I opened the ports in the VMSS Network Security Group. Now in order to get this application to work, is seems that I need to configure the load balancing rules for each and every port but the load balancer is not allowing me to have more than 300 rules per NIC. I already have 8 rules in place so starting from the port range 10000 for both front end and back end, I was able to add rules for port up to 10292. But After that I am getting following error. ErrorCode: LoadBalancerRuleCountLimitReachedForNic

As all VMs in VMSS share the same NIC, I am not able to add more than 300 rules, but I need to have more rules for it to work. I am literally stuck at this issue and have no clue how to proceed forward. Kindly please suggest some work around or solution for this.

Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
506 questions
0 comments No comments
{count} votes

Accepted answer
  1. GitaraniSharma-MSFT 50,096 Reputation points Microsoft Employee Moderator
    2021-05-11T11:53:53.373+00:00

    Hello @vsi_pranav ,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    The limit of rules per NIC (across all IPs on a NIC) for a load balancer is 300 and it is a hard coded limitation that cannot be increased.
    Please refer : https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#load-balancer

    The only workaround is to add another pool for a new VMSS, and create rules for the new pool.

    Kindly let us know if the above helps or you need further assistance on this issue.

    ----------------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.