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
Copy file name to clipboardExpand all lines: articles/network-watcher/packet-capture-manage.md
+17-22Lines changed: 17 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,19 @@
1
1
---
2
-
title: Manage packet captures for VMs
2
+
title: Manage packet captures
3
3
titleSuffix: Azure Network Watcher
4
4
description: Learn how to start, stop, download, and delete Azure virtual machines packet captures with the packet capture feature of Network Watcher.
5
5
author: halkazwini
6
6
ms.author: halkazwini
7
7
ms.service: azure-network-watcher
8
8
ms.topic: how-to
9
-
ms.date: 01/31/2025
9
+
ms.date: 02/07/2025
10
10
11
11
#CustomerIntent: As an administrator, I want to capture IP packets to and from a virtual machine (VM) so I can review and analyze the data to help diagnose and solve network problems.
12
12
---
13
13
14
-
# Manage packet captures with Azure Network Watcher
14
+
# Start, stop, download, and delete packet captures with Azure Network Watcher
15
15
16
-
In this article, you learn how to use the Azure Network Watcher [packet capture](packet-capture-overview.md) feature to remotely configure, start, stop, download, and delete virtual machine packet captures.
16
+
In this article, you learn how to use the Azure Network Watcher [packet capture](packet-capture-overview.md) feature to remotely configure, start, stop, download, and delete packet captures.
17
17
18
18
## Prerequisites
19
19
@@ -298,9 +298,9 @@ The following example is the output from the `az network watcher packet-capture
298
298
299
299
## Download a packet capture
300
300
301
-
# [**Portal**](#tab/portal)
301
+
After your packet capture session completes, the resulting capture file is saved to Azure Storage, a local file on the target virtual machine, or both. The storage destination for the packet capture is specified during its creation. For more information, see [Start a packet capture](#start-a-packet-capture) section.
302
302
303
-
After concluding your packet capture session, the resulting capture file is saved to Azure storage, a local file on the target virtual machine or both. The storage destination for the packet capture is specified during its creation. For more information, see [Start a packet capture](#start-a-packet-capture) section.
303
+
# [**Portal**](#tab/portal)
304
304
305
305
To download a packet capture file saved to Azure storage, follow these steps:
306
306
@@ -312,19 +312,14 @@ To download a packet capture file saved to Azure storage, follow these steps:
312
312
313
313
1. In the blob page, select **Download**.
314
314
315
-
> [!NOTE]
316
-
> You can also download capture files from the storage account container using the Azure portal or Storage Explorer<sup>1</sup> at the following path:
> <sup>1</sup> 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).
321
315
322
-
To download a packet capture file saved to the virtual machine (VM), connect to the VM and download the file from the local path specified during the packet capture creation.
316
+
You can also download capture files by directly going to the storage account container at the following path:
After concluding your packet capture session, the resulting capture file is saved to Azure storage, a local file on the target virtual machine or both. The storage destination for the packet capture is specified during its creation. For more information, see [Start a packet capture](#start-a-packet-capture) section.
327
-
328
323
If a storage account is specified, capture files are saved to the storage account at the following path:
329
324
330
325
```url
@@ -338,13 +333,8 @@ To download a packet capture from Azure storage to the local disk, use [Get-AzSt
> You can also download the capture file 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).
343
-
344
336
# [**Azure CLI**](#tab/cli)
345
337
346
-
After concluding your packet capture session, the resulting capture file is saved to Azure storage, a local file on the target virtual machine or both. The storage destination for the packet capture is specified during its creation. For more information, see [Start a packet capture](#start-a-packet-capture) section.
347
-
348
338
If a storage account is specified, capture files are saved to the storage account at the following path:
349
339
350
340
```url
@@ -358,10 +348,15 @@ To download a packet capture from Azure storage to the local disk, use [az stora
358
348
az storage blob download --container-name 'network-watcher-logs' --blob-url '/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourcegroups/myresourcegroup/providers/microsoft.compute/virtualmachines/myvm/2024/01/25/packetcapture_22_44_54_342.cap' --file 'C:\Capture\myVM_1.cap'
359
349
```
360
350
351
+
---
352
+
361
353
> [!NOTE]
362
-
> You can also download the capture file 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).
354
+
> You can use Azure Storage Explorer to download capture files from the storage account container. 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).
363
355
364
-
---
356
+
> [!IMPORTANT]
357
+
> During the packet capture session, the capture file might not immediately appear in the storage account container because it's initially saved to a temporary location. The file is transferred to its final location after the capture session is completed.
358
+
359
+
To download a packet capture file saved to the virtual machine (VM), connect to the VM and download the file from the local path specified during the packet capture creation.
0 commit comments