By Ellie / Last Updated November 24, 2022

How do I connect to Azure VM using RDP?

“I have trouble in Azure how to connect to VM. According to what I’ve heard, using Remote Desktop Connection is the simplest way to log on to a virtual machine running Windows Operating System in Windows Azure. Can anyone tell me how do I connect to Azure VM using RDP?”

Connect to Azure VM using RDP

Follow the steps below to connect to Azure VM using RDP.

Step 1. Go to the Azure portal to connect to a VM.

Step 2. Search for and select Virtual machines.

Virtual Machines

Step 3. You will see the list of VM created in your Azure subscription. It will show the VM name, Type, Status, Resource group, etc. Click MyNewVM.

My New VM

Step 4. Now you can able to see the details of your virtual machine like status, Public IP address, Computer name, etc.

VM Information

Step 5. Click Connect and then select RDP from the options.

Connect via RDP

Step 6. Check the IP address and port number of your VM. If they’re correct, click Download RDP file.

Download RDP File

Step 7. Open the downloaded RDP file. Click Connect.

RDP Warn

Step 8. Enter your credentials to connect to the Azure VM.

RDP Credential

Step 9. Click Yes. Now you should be able to connect to your VM.

Cert Warning

Can’t connect to the virtual machine in Azure

Sometimes, you may encounter issues when using Remote Desktop Connection to connect to the virtual machine in Azure. For example, the following error message may prompt. But don’t worry, here we provide you with two methods to troubleshoot it.

Cannot Connect to Remote Computer

Solution 1. Check the status of your virtual machine

Step 1. Go to the Overview tab. You can see the status is “Stopped”.

Connection Error While Connecting to Azure VM

Step 2. Click Start on the top.

Change Status

Step 3. Now you will see the status of the VM is changed to “Running”.

Status Running

Solution 2. Configure Inbound rule for RDP

Step 1. Go to the Connect tab, click RDP, you will see the port that is being used for the RDP connection is 3389. You need to open this port on your virtual machine for an inbound connection.

Connect Port Number

Step 2. Go to the Networking tab, click Add inbound port rule.

Add Inbound Port Rule

Step 3. Fill in the rule as follow, then you should be able to successfully connect to your VM using RDP.

Add Inbound Security Rule

AnyViewer: Connect to Azure VM

If you need to connect to virtual machines in Azure despite network restrictions, you can use third-party remote desktop software. As an example, consider AnyViewer. You can use AnyViewer to remotely connect to your virtual machine from another machine as long as you have AnyViewer installed on it and it is open.

AnyViewer is more adaptable for you in a variety of ways, including the ability to create temporary access for other parties who may need to log in to look at or fix a specific issue, instant chat, phone-to-computer connections, and the ability to provide unattended remote access to users who needs to connect to their other computers frequently. Next, we'll look at how to use AnyViewer to connect to an Azure VM.

Download Freeware Win PCs & Servers
Secure Download

Option 1. Sign up for AnyViewer for unattended remote access with one-click

Step 1. Download, install and launch AnyViewer on both computers. Go to Log in, and then click Sign up. (If you already have signed up on its official website, you can log in directly.)

Log in AnyViewer

Step 2. Fill in the signup information.

Sign Up for AnyViewer

Step 3. Then you can see you successfully logged in to AnyViewer. Your device will automatically be assigned to the account you've logged in.

Free Editions

Step 4. Log in to the same AnyViewer account on the two devices, then you can achieve a direct connection by clicking One-click control.

Connect to My Devices

Note: You can also upgrade your account to a Professional or Enterprise plan. Then you'll have the following rights:

  • You can assign more devices to the same account and then achieve a one-click connection to more computers.
  • You can connect to another computer in privacy mode, which means you can black the screen and block the mouse and keyboard of the remote computer to protect your privacy.

Option 2. Two more connection methods of AnyViewer

To better protect your privacy, you can also achieve remote control via AnyViewer without logging in to it. But we should note you that some features like file transfer and screen share can't be used if you are not logged in to AnyViewer.

Method 1. Send a control request

Step 1. Download, install, and open AnyViewer on both computers. Then you can see your device ID. Input the device ID of the other computer, then click Connect.

Connect

Step 2. There will be a pop-up window, click Send a control request to your partner.

Send a Control Request to Your Partner

Step 3. Then the host computer will receive a pop-up request. Click Allow to make the connection successful.

Request to Control Your Device

Method 2. Input security code

There are two types of security codes:

  • A permanent security code is set by you in advance.
  • A temporary security code is automatically generated and will change every time.

Step 1. On the host computer, go to Settings > Recipient. Tick the third option and then set the security code.

Accept Remote Control

Step 2. On the client computer, input the device ID of the host computer and then click Connect. Then choose Input security code, enter the code and click OK.

Security Code

Conclusion

This post primarily explains how to connect to an Azure VM using RDP and how to troubleshoot the "can't connect to the virtual machine in Azure" issue. You also have the option of using another remote desktop. AnyViewer can be used to connect to a virtual machine in Azure in a more flexible manner.