How does the Application Gateway WAF work?
IntermediateConceptNetworking
Answer
WAF on Application Gateway v2 inspects HTTP requests against managed rule sets (OWASP CRS 3.2 or the Microsoft Default Rule Set 2.x) plus your custom rules (IP allow/deny, geo-match, rate limiting). Modes: Detection logs only, Prevention blocks with 403.
Rollout pattern: start in Detection, query AzureDiagnostics | where Category == "ApplicationGatewayFirewallLog" (or the resource-specific AGWFirewallLogs table) for false positives, add exclusions for specific rules/fields, then switch to Prevention. WAF policies are separate resources attachable at gateway, listener or path level.
More on Networking
What is a VNet and how does it compare to an AWS VPC?BeginnerHow many IP addresses does Azure reserve in each subnet?BeginnerWhat is a Network Security Group and how are its rules evaluated?BeginnerIf an NSG is on both the subnet and the NIC, how is traffic evaluated?AdvancedWhat are service tags and why use them in NSG rules?BeginnerWhat is an Application Security Group (ASG)?Intermediate