An Azure Firewall Policy acts as a top-level resource that defines how traffic is inspected and controlled across your virtual networks. Inside each policy, you organize traffic rules into rule collection groups, which process traffic in a specific order based on their assigned priority. Each group holds rule collections that contain the individual rules used to allow or block traffic. Setting a clear priority and action, such as allow or deny, for every collection establishes a predictable hierarchy for network security.
When building firewall rules, you must choose the right type of rule collection to match your traffic needs. Use DNAT rules when you need inbound translation to map a public IP address to a private IP address within your network. For layer 3 and layer 4 filtering, use Network rules to filter traffic based on source and destination IP addresses, ports, and protocols. To manage layer 7 traffic, use Application rules to filter connections by fully qualified domain names (FQDNs) and URLs. You can also leverage service tags and FQDN filtering to simplify configuration and automatically adapt to cloud infrastructure changes.
Monitoring and defending your network boundaries relies on capturing traffic events and blocking known hazards. Enabling diagnostic logging allows you to record firewall events in structured formats, which you can later search and analyze using interactive workbooks. To actively stop malicious actors, turn on threat intelligence in either alert or alert-and-deny mode to detect and block traffic from known malicious IP addresses and domains. Administrators should also configure alerts on key firewall metrics, such as overall throughput and SNAT port utilization, to maintain continuous visibility.
Optimizing your firewall settings ensures that traffic flows quickly and rules remain easy to manage. To minimize processing latency, place your most frequently triggered rules early in their collections so the firewall evaluates them first. You can use policy analytics to identify unused or conflicting rules and receive automated recommendations for cleaning up your policies. Grouping similar IP ranges into IP Groups helps you avoid reaching rule limits, while adding multiple public IPs prevents SNAT port exhaustion. Finally, implement web categories for bulk URL filtering to control access to large classes of websites with minimal effort.
Are you a guardian of your domain? Lean how to leverage your aptitude in security to protect Microsoft Azure technologies, with a goal of earning the Microsoft Certified: Azure Security Engineer Associate certification!
Prepare and test your skills

Prepare and test your skills

Azure Firewall Policy supports three types of rule collections: DNAT rules for inbound translation mapping public IP addresses to private IP addresses within your network, Network rules for layer 3 and layer 4 filtering based on source and destination IP addresses, ports, and protocols, and Application rules for layer 7 filtering by fully qualified domain names (FQDNs) and URLs.
Use DNAT rules when you need inbound translation to map a public IP address to a private IP address within your network. Use Network rules when you need to filter traffic based on source and destination IP addresses, ports, and protocols for layer 3 and layer 4 filtering.
Threat intelligence in Azure Firewall can be enabled in either alert mode or alert-and-deny mode to detect and block traffic from known malicious IP addresses and domains, providing active protection against malicious actors at the network boundary.
To optimize Azure Firewall settings, place most frequently triggered rules early in their collections so the firewall evaluates them first, use policy analytics to identify unused or conflicting rules, group similar IP ranges into IP Groups to avoid reaching rule limits, add multiple public IPs to prevent SNAT port exhaustion, and implement web categories for bulk URL filtering.