You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/firewall/firewall-diagnostics.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ services: firewall
5
5
author: vhorne
6
6
ms.service: firewall
7
7
ms.topic: how-to
8
-
ms.date: 10/22/2021
8
+
ms.date: 11/15/2022
9
9
ms.author: victorh
10
10
#Customer intent: As an administrator, I want monitor Azure Firewall logs and metrics so that I can track firewall activity.
11
11
---
@@ -44,6 +44,7 @@ It can take a few minutes for the data to appear in your logs after you complete
44
44
8. Select your subscription.
45
45
9. Select **Save**.
46
46
47
+
:::image type="content" source=".\media\tutorial-diagnostics\firewall-diagnostic-settings.png" alt-text="Screenshot of Firewall Diagnostic setting.":::
47
48
## Enable diagnostic logging by using PowerShell
48
49
49
50
Activity logging is automatically enabled for every Resource Manager resource. Diagnostic logging must be enabled to start collecting the data available through those logs.
@@ -69,9 +70,8 @@ To enable diagnostic logging with PowerShell, use the following steps:
69
70
Name = 'toLogAnalytics'
70
71
ResourceId = '/subscriptions/<subscriptionId>/resourceGroups/<resource group name>/providers/Microsoft.Network/azureFirewalls/<Firewall name>'
71
72
WorkspaceId = '/subscriptions/<subscriptionId>/resourceGroups/<resource group name>/providers/microsoft.operationalinsights/workspaces/<workspace name>'
72
-
Enabled = $true
73
73
}
74
-
Set-AzDiagnosticSetting @diagSettings
74
+
New-AzDiagnosticSetting @diagSettings
75
75
```
76
76
77
77
## Enable diagnostic logging by using the Azure CLI
@@ -98,8 +98,8 @@ To enable diagnostic logging with Azure CLI, use the following steps:
98
98
az monitor diagnostic-settings create -n 'toLogAnalytics'
99
99
--resource '/subscriptions/<subscriptionId>/resourceGroups/<resource group name>/providers/Microsoft.Network/azureFirewalls/<Firewall name>'
100
100
--workspace '/subscriptions/<subscriptionId>/resourceGroups/<resource group name>/providers/microsoft.operationalinsights/workspaces/<workspace name>'
0 commit comments