Last reviewed: May 2026
Azure VNet subnet planning involves more than basic CIDR math. Azure reserves 5 IP addresses in every subnet and requires dedicated, correctly sized subnets for managed services. Use the interactive planner below to generate a layout and export Bicep code.
Managed service subnets (fixed names required by Azure):
Workload subnets:
| Subnet Name | CIDR | Type | Azure Usable IPs | Notes |
|---|
Azure enforces minimum subnet sizes for its managed services. Deploying into an undersized subnet will fail at provisioning time.
| Subnet Name | Minimum Size | Total IPs | Usable After Reservation | Notes |
|---|---|---|---|---|
| GatewaySubnet | /27 | 32 | 27 | VPN & ExpressRoute gateways. /28 is deprecated. |
| AzureFirewallSubnet | /26 | 64 | 59 | Name must be exactly "AzureFirewallSubnet" |
| AzureFirewallManagementSubnet | /26 | 64 | 59 | Required when forced tunneling is enabled |
| AzureBastionSubnet | /26 | 64 | 59 | Name must be exactly "AzureBastionSubnet" |
| ApplicationGatewaySubnet | /26 | 64 | 59 | /24 recommended for autoscaling v2 SKU |
| RouteServerSubnet | /27 | 32 | 27 | Name must be exactly "RouteServerSubnet" |