An Azure network security service that is used to protect Azure Virtual Network resources.
Hello Leppert, R
It looks like you've set up a workspace and are running AZFWNetworkRule against your vHub firewall, but you're not seeing any log entries even though devices are communicating with the service. Here are some common reasons why logs may be missing and steps to address each:
- Diagnostic settings may not be configured correctly.
- For Structured logs (used by the
AZFWNetworkRuletable), ensure you have a diagnostic setting that targets “Resource specific” in your Log Analytics workspace. - If using Legacy logs, check for a separate diagnostic setting for those, which appear in the
AzureDiagnosticstable. - After enabling Structured logs, allow up to 30 minutes for logs to appear.
- Confirm you are querying the correct table.
- Structured network-rule logs are in
AZFWNetworkRule, and application-rule logs are inAZFWApplicationRule. - Legacy logs are in
AzureDiagnosticsunder theNetworkRuleLogcategory.
Review your Kusto query, for example:
AZFWNetworkRule
| where TimeGenerated > ago(1h)
| where DestinationIp contains "10.x.x.10"
- Check if traffic is actually reaching the firewall.
Make sure your User-Defined Routes (UDRs) send traffic to the firewall’s private IP, and the route table is linked to the correct subnets. If traffic bypasses the firewall, logs will not be generated.
- Review rule hit behavior.
Azure Firewall applies a default deny policy—only flows matching an explicit Allow/Deny rule or the default deny will generate log entries. Check your rule priorities and definitions to ensure your traffic is matched.
- Consider retention and throttling limits. Log Analytics retains data for 30 days by default, and queries return up to 30,000 records unless adjusted or exported.
To troubleshoot further:
1.In the Azure portal, go to your Firewall → Diagnostic settings and confirm you have:
- One setting for Structured logs → destination “Resource specific” → sending at least the NetworkRule log category to your workspace.
- (If you still need legacy logging) a second setting for Azure Diagnostics → sending logs to the same or another workspace.
- After enabling the diagnostic logs wait ~30 min, then run:
AZFWNetworkRule
| where TimeGenerated > ago(30m)
- Review your vHub’s effective routes to confirm traffic to
10.x.x.10is directed to the firewall’s private IP. - If no logs are found, try querying
AzureDiagnosticsforCategory == "NetworkRuleLog"to check for legacy logs.
Reference documentation: Enable diagnostic logging: https://learn.microsoft.com/azure/firewall/firewall-diagnostics#enable-diagnostic-logging-through-the-azure-portal
Structured logs overview: https://learn.microsoft.com/en-us/azure/firewall/monitor-firewall
Troubleshooting missing logs: https://learn.microsoft.com/en-us/azure/firewall/monitor-firewall#critical-checklist-for-common-issues
Virtual hub effective routes: https://learn.microsoft.com/en-us/azure/virtual-wan/effective-routes-virtual-hub
and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.