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
Add RecordTypes filtering instructions for Flow Logs
Added instructions for enabling RecordTypes filtering during Flow Log creation and updating existing flow logs. Included cmdlets for managing RecordTypes filtering conditions.
You can enable RecordTypes filtering during Flow Log creation to choose which flow record formats to collect using the cmdlet below. This helps tailor logging output without generating unnecessary data.
99
+
100
+
```azurepowershell-interactive
101
+
# Enabling RecordTypes filtering while creating flowlog
102
+
New-AzNetworkWatcherFlowLog `
103
+
-Enabled $true -Name <FlowLog Name> `
104
+
-NetworkWatcherName <Network Watcher Name> `
105
+
-ResourceGroupName NetworkWatcherRG `
106
+
-StorageId <Storage Account ID> `
107
+
-TargetResourceId <Target Resource/VNet ID> `
108
+
-RecordTypes "<Record Types>"
109
+
110
+
# Update RecordTypes filtering condition on existing flowlog
111
+
Set-AzNetworkWatcherFlowLog `
112
+
-Enabled $true -Name <FlowLog Name> `
113
+
-NetworkWatcherName <Network Watcher Name> `
114
+
-ResourceGroupName <Resource Group Name> `
115
+
-StorageId <Storage Account ID> `
116
+
-TargetResourceId <Target Resource/VNet ID> `
117
+
-RecordTypes "<Record Types>"
118
+
119
+
120
+
# Remove RecordTypes filtering condition from existing flowlog
121
+
Set-AzNetworkWatcherFlowLog `
122
+
-Enabled $true -Name <FlowLog Name> `
123
+
-NetworkWatcherName <Network Watcher Name> `
124
+
-ResourceGroupName <Resource Group Name> `
125
+
-StorageId <Storage Account ID> `
126
+
-TargetResourceId <Target Resource/VNet ID> `
127
+
-RecordTypes ""
128
+
129
+
# Enabling RecordTypes and EnabledFilteringCriteria filtering while creating flowlog
0 commit comments