Skip to content

Commit 83004d2

Browse files
committed
updated powershell code.
1 parent 5cea1dc commit 83004d2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

articles/firewall/firewall-diagnostics.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ To enable diagnostic logging with PowerShell, use the following steps:
7070
Name = 'toLogAnalytics'
7171
ResourceId = '/subscriptions/<subscriptionId>/resourceGroups/<resource group name>/providers/Microsoft.Network/azureFirewalls/<Firewall name>'
7272
WorkspaceId = '/subscriptions/<subscriptionId>/resourceGroups/<resource group name>/providers/microsoft.operationalinsights/workspaces/<workspace name>'
73-
Enabled = $true
7473
}
75-
Set-AzDiagnosticSetting @diagSettings
74+
New-AzDiagnosticSetting @diagSettings
7675
```
7776

7877
## Enable diagnostic logging by using the Azure CLI

0 commit comments

Comments
 (0)