Three Azure services all "block traffic", but at different layers and in different places. What each one inspects, how they fit together, and three exam traps.
By Tony Rough
A network security group, Azure Firewall and a web application firewall can all stop traffic, so exam scenarios offer all three as answers. They aren’t alternatives: each looks at a different part of the traffic, in a different place.
An NSG is a list of allow and deny rules matched on the five-tuple: source, source port, destination, destination port and protocol. Rules have a priority from 100 to 4096, lower numbers first, and processing stops at the first match. Default rules (priority 65000 and up) allow traffic within the virtual network and out to the internet, and deny other inbound traffic.
Storage or Internet stands for a set of IP prefixes that Microsoft keeps up to date, so you don’t maintain address lists yourself.An NSG can’t read a domain name, a URL or the content of a request.
Azure Firewall is a firewall as a service, with built-in high availability, for east-west and north-south traffic. For production, Microsoft recommends a hub-and-spoke design: the firewall in its own hub virtual network, workloads in peered spokes.
It only sees traffic sent to it, so each workload subnet needs a route table with a user-defined route for 0.0.0.0/0, next hop Virtual appliance, at the firewall’s private IP address.
Rules come in three kinds: DNAT (inbound, to a private server), network (addresses, ports, service tags) and application (FQDN filtering for HTTP/S and MSSQL). Network rules can use FQDNs for other protocols, such as SSH, if DNS proxy is on.
The three SKUs:
Don’t confuse those routes with the firewall’s own forced tunnelling, which sends its internet-bound traffic on to an on-premises device and needs the Firewall Management network interface.
A WAF inspects HTTP and HTTPS requests arriving at a web app. You’ll meet it on Application Gateway (regional) and Azure Front Door (at Microsoft’s global edge). A WAF policy holds:
Detection mode only logs matches; prevention mode blocks them. Microsoft suggests running a new WAF in detection mode briefly first, to find false positives.
A typical design layers all three: a WAF on Front Door or Application Gateway in front of the web tier, Azure Firewall in the hub with a user-defined route on each spoke subnet, and NSGs on the spoke subnets, kept short with ASGs and service tags.
| You need… | Choose |
|---|---|
| Allow or deny ports between subnets or VMs | NSG (with ASGs and service tags) |
| Restrict outbound traffic to named websites (FQDNs) | Azure Firewall application rules |
| One central inspection point for every spoke | Azure Firewall in the hub, plus UDRs |
| Decrypt and inspect outbound HTTPS, or IDPS | Azure Firewall Premium |
| Block SQL injection or XSS against a web app | WAF on Application Gateway or Front Door |
| Log web attacks without blocking yet | WAF in detection mode |
The AZ-700 study guide gives each service its own chapter: NSGs (chapter 13), Azure Firewall (chapter 14) and WAF (chapter 15). The SC-500 study guide covers them in chapters 7, 9 and 12, and the AZ-104 study guide covers NSGs, ASGs and service tags in chapter 12. Facts checked against Microsoft Learn on 8 October 2026.
Azure Data Share now has a formal retirement date of 12 November 2029. Azure AI Gateway became a generally available service in its own right, AES keys became generally available in Key Vault Premium and as TDE protectors for Azure SQL Database, and Azure Backup can now protect VMs from a vault in another subscription.
VCF and vSphere Foundation share the same installer, the same version numbers and many of the same component names. What each one actually deploys, what only VCF has, and how to tell which platform you're running.
Support for .NET 8 and .NET 9 ended on 10 November 2026 for Azure Functions and Static Web Apps managed functions. Azure Front Door gained post-quantum TLS key exchange and edge actions, both now generally available, and previews of native gRPC and rate limit grouping for Front Door Premium WAF.
Three ways a device gets an identity in Microsoft Entra ID. Who owns the device, who signs in to it and whether it needs a domain controller decide which one you use, and Microsoft now says which one new Windows devices should be.
Microsoft moved the retirement dates for gpt-4o and extended the deadline for Application Insights query API keys to 31 March 2027. The HTTP DDoS ruleset for Front Door Premium WAF and route maps for Azure Route Server are now generally available, and Azure Firewall application rules for IPv6 are in preview.