How to connect to Azure VM

This Azure tutorial will discuss different ways to connect to Azure VM.

How to connect to Azure VM

Let’s discuss how to access the Azure virtual machine (VM), which I have already created an Azure VM from the Azure portal.

Follow the below steps to access the VM

1. Login to https://portal.azure.com/

2. Search for Virtual machines there.

How to access the virtual machine in azure

3. You will see the list of VMs created in your Azure subscription. It will show the VM name, Type, Status, ResourceGroup, Location, etc.

how to access azure virtual machine

4. Now click on the VM name. “MyNewVM” in my case. You can see the details of your virtual machine like Public IP address, status, Computer name, Operating system, Size, etc.

how to access azure vm

5. The next step is to click the “Connect” button and select “RDP” from the options.

connect to azure vm

6. Now, you can see the IP address and port number of your VM. By default, it will populate with the correct IP and Port number of your VM, but you can cross-check and choose the appropriate one in case it is wrong and then click on the “Download RDP File” button.

how to connect azure vm

7. You can see how the RDP file will get downloaded. The name will be “YourVMname.rdp”.”MyNewVM.RDP” got downloaded in my case.

Access to azure VM

8. Now open the downloaded RDP file. Select the Connect button from the Remote Desktop Connection window.

how to view virtual machines in azure

9. Now, enter your credentials to connect to the Azure VM.

how to connect to azure virtual machine

10. Select the Yes option from the below window. Now, you should be able to connect to your VM.

Error connecting to my Azure virtual machine

Sometimes at Step 8, after clicking on the connect button from the Remote Desktop Connection window, you might get the error “Remote desktop cannot connect to the remote computer“. You can fix the error by following the same link. After fixing this issue, you should be able to connect without any issues.

How to connect Azure VM (virtual machine) using PowerShell