Troubleshoot connections with Azure Network Watcher using the Azure portal
In this article, you learn how to use Azure Network Watcher connection troubleshoot to diagnose and troubleshoot connectivity issues.
Prerequisites
- An Azure account with an active subscription. Create an account for free.
- Virtual machines (VMs) to troubleshoot connections with.
Important
Connection troubleshoot requires that the virtual machine you troubleshoot from has the AzureNetworkWatcherExtension
extension installed. The extension is not required on the destination virtual machine.
- To install the extension on a Windows VM, see Azure Network Watcher Agent virtual machine extension for Windows.
- To install the extension on a Linux VM, see Azure Network Watcher Agent virtual machine extension for Linux.
Test connectivity between two connected virtual machines
In this section, you test connectivity between two connected virtual machines.
Sign in to the Azure portal.
In the search box at the top of the portal, enter network watcher. Select Network Watcher in the search results.
Under Network diagnostic tools, select Connection troubleshoot. Enter or select the following information:
Setting Value Source Subscription Select your Azure subscription. Resource group Select myResourceGroup. Source type Select Virtual machine. Virtual machine Select VM1. Destination Destination type Select Select a virtual machine. Resource group Select myResourceGroup. Virtual machine Select VM2. Probe Settings Preferred IP version Select IPv4. Protocol Select TCP. Destination port Enter 80. Connection Diagnostics Diagnostics tests Select Select all. Select Test connection.
The test results show that the two virtual machines are communicating with no issues:
- Network security group rules allow traffic between the two virtual machines.
- The two virtual machines are directly connected (VM2 is the next hop of VM1).
- Azure default system route is used to route traffic between the two virtual machines (Route table ID: System route).
- 66 probes were successfully sent with average latency of 2 ms.
Troubleshoot connectivity issue between two virtual machines
In this section, you test connectivity between two virtual machines that have connectivity issue.
Sign in to the Azure portal.
In the search box at the top of the portal, enter network watcher. Select Network Watcher in the search results.
Under Network diagnostic tools, select Connection troubleshoot. Enter or select the following information:
Setting Value Source Subscription Select your Azure subscription. Resource group Select myResourceGroup. Source type Select Virtual machine. Virtual machine Select VM1. Destination Destination type Select Select a virtual machine. Resource group Select myResourceGroup. Virtual machine Select VM3. Probe Settings Preferred IP version Select IPv4. Protocol Select TCP. Destination port Enter 80. Connection Diagnostics Diagnostics tests Select Select all. Select Test connection.
The test results show that the two virtual machines aren't communicating:
- The two virtual machines aren't connected (no probes were sent from VM1 to VM3).
- There's no route between the two virtual machines (Next hop type: None).
- Azure default system route is the route table used (Route table ID: System route).
- Network security group rules allow traffic between the two virtual machines.
Test connectivity with www.bing.com
In this section, you test connectivity between a virtual machines and www.bing.com
.
Sign in to the Azure portal.
In the search box at the top of the portal, enter network watcher. Select Network Watcher in the search results.
Under Network diagnostic tools, select Connection troubleshoot. Enter or select the following information:
Setting Value Source Subscription Select your Azure subscription. Resource group Select myResourceGroup. Source type Select Virtual machine. Virtual machine Select VM1. Destination Destination type Select Specify manually. Resource group Enter www.bing.com. Probe Settings Preferred IP version Select IPv4. Protocol Select TCP. Destination port Enter 443. Connection Diagnostics Diagnostics tests Select Connectivity. Select Test connection.
The test results show that
www.bing.com
is reachable from VM1 virtual machine:- Connectivity test is successful with 66 probes sent with an average latency of 3 ms.
Next steps
Learn how to automate virtual machines packet captures
Feedback
Submit and view feedback for