Skip to content

Commit 9a2e03d

Browse files
Merge pull request #266297 from halkazwini/nw-vf-ps
Tweak
2 parents 1441c69 + b095617 commit 9a2e03d

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

articles/network-watcher/vnet-flow-logs-powershell.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ author: halkazwini
66
ms.author: halkazwini
77
ms.service: network-watcher
88
ms.topic: how-to
9-
ms.date: 08/16/2023
9+
ms.date: 02/14/2024
1010
ms.custom: devx-track-azurepowershell
11+
12+
#CustomerIntent: As an Azure administrator, I want to log my virtual network IP traffic using Network Watcher VNet flow logs so that I can analyze it later.
1113
---
1214

1315
# Create, change, enable, disable, or delete VNet flow logs using Azure PowerShell
@@ -93,14 +95,17 @@ Get-AzNetworkWatcherFlowLog -NetworkWatcherName NetworkWatcher_eastus -ResourceG
9395

9496
## Download a flow log
9597

96-
To access and download VNet flow logs from your storage account, you can use Azure Storage Explorer. Fore more information, see [Get started with Storage Explorer](../vs-azure-tools-storage-manage-with-storage-explorer.md).
98+
To download VNet flow logs from your storage account, use [Get-AzStorageBlobContent](/powershell/module/az.storage/get-azstorageblobcontent) cmdlet.
9799

98-
VNet flow log files saved to a storage account follow the logging path shown in the following example:
100+
VNet flow log files are saved to the storage account at the following path:
99101

100102
```
101103
https://{storageAccountName}.blob.core.windows.net/insights-logs-flowlogflowevent/flowLogResourceID=/SUBSCRIPTIONS/{subscriptionID}/RESOURCEGROUPS/NETWORKWATCHERRG/PROVIDERS/MICROSOFT.NETWORK/NETWORKWATCHERS/NETWORKWATCHER_{Region}/FLOWLOGS/{FlowlogResourceName}/y={year}/m={month}/d={day}/h={hour}/m=00/macAddress={macAddress}/PT1H.json
102104
```
103105

106+
> [!NOTE]
107+
> You can also access and download VNet flow logs files from the storage account container using the Azure Storage Explorer. Storage Explorer is a standalone app that you can conveniently use to access and work with Azure Storage data. For more information, see [Get started with Storage Explorer](../vs-azure-tools-storage-manage-with-storage-explorer.md).
108+
104109
## Disable traffic analytics on flow log resource
105110

106111
To disable traffic analytics on the flow log resource and continue to generate and save VNet flow logs to storage account, use [Set-AzNetworkWatcherFlowLog](/powershell/module/az.network/set-aznetworkwatcherflowlog).
@@ -138,7 +143,7 @@ To delete a VNet flow log resource, use [Remove-AzNetworkWatcherFlowLog](/powers
138143
Remove-AzNetworkWatcherFlowLog -Name myVNetFlowLog -NetworkWatcherName NetworkWatcher_eastus -ResourceGroupName NetworkWatcherRG
139144
```
140145

141-
## Next steps
146+
## Related content
142147

143148
- To learn about traffic analytics, see [Traffic analytics](traffic-analytics.md).
144149
- To learn how to use Azure built-in policies to audit or enable traffic analytics, see [Manage traffic analytics using Azure Policy](traffic-analytics-policy-portal.md).

0 commit comments

Comments
 (0)