@@ -12,22 +12,72 @@ Configures flow logging for a target resource.
12
12
13
13
## SYNTAX
14
14
15
- ### SetByResource (Default)
15
+ ### SetFlowlogByResourceWithoutTA (Default)
16
16
```
17
17
Set-AzureRmNetworkWatcherConfigFlowLog -NetworkWatcher <PSNetworkWatcher> -TargetResourceId <String>
18
18
-EnableFlowLog <Boolean> -StorageAccountId <String> [-EnableRetention <Boolean>] [-RetentionInDays <Int32>]
19
19
[-AsJob] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
20
20
```
21
21
22
- ### SetByName
22
+ ### SetFlowlogByResourceWithTAByResource
23
+ ```
24
+ Set-AzureRmNetworkWatcherConfigFlowLog -NetworkWatcher <PSNetworkWatcher> -TargetResourceId <String>
25
+ -EnableFlowLog <Boolean> -StorageAccountId <String> [-EnableRetention <Boolean>] [-RetentionInDays <Int32>]
26
+ [-AsJob] [-EnableTrafficAnalytics] -Workspace <IOperationalInsightWorkspace>
27
+ [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
28
+ ```
29
+
30
+ ### SetFlowlogByResourceWithTAByDetails
31
+ ```
32
+ Set-AzureRmNetworkWatcherConfigFlowLog -NetworkWatcher <PSNetworkWatcher> -TargetResourceId <String>
33
+ -EnableFlowLog <Boolean> -StorageAccountId <String> [-EnableRetention <Boolean>] [-RetentionInDays <Int32>]
34
+ [-AsJob] [-EnableTrafficAnalytics] -WorkspaceResourceId <String> -WorkspaceGUID <String>
35
+ -WorkspaceLocation <String> [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
36
+ [<CommonParameters>]
37
+ ```
38
+
39
+ ### SetFlowlogByNameWithTAByResource
40
+ ```
41
+ Set-AzureRmNetworkWatcherConfigFlowLog -NetworkWatcherName <String> -ResourceGroupName <String>
42
+ -TargetResourceId <String> -EnableFlowLog <Boolean> -StorageAccountId <String> [-EnableRetention <Boolean>]
43
+ [-RetentionInDays <Int32>] [-AsJob] [-EnableTrafficAnalytics] -Workspace <IOperationalInsightWorkspace>
44
+ [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
45
+ ```
46
+
47
+ ### SetFlowlogByNameWithTAByDetails
48
+ ```
49
+ Set-AzureRmNetworkWatcherConfigFlowLog -NetworkWatcherName <String> -ResourceGroupName <String>
50
+ -TargetResourceId <String> -EnableFlowLog <Boolean> -StorageAccountId <String> [-EnableRetention <Boolean>]
51
+ [-RetentionInDays <Int32>] [-AsJob] [-EnableTrafficAnalytics] -WorkspaceResourceId <String>
52
+ -WorkspaceGUID <String> -WorkspaceLocation <String> [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
53
+ [-Confirm] [<CommonParameters>]
54
+ ```
55
+
56
+ ### SetFlowlogByNameWithoutTA
23
57
```
24
58
Set-AzureRmNetworkWatcherConfigFlowLog -NetworkWatcherName <String> -ResourceGroupName <String>
25
59
-TargetResourceId <String> -EnableFlowLog <Boolean> -StorageAccountId <String> [-EnableRetention <Boolean>]
26
60
[-RetentionInDays <Int32>] [-AsJob] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
27
61
[<CommonParameters>]
28
62
```
29
63
30
- ### SetByLocation
64
+ ### SetFlowlogByLocationWithTAByResource
65
+ ```
66
+ Set-AzureRmNetworkWatcherConfigFlowLog -Location <String> -TargetResourceId <String> -EnableFlowLog <Boolean>
67
+ -StorageAccountId <String> [-EnableRetention <Boolean>] [-RetentionInDays <Int32>] [-AsJob]
68
+ [-EnableTrafficAnalytics] -Workspace <IOperationalInsightWorkspace> [-DefaultProfile <IAzureContextContainer>]
69
+ [-WhatIf] [-Confirm] [<CommonParameters>]
70
+ ```
71
+
72
+ ### SetFlowlogByLocationWithTAByDetails
73
+ ```
74
+ Set-AzureRmNetworkWatcherConfigFlowLog -Location <String> -TargetResourceId <String> -EnableFlowLog <Boolean>
75
+ -StorageAccountId <String> [-EnableRetention <Boolean>] [-RetentionInDays <Int32>] [-AsJob]
76
+ [-EnableTrafficAnalytics] -WorkspaceResourceId <String> -WorkspaceGUID <String> -WorkspaceLocation <String>
77
+ [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
78
+ ```
79
+
80
+ ### SetFlowlogByLocationWithoutTA
31
81
```
32
82
Set-AzureRmNetworkWatcherConfigFlowLog -Location <String> -TargetResourceId <String> -EnableFlowLog <Boolean>
33
83
-StorageAccountId <String> [-EnableRetention <Boolean>] [-RetentionInDays <Int32>] [-AsJob]
@@ -123,18 +173,33 @@ Accept pipeline input: True (ByPropertyName)
123
173
Accept wildcard characters : False
124
174
` ` `
125
175
176
+ ### -EnableTrafficAnalytics
177
+ Flag to enable/disable retention.
178
+
179
+ ` ` ` yaml
180
+ Type : SwitchParameter
181
+ Parameter Sets : SetFlowlogByResourceWithTAByResource, SetFlowlogByResourceWithTAByDetails, SetFlowlogByNameWithTAByResource, SetFlowlogByNameWithTAByDetails, SetFlowlogByLocationWithTAByResource, SetFlowlogByLocationWithTAByDetails
182
+ Aliases : EnableTA
183
+
184
+ Required : False
185
+ Position : Named
186
+ Default value : None
187
+ Accept pipeline input : False
188
+ Accept wildcard characters : False
189
+ ` ` `
190
+
126
191
### -Location
127
192
Location of the network watcher.
128
193
129
194
` ` ` yaml
130
195
Type : String
131
- Parameter Sets : SetByLocation
196
+ Parameter Sets : SetFlowlogByLocationWithTAByResource, SetFlowlogByLocationWithTAByDetails, SetFlowlogByLocationWithoutTA
132
197
Aliases :
133
198
134
199
Required : True
135
200
Position : Named
136
201
Default value : None
137
- Accept pipeline input : False
202
+ Accept pipeline input : True (ByPropertyName)
138
203
Accept wildcard characters : False
139
204
` ` `
140
205
@@ -143,7 +208,7 @@ The network watcher resource.
143
208
144
209
` ` ` yaml
145
210
Type : PSNetworkWatcher
146
- Parameter Sets : SetByResource
211
+ Parameter Sets : SetFlowlogByResourceWithoutTA, SetFlowlogByResourceWithTAByResource, SetFlowlogByResourceWithTAByDetails
147
212
Aliases :
148
213
149
214
Required : True
@@ -158,7 +223,7 @@ The name of network watcher.
158
223
159
224
` ` ` yaml
160
225
Type : String
161
- Parameter Sets : SetByName
226
+ Parameter Sets : SetFlowlogByNameWithTAByResource, SetFlowlogByNameWithTAByDetails, SetFlowlogByNameWithoutTA
162
227
Aliases : Name
163
228
164
229
Required : True
@@ -173,7 +238,7 @@ The name of the network watcher resource group.
173
238
174
239
` ` ` yaml
175
240
Type : String
176
- Parameter Sets : SetByName
241
+ Parameter Sets : SetFlowlogByNameWithTAByResource, SetFlowlogByNameWithTAByDetails, SetFlowlogByNameWithoutTA
177
242
Aliases :
178
243
179
244
Required : True
@@ -228,6 +293,78 @@ Accept pipeline input: True (ByPropertyName)
228
293
Accept wildcard characters : False
229
294
` ` `
230
295
296
+ ### -Workspace
297
+ The WS object which is used to store the traffic analytics data.
298
+
299
+ ` ` ` yaml
300
+ Type : IOperationalInsightWorkspace
301
+ Parameter Sets : SetFlowlogByResourceWithTAByResource
302
+ Aliases :
303
+
304
+ Required : True
305
+ Position : Named
306
+ Default value : None
307
+ Accept pipeline input : True (ByPropertyName)
308
+ Accept wildcard characters : False
309
+ ` ` `
310
+
311
+ ` ` ` yaml
312
+ Type : IOperationalInsightWorkspace
313
+ Parameter Sets : SetFlowlogByNameWithTAByResource, SetFlowlogByLocationWithTAByResource
314
+ Aliases :
315
+
316
+ Required : True
317
+ Position : Named
318
+ Default value : None
319
+ Accept pipeline input : True (ByPropertyName)
320
+ Accept wildcard characters : False
321
+ ` ` `
322
+
323
+ ### -WorkspaceGUID
324
+ GUID of the WS which is used to store the traffic analytics data.
325
+
326
+ ` ` ` yaml
327
+ Type : String
328
+ Parameter Sets : SetFlowlogByResourceWithTAByDetails, SetFlowlogByNameWithTAByDetails, SetFlowlogByLocationWithTAByDetails
329
+ Aliases :
330
+
331
+ Required : True
332
+ Position : Named
333
+ Default value : None
334
+ Accept pipeline input : True (ByPropertyName)
335
+ Accept wildcard characters : False
336
+ ` ` `
337
+
338
+ ### -WorkspaceLocation
339
+ Azure Region of the WS which is used to store the traffic analytics data.
340
+
341
+ ` ` ` yaml
342
+ Type : String
343
+ Parameter Sets : SetFlowlogByResourceWithTAByDetails, SetFlowlogByNameWithTAByDetails, SetFlowlogByLocationWithTAByDetails
344
+ Aliases :
345
+
346
+ Required : True
347
+ Position : Named
348
+ Default value : None
349
+ Accept pipeline input : True (ByPropertyName)
350
+ Accept wildcard characters : False
351
+ ` ` `
352
+
353
+ ### -WorkspaceResourceId
354
+ Subscription of the WS which is used to store the traffic analytics data.
355
+
356
+ ` ` ` yaml
357
+ Type : String
358
+ Parameter Sets : SetFlowlogByResourceWithTAByDetails, SetFlowlogByNameWithTAByDetails, SetFlowlogByLocationWithTAByDetails
359
+ Aliases :
360
+
361
+ Required : True
362
+ Position : Named
363
+ Default value : None
364
+ Accept pipeline input : True (ByPropertyName)
365
+ Accept wildcard characters : False
366
+ ` ` `
367
+
231
368
### -Confirm
232
369
Prompts you for confirmation before running the cmdlet.
233
370
0 commit comments