An Azure network security service that is used to protect Azure Virtual Network resources.
@Rina Frusman I hope you are doing well today, Welcome to Microsoft Q&A
The key distinction is that not all Azure Firewall limits have the same enforcement behavior.
- 20,000 unique source/destination combinations in network rules is documented as a soft limit. Exceeding it can affect traffic processing and increase latency; it is not documented as an automatic configuration rejection. Microsoft recommends tracking the count through Firewall Policy Analytics > Insights and monitoring the Firewall Latency Probe metric.
2,000 rule collections is a documented Resource Manager limitation. Microsoft specifically states that creating more than 2,000 NAT, Application, or Network rule collections results in an error.
- Other limits, such as 2 MB Rule Collection Group size, 600 IP Groups, and 250 public IP addresses, are documented service limits, but Microsoft does not specify the exact portal/API failure behavior for every individual limit. Therefore, I would not assume that all of them fail in the same way.
For monitoring, Policy Analytics is the supported way to track the network-rule count. For runtime impact, establish a baseline for Firewall Latency Probe and investigate sustained increases, particularly as the policy approaches the documented rule limits.
One important point: the 20,000 limit is not simply the number of rules. Microsoft calculates unique source/destination combinations using sources, destinations, IP Groups, protocols, and destination ports. Consequently, a relatively small number of rules can consume a significant portion of the limit.
Microsoft references:
https://learn.microsoft.com/en-us/azure/firewall/firewall-best-practices
https://learn.microsoft.com/en-us/azure/firewall/firewall-known-issues
If this answer helped clarify the platform capabilities and save you troubleshooting time, please consider marking it as Accepted. This helps others in the community find similar solutions.