Skip to content

Commit b5ec06c

Browse files
Merge pull request #312197 from halkazwini/nw-capture
Continuous capture
2 parents f9af1d5 + e1b6d88 commit b5ec06c

1 file changed

Lines changed: 46 additions & 5 deletions

File tree

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

Lines changed: 46 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@ author: halkazwini
66
ms.author: halkazwini
77
ms.service: azure-network-watcher
88
ms.topic: concept-article
9-
ms.date: 03/21/2025
9+
ms.date: 02/24/2026
1010

11-
#CustomerIntent: As an administrator, I want to learn about Azure Network Watcher packet capture tool so that I can use it to capture IP packets to and from virtual machines (VMs) and scale sets to diagnose and solve network problems.
1211
# Customer intent: As an administrator, I want to understand the features and configurations of the packet capture tool in Azure Network Watcher, so that I can effectively diagnose network issues and monitor traffic on my virtual machines.
1312
---
1413

1514
# Packet capture overview
1615

17-
Azure Network Watcher packet capture allows you to create packet capture sessions to track traffic to and from a virtual machine (VM) or a scale set. Packet capture helps to diagnose network anomalies both reactively and proactively. Other uses include gathering network statistics, gaining information on network intrusions, debugging client-server communications and more.
16+
Azure Network Watcher packet capture allows you to create packet capture sessions to track traffic to and from a virtual machine (VM) or a scale set. Packet capture helps to diagnose network anomalies both reactively and proactively. Other uses include gathering network statistics, gaining information on network intrusions, debugging client-server communications, and more.
1817

1918
Packet capture is an extension that is remotely started through Network Watcher. This capability saves time and eases the burden of running a packet capture manually on the desired virtual machine or virtual machine scale set instances.
2019

@@ -26,15 +25,45 @@ You can trigger packet captures through the portal, PowerShell, Azure CLI, or RE
2625
> - [Network Watcher Agent VM extension for Linux](network-watcher-agent-linux.md).
2726
> - [Update Network Watcher extension to the latest version](network-watcher-agent-update.md).
2827
28+
## Continuous packet capture (preview)
29+
30+
> [!IMPORTANT]
31+
> Continuous packet capture is currently in PREVIEW.
32+
> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
33+
34+
Continuous packet capture allows you to persistently monitor network traffic using a ring buffer–based mechanism. Unlike standard packet captures that stop after reaching a specific time or file size, continuous capture is designed to run over extended durations, making it ideal for diagnosing intermittent or long-tail issues. Currently, you can configure continuous packet capture using the [Azure portal](packet-capture-manage.md?tabs=portal#start-a-packet-capture).
35+
36+
### How it works
37+
38+
When continuous packet capture is enabled:
39+
40+
- Captured packets are written to a rotating set of files on the target VM's local storage or storage account.
41+
42+
- You can configure the maximum number of files and the size of each file.
43+
44+
- Once the file count limit is reached, the oldest file is automatically deleted to allow space for new packets, maintaining a continuous stream of recent data.
45+
46+
- The capture runs for the user-specified time duration, or a maximum of seven days, whichever is earlier.
47+
48+
This ring buffer–style storage helps reduce manual intervention and avoid excessive storage consumption while ensuring that recent traffic is always available for review.
49+
2950
## Capture configuration
3051

3152
To control the size of captured data, use the following options:
3253

3354
| Property | Description |
3455
| -------- | ----------- |
3556
| **Maximum bytes per packet (bytes)** | The number of bytes from each packet. All bytes are captured if left blank. Enter 34 if you only need to capture IPv4 header. |
36-
| **Maximum bytes per session (bytes)** | Total number of bytes that are captured, once the value is reached the session ends. |
37-
| **Time limit (seconds)** | Packet capture session time limit, once the value is reached the session ends. The default value is 18000 seconds (5 hours). |
57+
| **Time limit per session (seconds)** | Packet capture session time limit. Once the value is reached, the session ends. The default value is 18000 seconds (5 hours). |
58+
59+
If you're using continuous capture (preview), use the following options to control the size of captured data:
60+
61+
| Property | Description |
62+
| -------- | ----------- |
63+
| **Maximum bytes per packet (bytes)** | The number of bytes from each packet. All bytes are captured if left blank or set to 0. Enter 34 if you only need to capture IPv4 header. |
64+
| **New files created** | Total files that can be created. The default value is 10. The maximum value is 10,000.|
65+
| **Bytes per file** | Total number of bytes per file. The default value is 100 MB. The maximum value is 4 GB. |
66+
| **Time limit per session (seconds)** | Packet capture session time limit. Once the value is reached, the session ends. The default value is 86400 seconds (1 day). The maximum value is 604800 seconds (7 days). |
3867

3968
## Filtering (optional)
4069

@@ -54,6 +83,18 @@ Use filters to capture only the traffic that you want to monitor. Filters are ba
5483

5584
- Packet capture uses shared access signature (SAS) tokens to access the storage account. Key access must be enabled on the storage account to authorize packet capture's SAS tokens. If key access isn't enabled, packet captures can only be saved to the virtual machine's local disk.
5685

86+
- When using filters, ensure that relevant ports, IPs, and protocols are captured to optimize storage and analysis.
87+
88+
### Continuous capture considerations
89+
90+
In addition to the previous considerations, keep the following considerations in mind when using continuous packet capture (preview):
91+
92+
- Continuous capture is available only for supported VM and virtual machine scale set SKUs and regions.
93+
94+
- The target VM must have sufficient space, or the connected storage account must have appropriate quota to accommodate capture data.
95+
96+
- Captures with high packet volumes might generate large data sizes quickly. Choose file size and count accordingly to manage buffer length and retention.
97+
5798
## Related content
5899

59100
- To learn how to manage packet captures, see [Manage packet captures with Azure Network Watcher](packet-capture-manage.md).

0 commit comments

Comments
 (0)