Join our Newsletter — 33% off our NHI Course
Home› Guides› Azure Firewall Security Guide: Policy, TLS Inspection, Threat…
Guide Cloud Security

Azure Firewall Security Guide: Policy, TLS Inspection, Threat Intel and Egress

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 18 November 2026 14 min read
On this page

Azure Firewall is where most Azure estates decide which workloads may talk to the internet and to each other, so its policy hierarchy, its TLS inspection identity and its threat intelligence mode deserve the same review as any privileged access system. This guide explains how Firewall Policy is processed, how parent and child policies split control between a central team and application teams, how TLS inspection depends on a managed identity and a CA key in Key Vault, how to set threat intelligence and IDPS modes, and how forced tunnelling changes your routing and logging.

It is written for security and platform engineers who own a hub network or a Virtual WAN secured hub and want a defensible baseline. Network design questions that are not firewall-specific, such as subnet layout and network security groups, sit in the Azure Virtual Network Security Guide.

This is an independent guide from NHI Mgmt Group, based on Microsoft's public documentation as of November 2026. It is not sponsored or reviewed by Microsoft. Product features change, so confirm settings against Microsoft's current documentation.

Key takeaways

  • Firewall Policy is processed as rule collection groups, then rule collections, then rules, by priority. Anything not explicitly allowed is denied.
  • Parent policies let a central team set rules that child policies inherit and cannot push below. Inherited network and application rule collections are always prioritised over the child's own.
  • Threat intelligence filtering defaults to Alert only. Set it to Alert and deny at the parent so no child can weaken it.
  • TLS inspection makes the firewall a certificate authority for your network. A user-assigned managed identity reads the intermediate CA from Key Vault, so that identity and that vault are now tier zero assets.
  • Egress allow lists are the most effective control against stolen machine credentials being used from inside your network, because they limit where a compromised workload can send tokens and data.
  • Forced tunnelling needs the management network interface and changes SNAT behaviour, which affects how far upstream logs can attribute traffic.
  • The firewall is only as useful as its logs. Send them to a Log Analytics workspace with resource-specific tables and build detections on threat intel, IDPS and denied egress events.

How Firewall Policy is processed

Azure Firewall Policy organises rules in three layers. Rule collection groups are processed first, in priority order. Inside each group, rule collections are processed in priority order, and each collection carries a single allow or deny action that applies to all its rules. Rules inside a collection are processed top-down with no priority value. If nothing allows the traffic, it is denied by default.

There are three rule types, and a rule must sit in a collection of the same type:

Rule typeWhat it matchesTraffic it applies to
DNATInbound traffic to the firewall's public IPs, translated to a private addressInbound
NetworkIP address, port and protocol (layer 3 and 4)Inbound, outbound and east-west
ApplicationFQDN, URL and HTTP or HTTPS (layer 7)Outbound and east-west

Every policy has default rule collection groups for DNAT at priority 100, network at 200 and application at 300. You cannot delete them or change their priorities. If you want a different processing order, create custom groups with the priorities you need and put rules only in those. A built-in infrastructure rule collection allows certain platform traffic for application rules before the default deny, so do not be surprised to see allowed Azure platform FQDNs you did not write.

Two design consequences follow. First, a broad network rule allowing a port to any destination is evaluated before application rules in the same processing pass and can make your FQDN filtering irrelevant. Keep network rules narrow and push outbound web traffic through application rules. Second, give rule collection groups a priority scheme with gaps (for example 1000, 2000, 3000) so a team can insert a group later without renumbering everything.

Parent and child policies: splitting control safely

Firewall Manager supports hierarchical policies. A child policy inherits from a parent, which lets application or DevOps teams define local rules on top of organisation-mandated base rules. Changes to the parent apply automatically to children. Parent and child must be in the same region, although a policy can be associated with firewalls in any region.

The inheritance rules are what make this a security control rather than a convenience:

  • All rule collections from the parent are inherited, except NAT rule collections, which are specific to individual firewalls and must be defined in the child.
  • Inherited network rule collections are always prioritised over network rule collections the child defines. The same applies to application rule collections.
  • Threat intelligence mode is inherited, and a child can only override it with a stricter mode. A child cannot disable it or make it less strict. The threat intelligence allow list is inherited, and the child can append to it.

Use the parent for rules no team should be able to undermine: explicit denies of known bad destinations, the threat intelligence mode, shared infrastructure allows such as DNS and time, and deny rules for administrative protocols from the internet. Use children for application-specific allows. Grant write access to the parent policy to a small central group, and write access to each child to the owning team, using Azure role assignments scoped to the policy resource. The Azure RBAC and Service Principals Guide covers how to keep those assignments narrow.

Watch the threat intelligence allow list in particular. Because children can append to it, an application team can exempt an address from threat intelligence filtering for every firewall that uses its policy. Review allow list additions like any other exception.

Who can change the firewall: admin and pipeline identities

A firewall policy is a resource like any other, so whoever holds write access to it holds the network perimeter. In practice that is rarely a person. It is a pipeline service principal or managed identity that deploys policy from infrastructure as code. That identity is a high-value target: if an attacker can push a rule collection group with an allow-all at a low priority number, every other control is bypassed.

Recommended practice from NHI Mgmt Group:

  • Deploy policy only through a pipeline, with branch protection and a required reviewer for changes to the parent policy.
  • Give the pipeline a dedicated identity that uses a federated credential rather than a client secret, and scope its role assignment to the policy resources, not the subscription.
  • Separate the identity that deploys parent policy from the identities that deploy child policies.
  • Alert on any policy write performed by an identity other than the known pipelines, using the Activity Log. The Azure Monitor, Activity Log and Diagnostic Settings Guide covers routing those control-plane events.
  • Protect the firewall, its policies and its public IPs with resource locks and Azure Policy so that deleting or detaching them needs a deliberate step.

TLS inspection and its managed identity

Azure Firewall Premium can decrypt and inspect outbound and east-west TLS traffic. It does this by generating server certificates on the fly, signed by an intermediate CA certificate you supply. Inbound TLS from the internet is not inspected by Azure Firewall; Microsoft points to Web Application Firewall on Application Gateway for that, covered in the Azure Front Door and Application Gateway WAF Security Guide.

The certificate requirements are specific. The intermediate CA must be a password-less PFX containing a single certificate and its private key, with an RSA key of at least 4096 bits, valid for at least one year forward, with KeyUsage marked critical including KeyCertSign, and BasicConstraints marked critical with CA set to true and a path length of at least one. The private key must be exportable.

The identity chain is where the risk concentrates:

  • The PFX is stored in Key Vault and read through the secrets interface. Microsoft recommends importing it through the certificates feature, which creates a matching secret and enables expiry alerts.
  • The firewall reads it using a user-assigned managed identity that needs Get and List on secrets. Firewall Premium is a Key Vault trusted service, so the vault does not need to be open to the internet.
  • Both the Azure RBAC and access policy authorisation models are supported on the vault.

Anyone who can read that secret holds a CA key that every managed endpoint in your estate trusts. Treat the vault, the managed identity and any human with secret read access as tier zero. Use a dedicated vault for the firewall CA, grant the managed identity only the secret read permissions it needs, keep human access to just-in-time elevation, and alert on any secret read by an identity other than the firewall's. The Azure Key Vault Security Guide covers vault hardening. Use your corporate PKI for production; Microsoft's sample scripts and the portal's auto-generated CA are for testing only.

When you renew the intermediate CA, you must explicitly update the policy's TLS setting to the new certificate. Put the expiry date in the same calendar as other machine credential expiries. Also note Microsoft's documented exclusions: TLS termination is not supported for the Education, Finance, Government and Health and medicine web categories, so do not assume those flows are inspected.

Threat intelligence and IDPS settings

Threat intelligence filtering uses the Microsoft Threat Intelligence feed to alert on or deny traffic to and from known malicious IP addresses, FQDNs and URLs. It has three modes: Off, Alert (the default) and Alert and deny. When enabled, it is evaluated before NAT, network and application rules. You can exempt FQDNs, addresses, ranges and subnets with an allow list.

Alert only is a reasonable first week setting while you check for false positives. It is not a sensible permanent setting, because it means known command and control destinations are logged and then allowed. Set Alert and deny on the parent policy, which children then cannot weaken.

The Premium tier adds IDPS with over 67,000 signatures in more than 50 categories. Each signature can be Disabled, Alert, or Alert and Deny, and Microsoft documents the resolution order as policy mode, then parent policy mode, then user override, then system default, with up to 10,000 customisations. Points to plan for:

  • IDPS only sees inside HTTPS if TLS inspection is enabled for that traffic.
  • Direction-based signatures depend on the IDPS private IP ranges, which default to RFC 1918 only. If you use other ranges internally, add them, or east-west traffic will be classified as inbound or outbound.
  • The IDPS bypass list exempts addresses from inspection and Microsoft notes it is not a throughput optimisation. Every entry is a blind spot; give each an owner and review date.

Egress control as a machine identity defence

Most stolen non-human credentials, such as access tokens, storage keys and API keys, are valuable because they can be used from anywhere. Egress filtering narrows "anywhere". If a compromised workload can only reach the FQDNs its application rules allow, an attacker's ability to send stolen tokens to their own infrastructure (ATT&CK T1567 Exfiltration Over Web Service) or to tunnel command and control through common protocols (T1071 Application Layer Protocol) drops sharply.

Practical patterns:

  • Default outbound traffic from workload subnets to the firewall with user-defined routes, and allow only listed FQDNs per workload in application rules.
  • Use URL filtering on Premium for paths where an FQDN alone is too broad, remembering that HTTPS URL filtering requires TLS inspection on that rule.
  • Use web categories to deny broad classes such as file sharing for server subnets; on Premium they match the full URL, and they require a Premium policy on a Premium firewall.
  • Prefer Azure private endpoints for platform services so tokens for storage, Key Vault and registries never need to cross the firewall to the internet.
  • Watch denied egress logs. A workload repeatedly trying to reach a new external host is often the first sign that its identity or code has been compromised.

The general method is covered in the Cloud Egress Filtering guide.

Forced tunnelling and hybrid routing

Forced tunnelling sends internet-bound traffic from the firewall to an on-premises firewall or network virtual appliance instead of out directly. It requires the firewall to be created with the management network interface enabled. That interface has a public IP used exclusively by the Azure platform for management, which lets the data path run without a public IP.

To force traffic, add a default route on the firewall subnet pointing to your VPN gateway, or enable gateway route propagation so a default route learnt through BGP is applied. Several behaviours change:

  • The firewall SNATs internet-bound traffic to its private IP, so the on-premises device sees the firewall, not the original workload. To preserve source addresses, add 0.0.0.0/0 as a private IP range so the firewall never SNATs; the firewall then cannot egress directly to the internet.
  • DNAT is not supported with forced tunnelling because of asymmetric routing, and inbound internet access is not supported.
  • Split tunnelling with route tables is possible, for example to send licence activation traffic directly to the internet.
  • Forced tunnelling is available for Virtual WAN secured hubs that use routing intent.

The identity consequence is attribution. If SNAT is on, upstream logs cannot tell which workload made a request, so correlating a suspicious connection with a specific managed identity depends on the Azure Firewall logs, not the on-premises ones. Decide where attribution happens and make sure that log source is retained.

Logging and detection

Configure diagnostic settings on the firewall to send logs to a Log Analytics workspace, using resource-specific tables where available so application, network, threat intelligence and IDPS events are queryable separately. IDPS alerts are available through the network rule log, and threat intelligence hits appear with their own operation name. The workspace design and its access controls are covered in the Azure Monitor and Log Analytics Security Guide.

Detections to build first, as NHI Mgmt Group recommendations:

  • Any threat intelligence or high severity IDPS hit from a workload subnet, enriched with the workload's managed identity.
  • Denied application rule events from server subnets to new destinations.
  • Changes to the threat intelligence mode, the allow list, the IDPS bypass list or the TLS inspection certificate.
  • Policy writes by identities other than the deployment pipelines.
  • Secret reads on the firewall CA vault by any identity other than the firewall's managed identity.

Common failure patterns

  • Threat intelligence left in Alert mode. Known malicious destinations are logged and allowed for years.
  • Broad network rules. An allow on 443 to any destination makes application rules decorative.
  • Allow lists without owners. Threat intelligence allow list and IDPS bypass entries accumulate and nobody remembers why.
  • CA key readable by people. The firewall's vault is shared with other workloads and several engineers have standing secret read access.
  • Expired intermediate CA. Renewal happens, but the policy is never pointed at the new certificate.
  • Pipeline identity with subscription scope. The identity that deploys firewall policy can also change everything else.
  • Private ranges not declared. Non-RFC 1918 internal ranges confuse IDPS direction-based signatures.
  • Logs not retained. Forced tunnelling with SNAT leaves the Azure logs as the only attribution source, and they are kept for a short period.

Practitioner checklist

  • Use a parent policy for central rules and the threat intelligence mode, and child policies per application team.
  • Set threat intelligence to Alert and deny on the parent once false positives are reviewed.
  • Keep network rules narrow and route outbound web traffic through application rules with explicit FQDNs.
  • Deploy policy only through pipelines with federated, narrowly scoped identities and required reviews.
  • Store the TLS inspection CA in a dedicated vault, readable only by the firewall's user-assigned managed identity.
  • Track the intermediate CA expiry and update the policy setting on renewal.
  • Declare all internal ranges in IDPS private IP ranges and review the bypass list quarterly.
  • Decide on SNAT behaviour for forced tunnelling based on where attribution must happen.
  • Send firewall logs to Log Analytics and alert on threat intel hits, policy changes and CA vault reads.

Standards and references

Related NHI Mgmt Group resources: Azure Virtual Network Security Guide · Azure Key Vault Security Guide · Cloud Egress Filtering · Azure Front Door and Application Gateway WAF Security Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.