Azure Firewall Deployment: Get the Subnet and Routing Design Right

A practical guide to subnet isolation, workload routing, NSGs, and the forced-tunneling exception.

Published · Updated

3 sources
Save

Deploy Azure Firewall in a dedicated subnet named AzureFirewallSubnet, with a minimum size of /26, and keep other resources out. Associate workload route tables with workload subnets, not the firewall subnet, unless a documented forced-tunneling design requires otherwise. This separation is the foundation of Microsoft’s recommended subnet strategy. [2]

In this article
  1. The three decisions that matter first
  2. 1. Give Azure Firewall its own subnet
  3. 2. Route workload traffic through the firewall
  4. 3. Keep subnet responsibilities distinct
  5. 4. Do not apply workload NSG assumptions to the firewall subnet
  6. 5. Choose the topology and resolve forced tunneling before deployment

The three decisions that matter first

  1. Reserve the firewall subnet: use the required name AzureFirewallSubnet, allocate at least a /26, and do not deploy other resources in it. [2]
  2. Route from the workloads: traffic is subjected to firewall rules when it is routed through the firewall. Keep the workload route table associated with the workload subnet. [3], [2]
  3. Identify forced tunneling early: when internet-bound traffic must pass through on-premises security appliances or centralized inspection paths, Microsoft recommends enabling a management interface and AzureFirewallManagementSubnet to separate management traffic. [2]

1. Give Azure Firewall its own subnet

The essential requirement is not simply to find an available subnet. Microsoft specifies a dedicated subnet named AzureFirewallSubnet, with a minimum size of /26, and explicitly says not to deploy other resources there. Treat the name, address allocation, and exclusive use as a single deployment requirement. A subnet intended for application servers is therefore not a substitute for the firewall subnet; the portal tutorial places the firewall and workload server in separate subnets. [2], [3]

For planning purposes, reserve the required firewall address space before allocating the rest of the network to workloads. The practical distinction is between where the firewall runs and where protected applications run. Maintaining that separation also makes the routing design easier to review: workload routing belongs with the workloads, rather than being applied indiscriminately to the subnet hosting the security service. [2], [3]

2. Route workload traffic through the firewall

Creating the firewall and its subnet is only part of the configuration. Microsoft’s tutorial explains that traffic encounters the configured firewall rules when it is routed to the firewall as the subnet’s default gateway. Its simplified example uses AzureFirewallSubnet for the firewall and Workload-SN for the server, then configures the workload subnet’s outbound default route through the firewall. The important mechanism is the traffic path: deployment alone is not the routing step. [3]

The route-table association is especially important. In the portal tutorial, Microsoft instructs you to associate the route table only with Workload-SN and warns that selecting other subnets prevents the firewall from working correctly. The broader security guidance makes the same distinction: keep workload route tables on workload subnets, with firewall-subnet routes reserved for documented forced-tunneling designs. Do not interpret “send workloads through the firewall” as “attach the workload route table to the firewall subnet.” [3], [2]

Once the path is established, rules determine the permitted connectivity. The tutorial describes application rules for accessible fully qualified domain names and network rules specifying source address, protocol, destination port, and destination address. Routing and policy therefore have different jobs: routing brings the traffic to the firewall, while the configured rules govern that traffic. Microsoft notes that the tutorial uses classic rules but identifies Firewall Policy as the preferred management method. [3]

3. Keep subnet responsibilities distinct

Use the following division of responsibilities when reviewing a deployment. It separates the required firewall subnet, ordinary workload routing, and the additional management path used for forced tunneling. These are not interchangeable locations for the same configuration. [2], [3]

Network locationPurposeConfiguration guidance
AzureFirewallSubnetHosts Azure FirewallMinimum /26; no other resources; keep workload route tables elsewhere except for documented forced-tunneling requirements. [2]
Workload subnetHosts workload serversAssociate the workload route table here and direct outbound traffic through the firewall. [3]
AzureFirewallManagementSubnetSeparates firewall management traffic from customer trafficEnable alongside the management network interface for the documented forced-tunneling design. [2]

4. Do not apply workload NSG assumptions to the firewall subnet

Subnet-level Network Security Groups are not required on AzureFirewallSubnet. Microsoft says they are disabled there to prevent service interruptions. The managed service instead includes multiple protection layers, including platform protection through NIC-level NSGs that are not viewable. Consequently, adding a subnet-level NSG to the firewall subnet is not an extra deployment-hardening step to include in your checklist. [1]

That restriction does not mean NSGs and Azure Firewall are competing alternatives throughout the network. Microsoft describes NSGs as distributed network-layer filtering within virtual networks, while Azure Firewall provides centralized, stateful network- and application-level protection across subscriptions and virtual networks. They complement one another. Keep the firewall-subnet restriction separate from decisions about distributed filtering for workloads. [1]

5. Choose the topology and resolve forced tunneling before deployment

Microsoft’s portal tutorial deliberately uses a simplified single virtual network with two subnets. For production, it recommends a hub-and-spoke model, with the firewall in its own virtual network and workload servers in peered virtual networks. The general FAQ also says Azure Firewall can be deployed on any virtual network. Distinguish the requirement from the recommendation: the dedicated firewall subnet is required, while hub-and-spoke is the recommended production architecture described by the tutorial. [3], [1], [2]

Forced tunneling is a specific routing design, not permission to reuse ordinary workload routes on the firewall subnet. Microsoft recommends it when internet-bound traffic must traverse on-premises appliances or centralized inspection paths, with a management interface and AzureFirewallManagementSubnet separating management traffic from customer traffic. The FAQ says this is supported for new firewalls and for existing firewalls by adding a management NIC. Before deployment, confirm whether that requirement applies, then follow the corresponding documented routing design rather than adapting the basic tutorial indiscriminately. [2], [1]

Frequently asked questions

Can application servers share AzureFirewallSubnet?

No. Microsoft’s guidance says not to deploy other resources in the dedicated firewall subnet. Place servers in a separate workload subnet, as the portal tutorial does with Workload-SN, and configure the workload’s routing through the firewall. [2], [3]

Does deploying Azure Firewall automatically inspect workload traffic?

Do not assume that deployment establishes the traffic path. Microsoft explains that traffic is subjected to the configured rules when routed to the firewall as the subnet default gateway. Check the workload route-table association as well as the firewall rules; they serve different purposes. [3]

Is forced tunneling limited to newly created firewalls?

No. Microsoft’s FAQ says forced tunneling is supported when creating a new firewall and for existing firewalls by adding a management NIC. Its security guidance calls for the management interface and AzureFirewallManagementSubnet to keep management traffic separate from customer traffic. [1], [2]

Conclusion

The reliable starting point is a dedicated AzureFirewallSubnet of at least /26, with workloads kept elsewhere. Then establish the inspection path by associating workload route tables with workload subnets and routing their traffic through the firewall. Keep subnet-level NSGs off the firewall subnet, and treat forced tunneling as a separate design with its own management path. Reviewing these boundaries before deployment helps keep subnet placement, routing, and security policy from being confused with one another. [2], [3], [1]

Source notes

The cited guidance does not establish the management subnet’s minimum size or a complete forced-tunneling route configuration. Confirm those details in the documentation for the intended design before implementing it.

Explore next

Sources

Open a source or expand its cited passages.

Relevance scores are model estimates of how well each source addresses this question, not probabilities or fact-check ratings. Reasoned guidance is identified on hover.

  1. 100Secure your Azure Firewall deployment | Microsoft Learnlearn.microsoft.comOfficial security guidance directly establishes the subnet name, minimum size, exclusivity, route-table placement, and management separation.›
  2. 96Deploy & configure Azure Firewall using the Azure portal | Microsoft Learnlearn.microsoft.comOfficial deployment tutorial provides the concrete workload-routing example and production topology recommendation, while identifying its use of classic rules.›
  3. 94Azure Firewall FAQ | Microsoft Learnlearn.microsoft.comOfficial FAQ directly supports firewall-subnet NSG behavior, deployment flexibility, and forced-tunneling support; the routing excerpt is incomplete.›
Discuss this answer