Cloud service · Azure · Updated

Azure Firewall - Azure Firewall is a managed, stateful network firewall that centrally filters and logs traffic for Azure virtual networks and connected environments.

In short

Azure Firewall controls inbound, outbound, and east-west connectivity using network rules, application rules, and network address translation. Basic, Standard, and Premium SKUs provide different levels of DNS integration, threat protection, inspection, and performance, with deployment options in virtual networks and secured Azure Virtual WAN hubs.

Cloud Services Hub →

10 key features of Azure Firewall

01
Stateful network filtering

Allow or deny connections using source and destination addresses, ports, and protocols. Use narrowly scoped rules for workload dependencies, and route the relevant traffic through the firewall to enforce them.

02
Domain and application filtering

Application rules restrict supported web and Azure SQL traffic using FQDNs, including wildcard patterns. Standard and Premium additionally support DNS-based FQDN filtering in network rules, including wildcard domains, for TCP and UDP workloads.

03
DNS proxy and custom DNS

Standard and Premium can forward client DNS queries to configured resolvers. Configure clients to use the firewall DNS proxy when using network-rule FQDN filtering to reduce mismatches between client and firewall DNS resolution.

04
Source and destination NAT

Use SNAT for controlled outbound public IP addresses and DNAT to expose selected private services. Size public IP capacity for outbound connection demand and validate whether private traffic preserves its original source address.

05
Threat-intelligence enforcement

Detect connections involving known malicious IP addresses and domains. Basic supports alerts only, while Standard and Premium support both alerting and blocking.

06
Premium TLS and URL inspection

Premium can decrypt, inspect, and re-encrypt supported outbound and east-west TLS connections. Configure certificate trust before enabling inspection, and use it when enforcing HTTPS URL paths or inspecting encrypted payloads.

07
Premium intrusion detection and prevention

Premium provides signature-based IDPS with alert and deny options and signature-level overrides. Start with monitoring and representative traffic tests, then tune exceptions before enabling blocking for sensitive applications.

08
Managed availability and scaling

High availability is built in without customer-managed load balancers. Standard and Premium scale within their SKU limits, and zone redundancy is available in supported regions; benchmark inspected traffic rather than relying on headline throughput.

09
Central policy management and diagnostics

Reuse Firewall Policy across deployments, apply policy inheritance, and coordinate governance through Azure Firewall Manager. Use Draft & Deploy for staged policy changes and Azure Monitor diagnostics to verify rule behavior after deployment.

10
Explicit proxy and request-header controls

Configure supported applications and browsers to send HTTP and HTTPS requests directly to the firewall through explicit proxy settings. Application-rule HTTP header insertion can add or overwrite request headers for supported scenarios such as Microsoft Entra tenant restrictions.

Where Azure Firewall is used

  1. 01
    Centralized workload egress

    Route spoke-network internet traffic through a regional hub firewall and allow only required destinations. Use application rules for package repositories and APIs, and provide stable public source addresses for partner allowlists.

  2. 02
    Inspected segmentation between networks

    Route traffic between application tiers, spoke networks, or environments through the firewall to enforce explicit connectivity rules. Verify that more-specific routes do not bypass inspection and that return traffic follows a compatible path.

  3. 03
    Hybrid network security

    Inspect selected traffic between Azure and on-premises networks connected through VPN or ExpressRoute. Coordinate route propagation, private address ranges, and SNAT settings so security enforcement does not break source-address visibility or return routing.

  4. 04
    Advanced outbound threat protection

    Use Premium TLS inspection and IDPS to inspect supported encrypted outbound traffic and block detected attacks. Establish certificate distribution, inspection exclusions, and a false-positive response process before enabling deny mode.

  5. 05
    Controlled inbound service publishing

    Create DNAT rules that forward selected firewall public IP addresses and ports to private workloads. Restrict permitted sources and use Application Gateway with WAF when an HTTP application also needs reverse-proxy TLS termination and web-specific attack protection.

  6. 06
    Shared policy across subscriptions and regions

    Apply common baseline policies to multiple regional firewalls while allowing approved local exceptions through policy inheritance. Keep inspection regional where possible to avoid unnecessary cross-region latency and data-transfer costs.

How Azure Firewall is priced

Provisioned deployment charge

Azure Firewall uses a deployment-time charge, generally billed per firewall-hour, with different rates for Basic, Standard, and Premium. Budget for provisioned time even when the firewall is processing little or no traffic; rates vary by region and purchasing agreement.

Data processing charge

A per-GB processing charge applies to traffic handled by the firewall according to the selected SKU and current pricing terms. Estimate the actual inspected traffic volume, including internal and hybrid flows, rather than using internet egress volume alone.

Optional policy analytics

Policy Analytics can introduce additional charges when enabled. Evaluate its current pricing and the associated diagnostic-log ingestion and retention costs before enabling it broadly.

Supporting service and network charges

Public IP addresses, virtual network peering, Virtual WAN, bandwidth, Key Vault, and monitoring destinations can add separate charges. Compare a shared hub design with distributed deployments using both firewall costs and the network-transfer costs created by traffic routing.

Services Azure Firewall works with

The usual integration pattern is a regional hub-and-spoke network. Azure Virtual Network route tables steer selected workload traffic to Azure Firewall, while Firewall Manager and Firewall Policy provide shared governance. A secured Azure Virtual WAN hub offers an alternative for environments connecting many branches and virtual networks. In either model, verify effective routing and return paths; deploying a firewall does not automatically place it in every traffic path.

Operational integrations connect diagnostic settings to Azure Monitor Logs and, where required, Microsoft Sentinel. Engineers use rule-match and denial records to troubleshoot connectivity, while security teams correlate threat detections with identity and endpoint events. Select log categories, retention, and alert thresholds deliberately because central inspection can generate substantial telemetry.

Premium TLS inspection introduces a certificate-management dependency on Azure Key Vault and a trust-distribution dependency on clients. For inbound web applications, Application Gateway WAF supplies reverse-proxy and web-specific protection that complements the firewall's network controls. Test these combined architectures with real application flows, including DNS resolution, health probes, certificate validation, and source-address handling, before enforcing broad deny policies.

Azure Virtual Network

Deploy the firewall in a dedicated subnet and use route tables to steer traffic from connected workloads. For example, associate a route table containing a default route to the firewall's private IP with an application subnet. Add explicit routing for inspected spoke-to-spoke paths where more-specific routes would otherwise bypass the firewall.

Azure Virtual WAN

Deploy Azure Firewall in a secured virtual hub to inspect traffic between supported branch, virtual network, and internet paths. For example, use routing intent to direct private and internet traffic through the hub firewall. Validate hub routing and cross-region behavior before assuming every connected path is inspected.

Azure Firewall Manager

Use Firewall Manager to govern firewall deployments and policies across virtual networks and secured virtual hubs. For example, maintain a parent policy containing organization-wide restrictions and attach child policies for application-specific rules. Account for policy inheritance when troubleshooting why a local exception does not take effect.

Azure Monitor

Send firewall diagnostics to a Log Analytics workspace and use Azure Monitor metrics, queries, workbooks, and alerts for operations. For example, alert on elevated SNAT port utilization and correlate denied application-rule traffic with a failed deployment. Configure diagnostic categories and retention deliberately to control ingestion costs.

Microsoft Sentinel

Ingest firewall logs into a Sentinel-enabled Log Analytics workspace for security investigation and correlation. For example, correlate threat-intelligence or IDPS detections with suspicious sign-ins and endpoint alerts. Configure the required connector, diagnostic settings, and analytics rules rather than assuming logs automatically generate incidents.

Azure Key Vault

Store the certificate material required by Premium TLS inspection in Key Vault and grant the configured managed identity the required access. For example, make an approved intermediate CA certificate available to the firewall policy while distributing the corresponding trust chain to clients. Plan certificate renewal, vault connectivity, and access-control changes as part of firewall operations.

Azure Application Gateway

Combine Application Gateway WAF with Azure Firewall when inbound web applications need both application-layer reverse-proxy protection and broader network controls. For example, terminate public HTTPS at Application Gateway and route the backend connection through Azure Firewall for additional inspection. Validate route symmetry, health probes, and certificate handling for the selected topology.

API Management

Azure Firewall can inspect selected gateway traffic from a virtual network–injected API Management instance. For example, routes can send API requests from the gateway to private backends through the firewall while keeping API Management's required platform traffic on its supported routes.

App Service

Azure Firewall can inspect outbound traffic from App Service when regional virtual network integration and outbound routing send that traffic through a subnet with a route to the firewall. App Service Environment deployments can also use the firewall's AppServiceEnvironment FQDN tag to allow required platform endpoints.

Azure Advisor

Azure Firewall deployments can receive targeted reliability recommendations in Azure Advisor. For example, Advisor can flag a firewall for which a zone-redundant deployment would improve resilience.

Alternatives to Azure Firewall in other clouds

AWS

AWS Network FirewallAWS Network Firewall

AWS Network Firewall and Azure Firewall are managed, stateful firewalls that centrally inspect and filter traffic for cloud and connected networks. AWS Network Firewall preserves source and destination addresses and bills TLS inspection separately by the hour, while Azure Firewall supports source and destination NAT and provides TLS inspection in its Premium tier.

Compare fact by fact
Azure FirewallAWS Network Firewall
Network address translationSource and destination NATNo NAT; preserves both addresses
Hourly deployment billingGenerally per firewall, by SKUPer deployed firewall endpoint
Centralized hub deploymentFirewall in a secured Virtual WAN hubDirect Transit Gateway attachment

What is Azure Firewall

3 min read

Azure Firewall provides centralized network security enforcement for Azure workloads and connected networks. It is a stateful service, so return traffic for an allowed connection does not require a separate reverse-direction rule. Microsoft operates the underlying firewall infrastructure and provides built-in high availability. Engineers remain responsible for routing traffic through the firewall, defining policies, configuring name resolution, and monitoring enforcement results.

A common deployment places a firewall in a regional hub virtual network with application networks connected as spokes. User-defined routes direct selected traffic to the firewall's private IP address. In a virtual network deployment, reserve a dedicated subnet named AzureFirewallSubnet with an address range of at least /26. Check additional subnet requirements for Basic and forced-tunneling configurations. Virtual network peering alone does not send traffic through the firewall; validate effective routes and return paths, particularly when VPN, ExpressRoute, or other network appliances are involved.

Firewall Policy organizes NAT, network, and application rules into rule collections and rule collection groups. Unmatched traffic is denied. Rule processing evaluates DNAT rules before network rules, and network rules before application rules, rather than treating every rule as one globally ordered list. Avoid broad network allow rules for web traffic that should receive application-level inspection, because a matching network rule can bypass the intended application rule.

Choose the SKU according to inspection requirements rather than throughput alone. Basic supports essential network and application filtering, NAT, and threat-intelligence alerts, with throughput limited to 250 Mbps. It does not provide DNS proxy, network-rule FQDN filtering, or threat-intelligence blocking. Standard adds those capabilities, custom DNS, and FQDN-based web categories. Premium adds signature-based intrusion detection and prevention, TLS inspection, full-URL filtering, and more granular web categorization. Actual throughput depends on traffic characteristics and enabled inspection features.

Application rules can restrict supported traffic to approved fully qualified domain names. Standard and Premium also support DNS-resolved destinations in network rules, including wildcard domain patterns. For network-rule FQDN filtering, use DNS proxy and a consistent DNS resolution path so clients and the firewall resolve destinations consistently. Explicit proxy provides an alternative for supported HTTP and HTTPS clients: applications send requests directly to the firewall using proxy settings instead of relying solely on route-based traffic steering. Application rules also support HTTP header insertion for scenarios such as tenant restrictions.

Premium TLS inspection requires a customer-managed certificate authority configuration, access to the inspection certificate in Azure Key Vault, and client trust in that authority. Plan exceptions for certificate-pinned applications and traffic that must not be decrypted. Premium inspects supported outbound and east-west TLS traffic; it is not an inbound TLS reverse proxy or a replacement for a web application firewall.

Use outbound SNAT to present controlled public source addresses to external services, and DNAT to publish selected private endpoints through firewall public IP addresses. Private-destination SNAT behavior depends on configured address ranges and rule type, so verify source-address preservation instead of assuming every flow is translated. Auto-learn SNAT routes can maintain learned destination prefixes as no-SNAT ranges. Monitor SNAT port utilization when many workloads connect to the same destinations.

Enable diagnostic settings and send structured logs to Azure Monitor Logs, storage, or Event Hubs. Review denied connections, rule matches, threat detections, health, throughput, and SNAT utilization. Manage policy changes through infrastructure as code and controlled deployment workflows; Draft & Deploy supports preparing multiple changes before applying them together. IPv6, Azure Firewall for Containers, and the Premium AI Security add-on have preview capabilities with separate requirements, so evaluate their documented limitations before including them in production dependencies.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.