Home >System Tutorial >Windows Series >3 Ways to Solve Azure VM Connectivity Issues

3 Ways to Solve Azure VM Connectivity Issues

Joseph Gordon-Levitt
Joseph Gordon-LevittOriginal
2024-10-03 06:29:30704browse

How to Fix Azure VM Connectivity Issues Between Two VMs

Arguably the most common of all Azure connectivity issues is when two VMs on the same virtual network can’t connect with one another. There are numerous potential causes of this, but these steps should resolve the issue:

Step 1: Download “TCping” to your VM.

Step 2: Launch Command Prompt.

Step 3: Use the following command: “tcping64.exe -t <destination VM address> 3389” to ping the location where you downloaded TCping. (Replace the “destination VM address” part with the name of the folder).

3 Ways to Solve Azure VM Connectivity Issues

Step 4: If that worked, move to Step 5. Otherwise, check your “Inbound port rules” on each VM and ensure there aren’t any matching blocking rules that could interfere with the connection, then run the TCping check again.

Step 5: Run a Remote Desktop connection to your VM by going into Azure, clicking “Virtual Machines,” selecting the VM you’re trying to connect, and hitting the “Connect” button.

3 Ways to Solve Azure VM Connectivity Issues

3 Ways to Solve Azure VM Connectivity Issues

Step 6: Try a connection check through PowerShell and the Azure Network Watcher and review the response.

Step 7: The Hops section of your connection check should display the source or issues behind your connectivity problem. You can then identify and fix each issue, using Microsoft’s own table of recommended actions.

Step 8: Run the connectivity check one last time, once you’ve taken resolution steps, to confirm it’s all fixed.

How to Resolve Azure Connection Issues with Second Network Adapters

You may also struggle to connect to virtual machine Azure second adapters on the same network. Here’s how to resolve that:

Step 1: Go to whichever VM has the secondary adapter, and load up a Command Prompt on it.

3 Ways to Solve Azure VM Connectivity Issues

Step 2: Run this command: “Route add 0.0.0.0 mask 0.0.0.0 -p <Gateway IP>” and replace the “Gateway IP” part with your secondary IP.

3 Ways to Solve Azure VM Connectivity Issues

Step 3: Launch Route Print and then try to connect.

Step 4: If that didn’t work, verify your “Inbound port rules” for both adapters (first and second). Check there aren’t any matching blocking rules that could cause clashes or interfere with the connection.

3 Ways to Solve Azure VM Connectivity Issues

Step 5: Run a connection check to the second adapter and then a secondary check across the full environment through the Azure Network Watcher.

Step 6: Check the “Hops” to see what’s wrong, and follow Microsoft’s recommended steps to resolve it.

Fix Azure VM Connectivity Issues to the Internet

Some VMs also just can’t connect to the internet for one reason or another. Here’s how to fix that:

Step 1: Go to the Resource Explorer.

Step 2: Find “Subscriptions” and open it, then locate which VM is having an issue.

Step 3: Click on “Microsoft Network,” then go to “Network Interfaces” and pick the problematic interface.

Step 4: Select “Read/Write,” then choose “Edit.”

" alt="Azure VM edit" width="800" height="379" data-src="/uploads/20241003/172790647266fdc2a8ea127.jpg" data-srcset="/uploads/20241003/172790647266fdc2a8ea127.jpg 800w, https://www.guidingtech.com/wp-content/uploads/Azure-VM-edit-300x142.jpg 300w, https://www.guidingtech.com/wp-content/uploads/Azure-VM-edit-768x364.jpg 768w, https://www.guidingtech.com/wp-content/uploads/Azure-VM-edit-750x355.jpg 750w" data-sizes="(max-width: 800px) 100vw, 800px">

Step 5: At this stage, you’ll notice the button in the top left changes from “Get” to “Put.” Select your interface and click on the “Put” button.

" alt="Azure VM put" width="800" height="383" data-src="/uploads/20241003/172790647366fdc2a97c248.jpg" data-srcset="/uploads/20241003/172790647366fdc2a97c248.jpg 800w, https://www.guidingtech.com/wp-content/uploads/Azure-VM-put-300x144.jpg 300w, https://www.guidingtech.com/wp-content/uploads/Azure-VM-put-768x368.jpg 768w, https://www.guidingtech.com/wp-content/uploads/Azure-VM-put-750x359.jpg 750w" data-sizes="(max-width: 800px) 100vw, 800px">

Step 6: Refresh and retry the connection.

Step 7: If issues persist, go into the Azure Network Watcher and launch a connection check. Review “Hops” to see what’s going on and take the next best steps according to Microsoft.

The above is the detailed content of 3 Ways to Solve Azure VM Connectivity Issues. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn