*.contoso.com instead of needing every hostname listed by hand.There is a catch, and it's an important one. Microsoft Learn's documentation for the feature, last updated November 17, 2026, says wildcard domains in network rules are currently supported only in West Central US, East Asia and UK South. "Generally available" here means production-ready. It does not mean the feature works in every region yet.
Why this is a reversal
Azure Firewall admins will remember the older wording. Earlier versions of Microsoft's network-rule documentation said plainly that FQDN filtering in network rules doesn't support wildcards by design. The broader FQDN filtering overview said the same thing: network rules with FQDN filtering don't support the use of wildcard characters, and this limitation is intentional by design.
Until now, wildcards only worked in application rules. Community guides reflected that. One Azure Firewall tips blog put it this way: the only place where wildcards can be used in the Application Rules within Azure Firewall. Network Rules do not support using wildcards to specify URLs. A comparison of cloud firewall FQDN filtering, published about two years ago, noted that FortiGate stands alone in supporting wildcard FQDN filters at Layer 3, achieved through its DNS packet sniffing capability. This enables matching patterns like *.example.com across any protocol, not just web traffic. Azure Firewall now offers similar wildcard matching at the network layer. It still depends on DNS observation, and only in three regions for now.
Section summary: Network rules previously refused wildcards by design. That restriction is now lifted for production use, but only in a short list of documented regions.
What the feature does
Network rules let you use FQDNs in network rules based on DNS resolution. This feature allows you to filter outbound traffic by using any TCP or UDP protocol, including NTP, SSH, and RDP. Before this change, each FQDN had to be exact, such as [www.contoso.com](http://www.contoso.com).
According to the updated Microsoft Learn page, a wildcard FQDN such as *.contoso.com can now be used in a network rule to allow or deny traffic. Microsoft's example use case is a service that keeps adding or removing endpoints under one domain. If you have spent time updating a rule every time a vendor adds a new regional hostname, this is aimed at you.
Microsoft documents these behaviors:
- Syntax: Wildcards can go anywhere in the domain name. Consecutive wildcards are not allowed.
- Performance: Prefix and suffix wildcards are more efficient. Complex wildcard patterns might affect performance. Microsoft gives no figures for this, so test in your own environment.
- DNS Proxy is required: The firewall finds the IP addresses of matching subdomains by watching DNS responses. You must enable DNS Proxy and configure client VMs to use Azure Firewall as their DNS server, so all DNS traffic passes through it.
- Learned addresses: Because addresses are learned from observed DNS responses, the first connection to a newly resolved subdomain might be briefly delayed while the firewall programs the address.
That last point matters more than it looks. A wildcard doesn't tell the firewall every matching IP address ahead of time. The firewall only learns an address after it sees a DNS lookup for it.
Section summary: Wildcards cover changing sets of subdomains, but enforcement still depends on the firewall seeing DNS traffic. Expect a brief delay the first time a new subdomain is used.
How enforcement works
FQDN filtering in network rules has always worked by turning names into IP addresses. Microsoft's overview explains that network and DNAT rules filter traffic based on the resolved IP addresses of the FQDNs, using Azure DNS or a custom DNS server. The current Learn page describes the timing: new IP addresses are added to firewall rules when a new DNS resolution happens, old addresses expire after 15 minutes if the DNS server stops returning them, and the firewall updates its rules every 15 seconds based on DNS resolution of network-rule FQDNs.
These figures describe general FQDN handling in network rules. Don't treat them as guaranteed timings for every wildcard scenario. They are useful when you're trying to work out why a connection that just failed suddenly works, or why a retired IP address still matches for a few minutes.
Network rules vs. application rules
The wildcard change doesn't make network rules equivalent to application rules. Application-rule FQDN filtering for HTTP/S and MSSQL uses an application-level transparent proxy and the SNI header. That lets it tell apart two FQDNs that resolve to the same IP address. Network rules can't do that, wildcard or not.
Microsoft's guidance stays the same:
- For HTTP/S or MSSQL, use application rules for FQDN filtering.
- For services like Azure Backup and HDInsight, use application rules with FQDN tags.
- For other protocols, use network rules, which can now take wildcards.
My analysis, not Microsoft's: if a wildcard network rule allows *.example.com and one of those hostnames shares an IP address with an unrelated service on a CDN or shared host, the network rule has no way to tell them apart. For web traffic, application rules remain the more precise option.
Section summary: Wildcards make network rules easier to maintain, but they still filter by IP address. Application rules remain the precise choice for HTTP/S and MSSQL.
Watch your patterns
Microsoft's network-rule documentation doesn't list detailed wildcard matching examples beyond *.contoso.com. The Azure Firewall FAQ does contain a warning about wildcard matching in application-rule target URLs. It says a pattern like *contoso.com also allows potentially undesired/risky variations such as th3re4lcontoso.com - use with caution. That FAQ entry covers application rules, not the new network-rule feature. Since network-rule wildcards can also appear "everywhere within the domain name," it's sensible to test whether a pattern without a dot separator matches more than you intended. Until Microsoft documents the exact network-rule matching behavior, *.contoso.com is the safer form.
Rollout checklist for admins
Microsoft's documentation describes requirements and behavior, not a specific portal, CLI, PowerShell, ARM or Terraform procedure for wildcard network rules. Use these steps as a checklist, not a click-by-click guide:
- Check your region. Make sure your firewall is in West Central US, East Asia or UK South. Elsewhere, the documentation doesn't list support yet.
- Enable DNS Proxy in your Azure Firewall or Firewall Policy DNS settings.
- Point workloads at the firewall for DNS. Configure client VMs, usually through VNet DNS settings, to use the firewall as their DNS server. If DNS goes around the firewall, wildcard learning won't work.
- Pick the right rule type. HTTP/S or MSSQL goes in application rules. Other TCP/UDP traffic can use a wildcard network rule.
- Prefer simple patterns. Prefix or suffix wildcards perform better than complex patterns, and Microsoft doesn't allow consecutive wildcards.
- Test two cases. Check a hostname clients already resolve, and a newly created subdomain. For the new one, expect a possible short delay on the first connection.
- Watch for stale matches. Retired IP addresses can keep matching for up to 15 minutes after DNS stops returning them.
What success looks like: A client using the firewall as its DNS server resolves a matching subdomain, and the connection is allowed or denied according to your wildcard rule, even though that hostname never appeared in your policy.
Common failure points:
- Clients use another DNS resolver, so the firewall never sees the DNS lookup.
- The firewall is deployed in a region that isn't documented as supported.
- HTTP/S traffic was put in a network rule when an application rule would have been more precise.
- A first-connection timeout was taken as a policy failure when it was the documented learning delay.
The bottom line
This is a useful quality-of-life improvement for Azure network teams. Hybrid and hub-and-spoke designs often have non-web traffic, such as SSH to vendor appliances or NTP to pools whose hostnames change, that until now needed long exact-match lists or IP rules. Wildcard network rules remove much of that upkeep.
Before you plan around it, keep two limits in mind: the three-region list and the dependency on DNS Proxy. The feature is production-ready, but it isn't available everywhere yet, and it filters by IP address rather than by hostname. If Microsoft adds more regions, the Learn page's region note is the place to check.
References
- (Launched) Generally Available: Wildcard domain support in Azure Firewall network rules Azure Updates · 2026-11-23T18:51:31Z
- Azure Firewall FQDN filtering in network rules learn.microsoft.com
- Azure Firewall FQDN filtering learn.microsoft.com