Home › Studies › AZ-700 › Network Security › Azure Firewall & Firewall Manager

Azure Firewall & Firewall Manager

SKUs · Premium features · deployment design · rules and processing order · SNAT, DNS, forced tunneling · Firewall Manager policies · secured virtual hub

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

Features and SKU choice

Azure Firewall is a cloud-native, fully stateful firewall as a service with built-in high availability. It inspects east-west and north-south traffic. It is available in three SKUs. By default it denies all traffic until you configure rules that allow it.

FeatureBasicStandardPremium
ThroughputUp to 250 Mbps; doesn't autoscale (fixed scale unit, two backend VMs)Autoscale up to 30 GbpsAutoscale up to 100 Gbps
Fat flow supportN/A1 Gbps10 Gbps
Application FQDN filtering (HTTP/S, SQL)YesYesYes
Network-level FQDN filtering (any port and protocol)NoYesYes
Threat intelligenceAlert onlyAlert and denyAlert and deny
DNS proxy and custom DNSNo (Azure DNS only)YesYes
Web categoriesNoYes, by FQDN onlyYes, by full URL
TLS inspection, IDPS, URL filteringNoNoYes
Forced tunnelingYesYesYes
Deploy without a public IP in forced tunnel modeNot listedYesYes
Policy typeBasic policyStandard policyPremium policy
CostLowestHigherHighest

Premium features

Design and deploy

Subnet, placement and zones

ItemRule
Firewall subnetThe subnet is named AzureFirewallSubnet and sized /26. A /26 is enough for all scaling. Subnet-level NSGs aren't required on it and are disabled to prevent interruptions.
Management subnetAzureFirewallManagementSubnet, minimum /26, used when the Management NIC is enabled. Its only allowed route is a default route to the Internet, with Propagate gateway routes disabled.
Resource group and subscriptionThe firewall and its virtual network must be in the same resource group. The public IP can be in a different resource group. All three must be in the same subscription.
NameUp to 50 characters.
TopologyUsually a central hub virtual network with spokes peered to it, one firewall per region. Global peering is supported but not recommended (performance and latency).
Availability zonesFor new deployments don't specify zones; Azure manages zone-redundant allocation in supported regions. In regions without zones the firewall is regional. No extra cost for multi-zone deployment.

Routing traffic through the firewall

  1. Put the firewall in AzureFirewallSubnet with a Standard SKU public IP (or a management NIC and no data-path public IP).
  2. Create a route table with a default route 0.0.0.0/0, next hop type Virtual appliance, next hop address the firewall's private IP.
  3. Associate the route table only with the workload subnet. Don't add a UDR for the AzureFirewallSubnet range, and don't associate this route table with the firewall's own subnet.
  4. Add allow rules; until you do, the firewall denies traffic.

Forced tunneling and the Management NIC

Public IPs, SNAT and DNS

Scale and timing

BehaviorValue
Scale outStarts at 60% of throughput or CPU, or 80% of connections; takes 5 to 7 minutes. Test for 10 to 15 minutes with new connections.
Scale inWhen throughput, CPU or connections drop below 20%.
StartTwo VMs; each VM allows 250k active connections.
Before autoscaleStandard up to 3 Gbps; Premium up to 18 Gbps.
TCP idle timeout4 minutes (not configurable; Azure Support can raise inbound and outbound to 15 minutes; east-west can't change).
Unplanned failureA new node replaces the failed one; connectivity typically returns within 10 seconds.
Provisioning state FailedAn update failed on one or more backend instances. The firewall still works; retry until it shows Succeeded.

Rules and processing order

Rules are terminating: processing stops at the first match. You can use classic rules or, preferably, a Firewall Policy. A policy organizes rules into rule collection groups, rule collections and rules.

Rule typeControlsNotes
DNATInbound traffic to firewall public IPs, translated to private IPsProcessed first. A match translates and allows the traffic. Use a specific Internet source, not wildcards.
NetworkLayer 3 and 4: IPs, ports, protocols; inbound, outbound, east-westProtocol TCP, UDP, ICMP or Any. A rule with an explicit destination port becomes TCP+UDP.
ApplicationLayer 7: FQDNs, URLs, HTTP, HTTPS, MSSQL; outbound and east-westNot applied to inbound connections. HTTP matches the Host header; HTTPS matches SNI only.

Order of evaluation

  1. Threat intelligence rules, if enabled, run first and can block before any configured rule.
  2. DNAT rules, then network rules, then application rules. This holds regardless of priority and inheritance.
  3. Parent policy rule collection groups before child policy groups.
  4. Rule collection groups in priority order; then rule collections in each group in priority order (100 is highest, 65,000 lowest).
  5. If no application rule matches, the built-in infrastructure rule collection is checked, then the packet is denied.

Processing order of the page's example policy

StepRule collectionTypeGroup (priority)
1DNATRC1DNATBaseRCG1 (200, parent)
2DNATRC3DNATBaseRCG1 (200, parent)
3ChDNATRC3DNATChildRCG2 (650, child)
4NetworkRC1NetworkBaseRCG1 (200, parent)
5NetworkRC2NetworkBaseRCG2 (300, parent)
6ChNetRC1NetworkChildRCG1 (300, child)
7ChNetRC2NetworkChildRCG2 (650, child)
8AppRC2ApplicationBaseRCG2 (300, parent)
9ChAppRC1ApplicationChildRCG1 (300, child)
10ChAppRC2ApplicationChildRCG2 (650, child)

The firewall makes three passes, one per rule type (DNAT, network, application). In each pass it goes through the groups in priority order, parent first, then the collections in each group.

Firewall Manager and policies

Azure Firewall Manager is a security management service for central security policy and route management. It works with two architectures: a hub virtual network (a standard virtual network you manage; only Azure Firewall Policy is supported) and a secured virtual hub (a Virtual WAN hub with security and routing policies).

PolicyClassic rules
ProtectsVirtual hubs (Virtual WAN) and virtual networksVirtual networks only
ManagementCentral, with Firewall ManagerStandalone firewall
Multiple firewallsOne policy resource across firewallsExport and import rules by hand
IncludesNAT, network and application rules, DNS settings, IP Groups, threat intelligence; Premium adds TLS inspection, URL filtering and IDPSNAT, network and application rules, DNS settings, IP Groups, threat intelligence
PriceBilled by firewall association: 0 or 1 association is free; several are billed at a fixed rateFree

Secured virtual hub (firewall in a Virtual WAN hub)

A secured virtual hub is an Azure Virtual WAN hub with Azure Firewall and security and routing policies set by Firewall Manager. It filters virtual network to virtual network, branch to branch, branch to virtual network and Internet traffic, and routing to the firewall is automatic, so you don't write UDRs.

Hub virtual networkSecured virtual hub
Underlying resourceVirtual networkVirtual WAN hub
Spoke connectionVirtual network peeringHub virtual network connection (automated)
Route traffic to the hubCustomer-managed UDRsSupported using BGP; no UDRs
Firewall public IPsCustomer providedAuto-generated, or customer provided (preview)
Partner security providerCustomer-established VPN to the partner serviceAutomated security partner provider flow
WAF on Application GatewaySupported in the virtual networkSupported in a spoke network
VPN gatewayUp to 10 Gbps, 30 S2S connectionsUp to 20 Gbps, 1000 S2S connections

Steps

  1. Create the virtual WAN and spoke virtual networks. In Firewall Manager under Virtual hubs, select Create new secured virtual hub; or convert an existing hub from the Virtual WAN pages (Azure Firewall and Firewall Manager under Security).
  2. Choose the firewall tier, the Availability Zones (select all available for a new hub) and the number of public IPs, and select a default deny policy. Leave the Trusted Security Partner disabled unless you need it. Creation can take up to 30 minutes.
  3. Connect each spoke with a virtual network connection under Connectivity in the Virtual WAN.
  4. Create a firewall policy and associate it with the hub.
  5. In the hub's security settings: Internet traffic = Azure Firewall; Private traffic = Send via Azure Firewall; Inter-hub = Enabled (routing intent).

CLI and PowerShell

TaskAzure CLIPowerShell
Create the firewall subnet (/26)az network vnet create --name Test-FW-VN --resource-group Test-FW-RG --location eastus --address-prefix 10.0.0.0/16 --subnet-name AzureFirewallSubnet --subnet-prefix 10.0.1.0/26New-AzVirtualNetworkSubnetConfig -Name AzureFirewallSubnet -AddressPrefix 10.0.1.0/26
Create a firewallaz network firewall create --name Test-FW01 --resource-group Test-FW-RG --location eastusNew-AzFirewall -Name Test-FW01 -ResourceGroupName Test-FW-RG -Location "East US" -VirtualNetwork $testVnet -PublicIpAddress $FWpip
Create the firewall public IPaz network public-ip create --name fw-pip --resource-group Test-FW-RG --location eastus --allocation-method static --sku standardNew-AzPublicIpAddress -Name "fw-pip" -ResourceGroupName Test-FW-RG -Location "East US" -AllocationMethod Static -Sku Standard
Attach the public IP to the firewallaz network firewall ip-config create --firewall-name Test-FW01 --name FW-config --public-ip-address fw-pip --resource-group Test-FW-RG --vnet-name Test-FW-VN-
Create a route table without BGP propagationaz network route-table create --name Firewall-rt-table --resource-group Test-FW-RG --location eastus --disable-bgp-route-propagation trueNew-AzRouteTable -Name Firewall-rt-table -ResourceGroupName Test-FW-RG -location "East US" -DisableBgpRoutePropagation
Add the default route to the firewallaz network route-table route create --resource-group Test-FW-RG --name DG-Route --route-table-name Firewall-rt-table --address-prefix 0.0.0.0/0 --next-hop-type VirtualAppliance --next-hop-ip-address $fwprivaddrAdd-AzRouteConfig -Name "DG-Route" -RouteTable $routeTableDG -AddressPrefix 0.0.0.0/0 -NextHopType "VirtualAppliance" -NextHopIpAddress $AzfwPrivateIP
Add an application ruleaz network firewall application-rule create --collection-name App-Coll01 --firewall-name Test-FW01 --name Allow-Microsoft --protocols Http=80 Https=443 --resource-group Test-FW-RG --target-fqdns www.microsoft.com --source-addresses 10.0.2.0/24 --priority 200 --action AllowNew-AzFirewallApplicationRule -Name Allow-Google -SourceAddress 10.0.2.0/24 -Protocol http, https -TargetFqdn www.google.com
Add a network ruleaz network firewall network-rule create --collection-name Net-Coll01 --destination-addresses <replace with DNS ip #1> <replace with DNS ip #2> --destination-ports 53 --firewall-name Test-FW01 --name Allow-DNS --protocols UDP --resource-group Test-FW-RG --priority 200 --source-addresses 10.0.2.0/24 --action AllowNew-AzFirewallNetworkRule -Name "Allow-DNS" -Protocol UDP -SourceAddress 10.0.2.0/24 -DestinationAddress 209.244.0.3,209.244.0.4 -DestinationPort 53
Set custom DNS serversaz network firewall update --name fwName --resource-group fwRG --dns-servers 10.1.0.4 10.1.0.5$azFw.DNSServer = $dnsServers; $azFw | Set-AzFirewall
Stop (deallocate) a firewall-$azfw.Deallocate(); Set-AzFirewall -AzureFirewall $azfw

Exam Tips

Tick each tip once you can answer it without looking.

“Need TLS inspection, IDPS or URL filtering for a payment workload” → Azure Firewall Premium (with a Premium policy). Trap: Standard has none of these; Basic has even fewer features.

“Small business, about 250 Mbps, lowest cost” → Azure Firewall Basic. Trap: Basic doesn't autoscale, is alert-only for threat intelligence and has no DNS proxy, network FQDN filtering or web categories.

“FQDNs in network rules (for example NTP or SSH to a name)” → Standard or Premium, with DNS proxy enabled and VMs using the firewall for DNS. Trap: Basic only has application FQDN filtering (HTTP/S and SQL).

“Which rule type is processed first, regardless of priority numbers” → DNAT, then network, then application (threat intelligence runs before all). Trap: A rule collection's priority doesn't move it ahead of another type; parent policy groups also come first.

“Firewall subnet name and size” → AzureFirewallSubnet, /26 (management subnet: AzureFirewallManagementSubnet, minimum /26). Trap: No subnet-level NSG is needed on AzureFirewallSubnet.

“Filter inbound HTTP/S traffic to a web app” → Web Application Firewall (Application Gateway WAF). Trap: The firewall applies no application rules to inbound connections; use DNAT and network rules for other inbound protocols.

“Send all Internet-bound traffic to an on-premises firewall” → Forced tunneling: create the firewall with the Management NIC enabled and route 0.0.0.0/0 from AzureFirewallSubnet. Trap: Firewalls with forced tunneling enabled can't support inbound access from the Internet because of asymmetric routing; the page notes that firewalls with a Management network interface still support DNAT.

“AzureFirewallSubnet learns a default route from on-premises by BGP” → Add a 0.0.0.0/0 UDR with next hop type Internet. Trap: The firewall must have direct Internet connectivity.

“Route workload traffic through the firewall” → UDR 0.0.0.0/0, next hop Virtual appliance = firewall private IP, on the workload subnet only. Trap: Don't associate this route table with AzureFirewallSubnet; no UDR for that range is needed.

“SNAT port exhaustion” → Add public IPs (2,496 ports each) for lower cost, or add a NAT Gateway for more scale. Trap: A NAT Gateway isn't supported in a secured virtual hub.

“No SNAT to private destinations” → Destinations in RFC 1918 and RFC 6598 ranges are not SNATed (network rules). Trap: Application rule traffic is always SNATed.

“Policy or classic rules for a firewall in a Virtual WAN hub” → Firewall Policy. Trap: Classic rules protect virtual networks only.

“Child policy and threat intelligence mode” → Can only be stricter than the parent (alert only to alert and deny). Trap: The child can't disable it. NAT rules aren't inherited either.

“Secure Internet and private traffic in a Virtual WAN hub without UDRs” → Secured virtual hub: Firewall Manager, Internet traffic = Azure Firewall, Private traffic = Send via Azure Firewall. Trap: Inter-hub and branch-to-branch filtering needs routing intent (Inter-hub = Enabled).

“Convert an existing hub to a secured hub and pick availability zones” → Use the PowerShell upgrade procedure. Trap: The Firewall Manager and Virtual WAN portal conversions don't let you configure zones.

“Network rules by FQDN give inconsistent results” → Enable DNS proxy and set client VMs to use the firewall as their DNS server. Trap: Without it, clients can resolve at different times or get different answers than the firewall.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Network Security GroupsWeb Application Firewall →