Azure WAF Overview
What you'll learn: How Azure Web Application Firewall integrates with Application Gateway and Front Door to protect web applications using flexible policy-based configurations.
What is Azure WAF?
Azure WAF is Microsoft's managed Web Application Firewall service that protects your web applications from common exploits and vulnerabilities. Unlike AWS WAF which operates as a standalone service, Azure WAF is embedded directly into two key services:
- Azure Application Gateway (regional load balancer)
- Azure Front Door (global content delivery and load balancing)
Think of it like choosing between a security guard stationed at a single building entrance (Application Gateway) versus one monitoring all entrances across multiple global locations (Front Door).
Policy Configuration Basics
Azure WAF uses WAF policies as the primary configuration object. These policies contain:
Managed Rule Sets
Pre-built rule groups (like OWASP protection) that you enable with a single click. You've seen similar concepts in AWS WAF rule groups—Azure simplifies this further with Microsoft-maintained rulesets.
Custom Rules
Your own logic-based rules that evaluate request properties (IP addresses, geolocation, headers, cookies). These fire before managed rules and give you application-specific control.
Policy Modes
- Detection mode: Logs threats but doesn't block (testing phase)
- Prevention mode: Actively blocks malicious requests
You associate a single WAF policy with one or more Application Gateways or Front Door endpoints. This centralized model means updating protection rules across multiple applications simultaneously—far simpler than per-resource configurations.
Key Takeaway: Azure WAF is service-integrated (not standalone), policy-driven, and offers both managed OWASP protection and custom rule flexibility through a centralized configuration model attached to Application Gateway or Front Door.