Skip to content

Commit 5cea1dc

Browse files
committed
included screenshot, updated CLI code, ms.date.
1 parent 59e4173 commit 5cea1dc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

articles/firewall/firewall-diagnostics.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: firewall
55
author: vhorne
66
ms.service: firewall
77
ms.topic: how-to
8-
ms.date: 10/22/2021
8+
ms.date: 11/15/2022
99
ms.author: victorh
1010
#Customer intent: As an administrator, I want monitor Azure Firewall logs and metrics so that I can track firewall activity.
1111
---
@@ -44,6 +44,7 @@ It can take a few minutes for the data to appear in your logs after you complete
4444
8. Select your subscription.
4545
9. Select **Save**.
4646

47+
:::image type="content" source=".\media\tutorial-diagnostics\firewall-diagnostic-settings.png" alt-text="Screenshot of Firewall Diagnostic setting.":::
4748
## Enable diagnostic logging by using PowerShell
4849

4950
Activity logging is automatically enabled for every Resource Manager resource. Diagnostic logging must be enabled to start collecting the data available through those logs.
@@ -98,8 +99,8 @@ To enable diagnostic logging with Azure CLI, use the following steps:
9899
az monitor diagnostic-settings create -n 'toLogAnalytics'
99100
--resource '/subscriptions/<subscriptionId>/resourceGroups/<resource group name>/providers/Microsoft.Network/azureFirewalls/<Firewall name>'
100101
--workspace '/subscriptions/<subscriptionId>/resourceGroups/<resource group name>/providers/microsoft.operationalinsights/workspaces/<workspace name>'
101-
--logs '[{\"category\":\"AzureFirewallApplicationRule\",\"Enabled\":true}, {\"category\":\"AzureFirewallNetworkRule\",\"Enabled\":true}, {\"category\":\"AzureFirewallDnsProxy\",\"Enabled\":true}]'
102-
--metrics '[{\"category\": \"AllMetrics\",\"enabled\": true}]'
102+
--logs "[{\"category\":\"AzureFirewallApplicationRule\",\"Enabled\":true}, {\"category\":\"AzureFirewallNetworkRule\",\"Enabled\":true}, {\"category\":\"AzureFirewallDnsProxy\",\"Enabled\":true}]"
103+
--metrics "[{\"category\": \"AllMetrics\",\"enabled\": true}]"
103104
```
104105

105106
## View and analyze the activity log
53.2 KB
Loading

0 commit comments

Comments
 (0)