Skip to content

Commit 339b15f

Browse files
authored
establish context for adding filter
1 parent 13b2547 commit 339b15f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ az vm extension set --resource-group resourceGroupName --vm-name virtualMachineN
6161
For Linux virtual machines:
6262

6363
```azurecli
64-
az vm extension set --resource-group resourceGroupName --vm-name virtualMachineName --publisher Microsoft.Azure.NetworkWatcher --name NetworkWatcherAgentLinux--version 1.4
64+
az vm extension set --resource-group resourceGroupName --vm-name virtualMachineName --publisher Microsoft.Azure.NetworkWatcher --name NetworkWatcherAgentLinux --version 1.4
6565
```
6666

6767
### Step 2
@@ -104,6 +104,7 @@ The following sample is an example of the response from running `az vm extension
104104

105105
Once the preceding steps are complete, the packet capture agent is installed on the virtual machine.
106106

107+
107108
### Step 1
108109

109110
Retrieve a storage account. This storage account is used to store the packet capture file.
@@ -114,7 +115,7 @@ az storage account list
114115

115116
### Step 2
116117

117-
Filters can be used to limit the data that is stored by the packet capture. The following example sets up a packet capture with several filters. The first three filters collect outgoing TCP traffic only from local IP 10.0.0.3 to destination ports 20, 80 and 443. The last filter collects only UDP traffic.
118+
At this point, you are ready to create a packet capture. First, let's examine the parameters you may want to configure. Filters are one such parameter that can be used to limit the data that is stored by the packet capture. The following example sets up a packet capture with several filters. The first three filters collect outgoing TCP traffic only from local IP 10.0.0.3 to destination ports 20, 80 and 443. The last filter collects only UDP traffic.
118119

119120
```azurecli
120121
az network watcher packet-capture create --resource-group {resourceGroupName} --vm {vmName} --name packetCaptureName --storage-account {storageAccountName} --filters "[{\"protocol\":\"TCP\", \"remoteIPAddress\":\"1.1.1.1-255.255.255\",\"localIPAddress\":\"10.0.0.3\", \"remotePort\":\"20\"},{\"protocol\":\"TCP\", \"remoteIPAddress\":\"1.1.1.1-255.255.255\",\"localIPAddress\":\"10.0.0.3\", \"remotePort\":\"80\"},{\"protocol\":\"TCP\", \"remoteIPAddress\":\"1.1.1.1-255.255.255\",\"localIPAddress\":\"10.0.0.3\", \"remotePort\":\"443\"},{\"protocol\":\"UDP\"}]"

0 commit comments

Comments
 (0)