Skip to content

Commit 3018287

Browse files
committed
add a note about capture file not saved to its destination until session is complete
1 parent 0cbdc0e commit 3018287

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

articles/network-watcher/packet-capture-manage.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Manage packet captures for VMs
2+
title: Manage packet captures
33
titleSuffix: Azure Network Watcher
44
description: Learn how to start, stop, download, and delete Azure virtual machines packet captures with the packet capture feature of Network Watcher.
55
author: halkazwini
@@ -298,9 +298,9 @@ The following example is the output from the `az network watcher packet-capture
298298

299299
## Download a packet capture
300300

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.
302302

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)
304304

305305
To download a packet capture file saved to Azure storage, follow these steps:
306306

@@ -312,19 +312,15 @@ To download a packet capture file saved to Azure storage, follow these steps:
312312

313313
1. In the blob page, select **Download**.
314314

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:
317-
> ```
318-
> https://{storageAccountName}.blob.core.windows.net/network-watcher-logs/subscriptions/{subscriptionId}/resourcegroups/{storageAccountResourceGroup}/providers/microsoft.compute/virtualmachines/{virtualMachineName}/{year}/{month}/{day}/packetcapture_{UTCcreationTime}.cap
319-
> ```
320-
> <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).
321315

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 from the storage account container using the Azure portal or Storage Explorer<sup>1</sup> at the following path:
317+
```
318+
https://{storageAccountName}.blob.core.windows.net/network-watcher-logs/subscriptions/{subscriptionId}/resourcegroups/{storageAccountResourceGroup}/providers/microsoft.compute/virtualmachines/{virtualMachineName}/{year}/{month}/{day}/packetcapture_{UTCcreationTime}.cap
319+
```
320+
<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).
323321

324322
# [**PowerShell**](#tab/powershell)
325323

326-
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-
328324
If a storage account is specified, capture files are saved to the storage account at the following path:
329325

330326
```url
@@ -343,8 +339,6 @@ Get-AzStorageBlobContent -Container 'network-watcher-logs' -Blob '/subscriptions
343339
344340
# [**Azure CLI**](#tab/cli)
345341

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-
348342
If a storage account is specified, capture files are saved to the storage account at the following path:
349343

350344
```url
@@ -363,6 +357,11 @@ az storage blob download --container-name 'network-watcher-logs' --blob-url '/su
363357
364358
---
365359

360+
> [!NOTE]
361+
> 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.
362+
363+
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.
364+
366365
## Delete a packet capture
367366

368367
# [**Portal**](#tab/portal)

0 commit comments

Comments
 (0)