Subnet Size Considerations for Azure Application Gateway v2 SKU

InfraSolutions 646 Reputation points
2025-04-29T18:36:55.6166667+00:00

In the documentation for Application Gateway V2, it mentions that a /24 subnet is recommended for sufficient autoscaling and maintenance upgrades, allowing support for up to 125 instances. However, the current infrastructure only requires around 12 instances.

Is a /24 subnet still necessary in this scenario, or can smaller subnets such as /26 or /27 be utilized? If smaller subnets can be used, what is the maximum number of instances and connections they can support?

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,175 questions
0 comments No comments
{count} votes

Accepted answer
  1. Rohith Vinnakota 4,010 Reputation points Microsoft External Staff
    2025-04-29T19:45:49.2933333+00:00

    Hi @InfraSolutions,

    I understand that you’re trying to figure out if you can get away with using a smaller subnet for your Azure Application Gateway v2 setup instead of the recommended /24.

    Based on the documentation, while a /24 subnet is recommended for supporting up to 125 instances (including reserved addresses), it’s not strictly necessary if your infrastructure needs are smaller. You could indeed use smaller subnets like /26 or /27, but keep the following in mind:

    • /26 subnet: Provides up to 62 usable IP addresses, after accounting for Azure’s five reserved addresses. This subnet can support up to 32 Application Gateway instances, plus one for a private frontend IP if needed.
    • /27 subnet: Provides 30 usable IPs (62 total - 5 reserved = 57 available), which cannot fully support even the maximum number of instances for a v2 SKU but might work for smaller configurations with fewer instances.

    To directly answer your question about the max instances and connections they can handle, your main constraints will be:

    • The number of IP addresses left after accounting for reserved IPs.
    • The actual instances you plan to run.

    With that said, if you're only planning for around 12 instances, a /26 subnet should suffice. Just be careful to account for other configurations like private front end IPs and avoid scaling too close to your limits.

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


    Please do not forget to "Accept the answer” and “Yes” wherever the information provided helps you, this can be beneficial to other community members.


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.