DDoS Protection vs WAF vs Azure Firewall vs NSG: which layer each covers

Verdict: DDoS Protection covers layers 3 and 4 volumetric floods; a WAF covers layer 7 web exploits; Azure Firewall is stateful east-west and north-south inspection; an NSG is a static layer 3/4 filter. Pair DDoS with a WAF.

CriterionDDoS ProtectionWeb Application FirewallAzure FirewallNSG
LayerL3/L4 volumetricL7 web exploitsL3-L7 stateful, east-west and north-southL3/L4 static subnet filter
What it stopsSYN floods and other volumetric attacksSQL injection, cross-site scripting via OWASP rule setsGeneral traffic inspection between VNets and to the internetAllow or deny by 5-tuple rule
Combine withA WAF, for a public web appDDoS Protection, for the network layerSits centrally in a hub VNetNot a substitute for DDoS or WAF
Tiering noteIP Protection is pay-per-IP, no plan; Network Protection is plan-basedFront Door Premium adds managed rule sets and bot protectionSingle stateful appliance, not per-subnetStatic rules, not auto-tuned
Choose whenVolumetric or protocol floods against a public IPHTTP payload inspection is requiredCentralised inspection of hub-spoke and internet traffic is requiredSimple subnet or NIC-level allow/deny is enough

Rules

Traps