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
Copy file name to clipboardExpand all lines: articles/network-watcher/connection-troubleshoot-cli.md
+157-3Lines changed: 157 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,18 +40,18 @@ In this article, you learn how to use the connection troubleshoot feature of Azu
40
40
> - To install the extension on a Linux virtual machine, see [Network Watcher agent VM extension for Linux](../virtual-machines/extensions/network-watcher-linux.md?toc=/azure/network-watcher/toc.json&bc=/azure/network-watcher/breadcrumb/toc.json).
41
41
> - To update an already installed extension, see [Update Network Watcher agent VM extension to the latest version](../virtual-machines/extensions/network-watcher-update.md?toc=/azure/network-watcher/toc.json&bc=/azure/network-watcher/breadcrumb/toc.json).
42
42
43
-
## Check connectivity to a virtual machine
43
+
## Test connectivity to a virtual machine
44
44
45
45
In this section, you test the remote desktop port (RDP) connectivity from one virtual machine to another virtual machine in the same virtual network.
46
46
47
-
Use [az network watcher test-connectivity](/cli/azure/network/watcher#az-network-watcher-test-connectivity) to run connection troubleshoot diagnostic tests to check the connectivity to a virtual machine over port 3389:
47
+
Use [az network watcher test-connectivity](/cli/azure/network/watcher#az-network-watcher-test-connectivity) to run connection troubleshoot diagnostic tests to test the connectivity to a virtual machine over port 3389:
48
48
49
49
```azurecli-interactive
50
50
# Test connectivity between two virtual machines that are in the same resource group over port 3389.
If the virtual machines aren't in the same resource group, then use their resource IDs instead of the names:
54
+
If the virtual machines aren't in the same resource group, use their resource IDs instead of their names:
55
55
56
56
```azurecli-interactive
57
57
# Test connectivity between two virtual machines that are in two different resource groups over port 3389.
@@ -118,6 +118,7 @@ az network watcher test-connectivity --source-resource '/subscriptions/abcdef01-
118
118
}
119
119
```
120
120
121
+
121
122
- Connection status is **Reachable** (destination virtual machine is reachable over port 3389).
122
123
- 66 probes were successfully sent to the destination virtual machine.
123
124
- There are two hopes in the path between the two virtual machines (no appliances or other resources in the path between the two VMs).
@@ -194,11 +195,14 @@ az network watcher test-connectivity --source-resource '/subscriptions/abcdef01-
194
195
}
195
196
```
196
197
198
+
197
199
- Connection status is **Unreachable** (destination virtual machine is unreachable over port 3389).
198
200
- 30 probes were sent and failed to reach the destination virtual machine.
199
201
- There are two hopes in the path between the two virtual machines (no appliances or other resources in the path between the two VMs).
200
202
- Inbound connectivity to the destination virtual machine is denied by the security rule `Deny3389Inbound` in the network security group `VM2-nsg`.
201
203
204
+
**Solution**: Update the network security group on the destination virtual machine to allow inbound RDP traffic.
205
+
202
206
- If the source virtual machine has a network security group that's denying RDP connections to the destination, you see the following results:
203
207
204
208
```json
@@ -272,11 +276,14 @@ az network watcher test-connectivity --source-resource '/subscriptions/abcdef01-
272
276
}
273
277
```
274
278
279
+
275
280
- Connection status is **Unreachable** (destination virtual machine is unreachable over port 3389).
276
281
- 30 probes were sent and failed to reach the destination virtual machine.
277
282
- There are two hopes in the path between the two virtual machines (no appliances or other resources in the path between the two VMs).
278
283
- Outbound connectivity from the source virtual machine is denied by the security rule `Deny3389Outbound` in the network security group `VM1-nsg`.
279
284
285
+
**Solution**: Update the network security group on the source virtual machine to allow outbound RDP traffic.
286
+
280
287
- If the operating system on the destination virtual machine doesn't accept incoming connections on port 3389, you see the following results:
281
288
282
289
```json
@@ -349,6 +356,153 @@ az network watcher test-connectivity --source-resource '/subscriptions/abcdef01-
349
356
- There are two hopes in the path between the two virtual machines (no appliances or other resources in the path between the two VMs).
350
357
- Port 3389 isn't reachable on the destination virtual machine. The output has `NoListenerOnDestination` and `GuestFirewall` errors on the destination virtual machine.
351
358
359
+
**Solution**: Configure the operating system on the destination virtual machine to accept inbound RDP traffic.
360
+
361
+
## Test connectivity to a website
362
+
363
+
In this section, you test connectivity between a virtual machine and a website.
364
+
365
+
Use [az network watcher test-connectivity](/cli/azure/network/watcher#az-network-watcher-test-connectivity) to run connection troubleshoot to test the connectivity to `www.bing.com`:
366
+
367
+
```azurecli-interactive
368
+
# Test connectivity between two virtual machines that are in the same resource group over port 3389.
0 commit comments