Skip to content

Commit 839f0e9

Browse files
Merge pull request #213700 from ChaitanyaNaykodi-MSFT/patch-130
(AzureCXP) fixed typo
2 parents d648afc + e3385ad commit 839f0e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ az storage account list
115115
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.
116116

117117
```azurecli-interactive
118-
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\"}]"
118+
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.255\",\"localIPAddress\":\"10.0.0.3\", \"remotePort\":\"20\"},{\"protocol\":\"TCP\", \"remoteIPAddress\":\"1.1.1.1-255.255.255.255\",\"localIPAddress\":\"10.0.0.3\", \"remotePort\":\"80\"},{\"protocol\":\"TCP\", \"remoteIPAddress\":\"1.1.1.1-255.255.255.255\",\"localIPAddress\":\"10.0.0.3\", \"remotePort\":\"443\"},{\"protocol\":\"UDP\"}]"
119119
```
120120

121121
The following example is the expected output from running the `az network watcher packet-capture create` command.
@@ -129,21 +129,21 @@ The following example is the expected output from running the `az network watche
129129
"localIpAddress": "10.0.0.3",
130130
"localPort": "",
131131
"protocol": "TCP",
132-
"remoteIpAddress": "1.1.1.1-255.255.255",
132+
"remoteIpAddress": "1.1.1.1-255.255.255.255",
133133
"remotePort": "20"
134134
},
135135
{
136136
"localIpAddress": "10.0.0.3",
137137
"localPort": "",
138138
"protocol": "TCP",
139-
"remoteIpAddress": "1.1.1.1-255.255.255",
139+
"remoteIpAddress": "1.1.1.1-255.255.255.255",
140140
"remotePort": "80"
141141
},
142142
{
143143
"localIpAddress": "10.0.0.3",
144144
"localPort": "",
145145
"protocol": "TCP",
146-
"remoteIpAddress": "1.1.1.1-255.255.255",
146+
"remoteIpAddress": "1.1.1.1-255.255.255.255",
147147
"remotePort": "443"
148148
},
149149
{

0 commit comments

Comments
 (0)