Skip to content

Commit a1ac21b

Browse files
authored
Merge pull request #206930 from vhorne/fw-preview
add PS to enable FW structured logs
2 parents 48d3ad6 + 7e5f575 commit a1ac21b

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

articles/firewall/firewall-preview.md

Lines changed: 17 additions & 2 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: conceptual
8-
ms.date: 07/25/2022
8+
ms.date: 08/04/2022
99
ms.author: victorh
1010
---
1111

@@ -93,7 +93,22 @@ New resource specific tables are now available in Diagnostic setting that allows
9393
- [Network rule aggregation log](/azure/azure-monitor/reference/tables/azfwnetworkruleaggregation) - Contains aggregated Network rule log data for Policy Analytics.
9494
- [NAT rule aggregation log](/azure/azure-monitor/reference/tables/azfwnatruleaggregation) - Contains aggregated NAT rule log data for Policy Analytics.
9595

96-
By default, the new resource specific tables are disabled. Open a support ticket to enable the functionality in your environment.
96+
By default, the new resource specific tables are disabled.
97+
98+
Run the following Azure PowerShell commands to enable Azure Firewall Structured logs:
99+
100+
```azurepowershell
101+
Connect-AzAccount
102+
Select-AzSubscription -Subscription "subscription_id or subscription_name"
103+
Register-AzProviderFeature -FeatureName AFWEnableStructuredLogs -ProviderNamespace Microsoft.Network
104+
Register-AzResourceProvider -ProviderNamespace Microsoft.Network
105+
```
106+
107+
Run the following Azure PowerShell command to turn off this feature:
108+
109+
```azurepowershell
110+
Unregister-AzProviderFeature -FeatureName AFWEnableStructuredLogs -ProviderNamespace Microsoft.Network
111+
```
97112

98113
In addition, when setting up your log analytics workspace, you must select whether you want to work with the AzureDiagnostics table (default) or with Resource Specific Tables.
99114

0 commit comments

Comments
 (0)