Connect to an Azure VM Using RDP

Tried connecting on to the Windows VM you just created to be greeted with a timeout message?

This is because you need to open up the port to connect to your VM. This is done by configuring Network Security Group.

Simply go to the Networking tab of your VM and enable the port 3389 which is the default port for RDP in Windows. This needs to be configured as an inbound rule.

Configure the rule as follows:

  • Service: RDP 
  • Protocol: TCP
  • Port: 3389
  • Source: Your IP address or Any

  • Azure Network Security Group (NSG) rules are processed based on priority.

    • Lower number = Higher priority

    Always ensure your allow rule has the correct priority.


    Once this is setup, you can go to the Connect tab of your VM, download the RDP file and connect using your admin credentials.

    0 Comments