Skip to content

Commit 53a14a9

Browse files
authored
Update Set-AzureRmNetworkWatcherConfigFlowLog.md
1 parent 3b595f5 commit 53a14a9

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/ResourceManager/Network/Commands.Network/help/Set-AzureRmNetworkWatcherConfigFlowLog.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,16 @@ Currently Network Security Groups are supported for flow logging.
3737
PS C:\> $NW = Get-AzurermNetworkWatcher -ResourceGroupName NetworkWatcherRg -Name NetworkWatcher_westcentralus
3838
PS C:\> $nsg = Get-AzureRmNetworkSecurityGroup -ResourceGroupName NSGRG -Name appNSG
3939
PS C:\> $storageId = "/subscriptions/bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb/resourceGroups/NSGRG/providers/Microsoft.Storage/storageAccounts/contosostorageacct123"
40-
PS C:\> $storagePath = "https://contosostorageacct123.blob.core.windows.net/troubleshoot"
4140
4241
43-
PS C:\>Start-AzureRmNetworkWatcherResourceTroubleshooting -NetworkWatcher $networkWatcher -TargetResourceId $target -StorageId $storageAccount.id -StoragePath $storagePath
42+
PS C:\> Set-AzureRmNetworkWatcherConfigFlowLog -NetworkWatcher $NW -TargetResourceId $nsg.Id -EnableFlowLog $true -StorageAccountId $storageID
4443
4544
TargetResourceId : /subscriptions/bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb/resourceGroups/NSGRG/providers/Microsoft.Network/networkSecurityGroups/appNSG
46-
Properties : {
47-
"Enabled": true,
48-
"RetentionPolicy": {
49-
"Days": 0,
50-
"Enabled": false
51-
},
52-
"StorageId": "/subscriptions/bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb/resourceGroups/NSGRG/providers/Microsoft.Storage/storageAccounts/contosostorageacct123"
45+
StorageId : /subscriptions/bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb/resourceGroups/NSGRG/providers/Microsoft.Storage/storageAccounts/contosostorageacct123
46+
Enabled : True
47+
RetentionPolicy : {
48+
"Days": 0,
49+
"Enabled": false
5350
}
5451
```
5552

@@ -243,4 +240,4 @@ Keywords: azure, azurerm, arm, resource, management, manager, network, networkin
243240
[Get-AzureRmNetworkWatcherSecurityGroupView]()
244241
[Get-AzureRmNetworkWatcherTopology]()
245242
[Start-AzureRmNetworkWatcherResourceTroubleshooting]()
246-
[Get-AzureRmNetworkWatcherTroubleshootingResult]()
243+
[Get-AzureRmNetworkWatcherTroubleshootingResult]()

0 commit comments

Comments
 (0)