Open In App

Microsoft Azure – Enabling Logs for Troubleshooting the Azure Firewall Rules

Azure Firewall Diagnostic settings are used to configure logs and metrics for a resource to the destination of Log Analytics Workspace.

Pre-requisites:



Implementation:

Step 1: Login to Azure Portal

Step 2: Search for Firewalls from azure global search and select Firewall



Step 3: Select your Firewall resource from Azure Firewall resources

Step 4: Navigate to Monitoring >> Access Diagnostic setting

Step 5: Now, Click on ‘Add Diagnostic setting‘ to configure the collection of the following data:

  1. AzureFirewallApplicationRule
  2. AzureFirewallNetworkRule
  3. AzureFirewallDnsProxy

Following are the azure KQL Query to test or to troubleshoot the firewall Logs:

AzureDiagnostics
| where Category == "AzureFirewallNetworkRule" 
or Category == "AzureFirewallApplicationRule"
| where OperationName == "AzureFirewallNetworkRuleLog"
 
or OperationName == "AzureFirewallApplicationRuleLog"

Output:

Article Tags :