Skip to content

Commit f1c5b98

Browse files
committed
fix storage article link
1 parent 3f061c2 commit f1c5b98

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

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

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: halkazwini
66
ms.author: halkazwini
77
ms.service: azure-network-watcher
88
ms.topic: how-to
9-
ms.date: 01/23/2025
9+
ms.date: 01/24/2025
1010

1111
#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.
1212
---
@@ -25,7 +25,7 @@ In this article, you learn how to use the Azure Network Watcher [packet capture]
2525

2626
- Network Watcher Agent VM extension installed on the target virtual machine. Whenever you use Network Watcher packet capture in the Azure portal, the agent is automatically installed on the target VM or scale set if it wasn't previously installed. To update an already installed agent, see [Update Azure Network Watcher extension to the latest version](network-watcher-agent-update.md).
2727

28-
- An Azure storage account with VM outbound TCP connectivity to it over port `443`. If you don't have a storage account, see [Create a storage account using the Azure portal](../storage/common/storage-account-create.md?tabs=azure-portal&toc=/azure/network-watcher/toc.json). The storage account must be accessible from the subnet of the target virtual machine or scale set. For more information, see [Configure Azure Storage firewalls and virtual networks](../storage/common/storage-network-security?tabs=azure-portal&toc=/azure/network-watcher/toc.json).
28+
- An Azure storage account with VM outbound TCP connectivity to it over port `443`. If you don't have a storage account, see [Create a storage account using the Azure portal](../storage/common/storage-account-create.md?tabs=azure-portal&toc=/azure/network-watcher/toc.json). The storage account must be accessible from the subnet of the target virtual machine or scale set. For more information, see [Configure Azure Storage firewalls and virtual networks](../storage/common/storage-network-security.md?tabs=azure-portal&toc=/azure/network-watcher/toc.json).
2929

3030
- Sign in to the [Azure portal](https://portal.azure.com) with your Azure account.
3131

@@ -37,7 +37,7 @@ In this article, you learn how to use the Azure Network Watcher [packet capture]
3737

3838
- Network Watcher Agent VM extension installed on the target virtual machine. For more information, see [Manage Network Watcher Agent VM extension for Windows](network-watcher-agent-windows.md?tabs=powershell) or [Manage Network Watcher Agent VM extension for Linux](network-watcher-agent-linux.md?tabs=powershell).
3939

40-
- An Azure storage account with VM outbound TCP connectivity to it over port `443`. If you don't have a storage account, see [Create a storage account using PowerShell](../storage/common/storage-account-create.md?tabs=azure-powershell&toc=/azure/network-watcher/toc.json). The storage account must be accessible from the subnet of the target virtual machine or scale set. For more information, see [Configure Azure Storage firewalls and virtual networks](../storage/common/storage-network-security?tabs=azure-powershell&toc=/azure/network-watcher/toc.json).
40+
- An Azure storage account with VM outbound TCP connectivity to it over port `443`. If you don't have a storage account, see [Create a storage account using PowerShell](../storage/common/storage-account-create.md?tabs=azure-powershell&toc=/azure/network-watcher/toc.json). The storage account must be accessible from the subnet of the target virtual machine or scale set. For more information, see [Configure Azure Storage firewalls and virtual networks](../storage/common/storage-network-security.md?tabs=azure-powershell&toc=/azure/network-watcher/toc.json).
4141

4242
- Azure Cloud Shell or Azure PowerShell.
4343

@@ -53,7 +53,7 @@ In this article, you learn how to use the Azure Network Watcher [packet capture]
5353

5454
- Network Watcher Agent VM extension installed on the target virtual machine. For more information, see [Manage Network Watcher Agent VM extension for Windows](network-watcher-agent-windows.md?tabs=cli) or [Manage Network Watcher Agent VM extension for Linux](network-watcher-agent-linux.md?tabs=cli).
5555

56-
- An Azure storage account with VM outbound TCP connectivity to it over port `443`. If you don't have a storage account, see [Create a storage account using PowerShell](../storage/common/storage-account-create.md?tabs=azure-cli&toc=/azure/network-watcher/toc.json). The storage account must be accessible from the subnet of the target virtual machine or scale set. For more information, see [Configure Azure Storage firewalls and virtual networks](../storage/common/storage-network-security?tabs=azure-cli&toc=/azure/network-watcher/toc.json).
56+
- An Azure storage account with VM outbound TCP connectivity to it over port `443`. If you don't have a storage account, see [Create a storage account using the Azure CLI](../storage/common/storage-account-create.md?tabs=azure-cli&toc=/azure/network-watcher/toc.json). The storage account must be accessible from the subnet of the target virtual machine or scale set. For more information, see [Configure Azure Storage firewalls and virtual networks](../storage/common/storage-network-security.md?tabs=azure-cli&toc=/azure/network-watcher/toc.json).
5757

5858
- Azure Cloud Shell or Azure CLI.
5959

@@ -72,6 +72,8 @@ If a network security group is associated to the network interface, or subnet th
7272

7373
# [**Portal**](#tab/portal)
7474

75+
To start a capture session, use the following steps:
76+
7577
1. In the search box at the top of the portal, enter ***Network Watcher***. Select **Network Watcher** from the search results.
7678

7779
:::image type="content" source="./media/network-watcher-portal-search.png" alt-text="Screenshot shows how to search for Network Watcher in the Azure portal." lightbox="./media/network-watcher-portal-search.png":::
@@ -87,8 +89,8 @@ If a network security group is associated to the network interface, or subnet th
8789
| **Basic Details** | |
8890
| Subscription | Select the Azure subscription of the virtual machine. |
8991
| Resource group | Select the resource group of the virtual machine. |
90-
| Target type | Select **Virtual machine** or . **Virtual machine scale set**. |
91-
| Target virtual machine scale set | Select the virtual machine scale set. This option is available if you select Virtual machine scale set as the target type. |
92+
| Target type | Select **Virtual machine** or **Virtual machine scale set**. |
93+
| Target virtual machine scale set | Select the virtual machine scale set. <br> This option is available if you select **Virtual machine scale set** as the target type. |
9294
| Target instance | Select the virtual machine or scale set instance. |
9395
| Packet capture name | Enter a name or leave the default name. |
9496
| **Packet capture configuration** | |
@@ -114,7 +116,7 @@ If a network security group is associated to the network interface, or subnet th
114116

115117
:::image type="content" source="./media/packet-capture-manage/add-packet-capture.png" alt-text="Screenshot of Add packet capture in the Azure portal showing available options." lightbox="./media/packet-capture-manage/add-packet-capture.png":::
116118

117-
1. The packet capture will stop once the time limit or the file size (maximum bytes per session) is reached.
119+
1. The packet capture stops once the time limit or the file size (maximum bytes per session) is reached.
118120

119121
# [**PowerShell**](#tab/powershell)
120122

@@ -149,7 +151,7 @@ The following table describes the optional parameters that you can use with the
149151
| `-TotalBytesPerSession` | Set the total number of bytes that are captured. Once the value is reached the packet capture stops. Up to 1 GB (1,073,741,824 bytes) is captured if not used. |
150152
| `-LocalFilePath` | Enter a valid local file path if you want the capture to be saved in the target virtual machine (For example, C:\Capture\myVM_1.cap). If you're using a Linux machine, the path must start with /var/captures. |
151153

152-
The packet capture will stop once the time limit or the file size (maximum bytes per session) is reached.
154+
The packet capture stops once the time limit or the file size (maximum bytes per session) is reached.
153155

154156
# [**Azure CLI**](#tab/cli)
155157

@@ -161,21 +163,21 @@ az network watcher packet-capture create --name 'myVM_1' --resource-group 'myRes
161163
```
162164

163165
> [!NOTE]
164-
> If the storage account is in a different resource group than the virtual machine, use the full resource ID of the storage account instead of its name: `/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/myResourceGroup2/providers/Microsoft.Storage/storageAccounts/mystorageaccount`.
166+
> If the storage account is in a different resource group than the virtual machine, use the full resource ID of the storage account instead of its name such as: `/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/myResourceGroup2/providers/Microsoft.Storage/storageAccounts/mystorageaccount`.
165167
166168
---
167169

168170
## Stop a packet capture
169171

170172
# [**Portal**](#tab/portal)
171173

172-
To manually stop a packet capture session before it reaches its time limit, select the **...** on the right-side of the packet capture, or right-click it, then select **Stop**.
174+
To manually stop a packet capture session before it reaches its time or file size limits, select the ellipsis **...** on the right-side of the packet capture, or right-click it, then select **Stop**.
173175

174176
:::image type="content" source="./media/packet-capture-manage/stop-packet-capture.png" alt-text="Screenshot that shows how to stop a packet capture in the Azure portal." lightbox="./media/packet-capture-manage/stop-packet-capture.png":::
175177

176178
# [**PowerShell**](#tab/powershell)
177179

178-
Use [Stop-AzNetworkWatcherPacketCapture](/powershell/module/az.network/stop-aznetworkwatcherpacketcapture) cmdlet to manually stop a running packet capture session.
180+
To manually stop a packet capture session before it reaches its time or file size limits, use the [Stop-AzNetworkWatcherPacketCapture](/powershell/module/az.network/stop-aznetworkwatcherpacketcapture) cmdlet.
179181

180182
```azurepowershell-interactive
181183
# Manually stop a packet capture session.
@@ -187,9 +189,10 @@ Stop-AzNetworkWatcherPacketCapture -Location 'eastus' -PacketCaptureName 'myVM_1
187189
188190
# [**Azure CLI**](#tab/cli)
189191

190-
Use [az network watcher packet-capture stop](/cli/azure/network/watcher/packet-capture#az-network-watcher-packet-capture-stop) command to manually stop a running packet capture session.
192+
To manually stop a packet capture session before it reaches its time or file size limits, use the [az network watcher packet-capture stop](/cli/azure/network/watcher/packet-capture#az-network-watcher-packet-capture-stop) command.
191193

192194
```azurecli-interactive
195+
# Manually stop a packet capture session.
193196
az network watcher packet-capture stop --location 'eastus' --name 'myVM_1'
194197
```
195198

@@ -206,7 +209,6 @@ Go to the **Packet capture** page of Network Watcher to list existing packet cap
206209

207210
:::image type="content" source="./media/packet-capture-manage/view-packet-capture.png" alt-text="Screenshot that shows how to list and see packet captures in the Azure portal." lightbox="./media/packet-capture-manage/view-packet-capture.png":::
208211

209-
210212
# [**PowerShell**](#tab/powershell)
211213

212214
Use [Get-AzNetworkWatcherPacketCapture](/powershell/module/az.network/get-aznetworkwatcherpacketcapture) cmdlet to retrieve the status of a packet capture (running or completed).
@@ -257,7 +259,7 @@ The following example is the output from the `az network watcher packet-capture
257259

258260
# [**Portal**](#tab/portal)
259261

260-
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).
262+
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.
261263

262264
To download a packet capture file saved to Azure storage, follow these steps:
263265

@@ -280,7 +282,7 @@ To download a packet capture file saved to the virtual machine (VM), connect to
280282
281283
# [**PowerShell**](#tab/powershell)
282284
283-
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).
285+
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.
284286
285287
If a storage account is specified, capture files are saved to the storage account at the following path:
286288
@@ -300,7 +302,7 @@ Get-AzStorageBlobContent -Container 'network-watcher-logs' -Blob '/subscriptions
300302
301303
# [**Azure CLI**](#tab/cli)
302304

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).
305+
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.
304306

305307
If a storage account is specified, capture files are saved to the storage account at the following path:
306308

0 commit comments

Comments
 (0)