Skip to content

Commit 6d967db

Browse files
Merge pull request #267136 from halkazwini/nw-packet
Network Watcher: Updates: Packet capture overview
2 parents 0dc8a9f + efa74cc commit 6d967db

File tree

5 files changed

+65
-56
lines changed

5 files changed

+65
-56
lines changed

articles/network-watcher/.openpublishing.redirection.network-watcher.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"redirections": [
3+
{
4+
"source_path_from_root": "/articles/network-watcher/network-watcher-packet-capture-overview.md",
5+
"redirect_url": "/azure/network-watcher/packet-capture-overview",
6+
"redirect_document_id": true
7+
},
38
{
49
"source_path_from_root": "/articles/network-watcher/network-watcher-packet-capture-manage-cli.md",
510
"redirect_url": "/azure/network-watcher/packet-capture-vm-cli",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Network Watcher offers seven network diagnostic tools that help troubleshoot and
7474

7575
### Packet capture
7676

77-
**Packet capture** allows you to remotely create packet capture sessions to track traffic to and from a virtual machine (VM) or a virtual machine scale set. For more information, see [packet capture](network-watcher-packet-capture-overview.md) and [Manage packet captures for virtual machines](packet-capture-vm-portal.md).
77+
**Packet capture** allows you to remotely create packet capture sessions to track traffic to and from a virtual machine (VM) or a virtual machine scale set. For more information, see [packet capture](packet-capture-overview.md) and [Manage packet captures for virtual machines](packet-capture-vm-portal.md).
7878

7979
### VPN troubleshoot
8080

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

Lines changed: 0 additions & 54 deletions
This file was deleted.
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
title: Packet capture overview
3+
titleSuffix: Azure Network Watcher
4+
description: Learn about Azure Network Watcher packet capture tool, supported resources, available configurations, limits, and considerations.
5+
author: halkazwini
6+
ms.author: halkazwini
7+
ms.service: network-watcher
8+
ms.topic: concept-article
9+
ms.date: 02/23/2024
10+
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.
12+
---
13+
14+
# Packet capture overview
15+
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.
17+
18+
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.
19+
20+
You can trigger packet captures through the portal, PowerShell, Azure CLI, or REST API. You can also use virtual machine alerts to trigger packet captures. You can choose to save captured data in the local disk or in Azure storage blob.
21+
22+
> [!IMPORTANT]
23+
> Packet capture requires the Network Watcher agent VM extension `AzureNetworkWatcherExtension`. For more information, see:
24+
> - [Network Watcher Agent VM extension for Windows](../virtual-machines/extensions/network-watcher-windows.md?toc=/azure/network-watcher/toc.json).
25+
> - [Network Watcher Agent VM extension for Linux](../virtual-machines/extensions/network-watcher-linux.md?toc=/azure/network-watcher/toc.json).
26+
> - [Update Network Watcher extension to the latest version](../virtual-machines/extensions/network-watcher-update.md?toc=/azure/network-watcher/toc.json).
27+
28+
## Capture configuration
29+
30+
To control the size of captured data, use the following options:
31+
32+
| Property | Description |
33+
| -------- | ----------- |
34+
| **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. |
35+
| **Maximum bytes per session (bytes)** | Total number of bytes that are captured, once the value is reached the session ends. |
36+
| **Time limit (seconds)** | Packet capture session time limit, once the value is reached the session ends. The default value is 18000 seconds (5 hours). |
37+
38+
## Filtering (optional)
39+
40+
Use filters to capture only the traffic that you want to monitor. Filters are based on 5-tuple (protocol, local IP address, remote IP address, local port, and remote port) information:
41+
42+
| Property | Description |
43+
| -------- | ----------- |
44+
| **Protocol** | The protocol to filter for the packet capture. The available values are TCP, UDP, and All. |
45+
| **Local IP address** | This value filters the packet capture to packets where the local IP address matches this filter value. |
46+
| **Local port** | This value filters the packet capture to packets where the local port matches this filter value. |
47+
| **Remote IP address** | This value filters the packet capture to packets where the remote IP matches this filter value. |
48+
| **Remote port** | This value filters the packet capture to packets where the remote port matches this filter value. |
49+
50+
## Considerations
51+
52+
There's a limit of 10,000 parallel packet capture sessions per region per subscription. This limit applies only to the sessions and doesn't apply to the saved packet capture files either locally on the VM or in a storage account. See the [Network Watcher service limits page](../azure-resource-manager/management/azure-subscription-service-limits.md#azure-network-watcher-limits) for a full list of limits.
53+
54+
## Related content
55+
56+
- To learn how to manage packet captures in virtual machines, see [the Azure portal](packet-capture-vm-portal.md), [PowerShell](packet-capture-vm-powershell.md), or [the Azure CLI](packet-capture-vm-cli.md) guides.
57+
- To learn how to manage packet captures in scale sets, see [the Azure portal](network-watcher-packet-capture-manage-portal-vmss.md) or [PowerShell](network-watcher-packet-capture-manage-powershell-vmss.md) guides.
58+
- To learn how to create proactive packet captures based on virtual machine alerts, see [Create an alert triggered packet capture](network-watcher-alert-triggered-packet-capture.md).

articles/network-watcher/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
- name: VPN troubleshoot
5151
href: vpn-troubleshoot-overview.md
5252
- name: Packet capture
53-
href: network-watcher-packet-capture-overview.md
53+
href: packet-capture-overview.md
5454
- name: Effective security rules
5555
href: effective-security-rules-overview.md
5656
- name: NSG flow logs

0 commit comments

Comments
 (0)