You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added a command for showing the Network Watcher extension for a Linux VM, as the difference in naming (e.g. AzureNetworkWatcherExtension for Linux) causes confusion when referencing the name of the extension on Windows. Additionally, I may be mistaken, but I think the existing Step 1 under "Start a packet capture" is unnecessary. "az network watcher show" is invalid. Also, I changed "Start a packet capture" step 2 to retrieve the storage account with "az storage account list" instead of "azure storage account list". Finally, I changed references to 'cmdlet' to 'command' to make it more consistent for the CLI portion of the documentation.
Copy file name to clipboardExpand all lines: articles/network-watcher/network-watcher-packet-capture-manage-cli.md
+15-17Lines changed: 15 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ This article assumes you have the following resources:
50
50
51
51
### Step 1
52
52
53
-
Run the `az vm extension set`cmdlet to install the packet capture agent on the guest virtual machine.
53
+
Run the `az vm extension set`command to install the packet capture agent on the guest virtual machine.
54
54
55
55
For Windows virtual machines:
56
56
@@ -66,12 +66,18 @@ az vm extension set --resource-group resourceGroupName --vm-name virtualMachineN
66
66
67
67
### Step 2
68
68
69
-
To ensure that the agent is installed, run the `vm extension show`cmdlet and pass it the resource group and virtual machine name. Check the resulting list to ensure the agent is installed.
69
+
To ensure that the agent is installed, run the `vm extension show`command and pass it the resource group and virtual machine name. Check the resulting list to ensure the agent is installed.
70
70
71
+
For Windows virtual machines:
71
72
```azurecli
72
73
az vm extension show --resource-group resourceGroupName --vm-name virtualMachineName --name NetworkWatcherAgentWindows
73
74
```
74
75
76
+
For Linux virtual machines:
77
+
```azurecli
78
+
az vm extension show --resource-group resourceGroupName --vm-name virtualMachineName --name AzureNetworkWatcherExtension
79
+
```
80
+
75
81
The following sample is an example of the response from running `az vm extension show`
76
82
77
83
```json
@@ -100,29 +106,21 @@ Once the preceding steps are complete, the packet capture agent is installed on
100
106
101
107
### Step 1
102
108
103
-
The next step is to retrieve the Network Watcher instance. TThe name of the Network Watcher is passed to the `az network watcher show` cmdlet in step 4.
104
-
105
-
```azurecli
106
-
az network watcher show --resource-group resourceGroup --name networkWatcherName
107
-
```
108
-
109
-
### Step 2
110
-
111
109
Retrieve a storage account. This storage account is used to store the packet capture file.
112
110
113
111
```azurecli
114
-
azure storage account list
112
+
az storage account list
115
113
```
116
114
117
-
### Step 3
115
+
### Step 2
118
116
119
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.
Running the `az network watcher packet-capture show-status`cmdlet, retrieves the status of a currently running, or completed packet capture.
178
+
Running the `az network watcher packet-capture show-status`command, retrieves the status of a currently running, or completed packet capture.
181
179
182
180
```azurecli
183
181
az network watcher packet-capture show-status --name packetCaptureName --location {networkWatcherLocation}
184
182
```
185
183
186
-
The following example is the output from the `az network watcher packet-capture show-status`cmdlet. The following example is when the capture is Stopped, with a StopReason of TimeExceeded.
184
+
The following example is the output from the `az network watcher packet-capture show-status`command. The following example is when the capture is Stopped, with a StopReason of TimeExceeded.
0 commit comments