Connect using Remote Desktop to an Azure VM running Windows - Azure Virtual Machines (2024)

  • Article

Applies to: ✔️ Windows VMs ✔️ Flexible scale sets

You can create a remote desktop connection to a virtual machine (VM) running Windows in Azure.

To connect to a Windows VM from a Mac, you will need to install an RDP client for Mac such as Microsoft Remote Desktop.

Prerequisites

  • In order to connect to a Windows Virtual Machine via RDP you need TCP connectivity to the machine on the port where Remote Desktop service is listening (3389 by default). You can validate an appropriate port is open for RDP using the troubleshooter or by checking manually in your VM settings. To check if the TCP port is open (assuming default):

    1. On the page for the VM, select Networking from the left menu.
    2. On the Networking page, check to see if there is a rule which allows TCP on port 3389 from the IP address of the computer you are using to connect to the VM. If the rule exists, you can move to the next section.
    3. If there isn't a rule, add one by selecting Add Inbound port rule.
    4. From the Service dropdown select RDP.
    5. Edit Priority and Source if necessary
    6. For Name, type Port_3389
    7. When finished, select Add
    8. You should now have an RDP rule in the table of inbound port rules.
  • Your VM must have a public IP address. To check if your VM has a public IP address, select Overview from the left menu and look at the Networking section. If you see an IP address next to Public IP address, then your VM has a public IP. To learn more about adding a public IP address to an existing VM, see Associate a public IP address to a virtual machine

  • Verify your VM is running. On the Overview tab, in the essentials section, verify the status of the VM is Running. To start the VM, select Start at the top of the page.

Connect to the virtual machine

  1. Go to the Azure portal to connect to a VM. Search for and select Virtual machines.

  2. Select the virtual machine from the list.

  3. At the beginning of the virtual machine page, select Connect.

  4. On the Connect to virtual machine page, select RDP, and then select the appropriate IP address and Port number. In most cases, the default IP address and port should be used. Select Download RDP File. If the VM has a just-in-time policy set, you first need to select the Request access button to request access before you can download the RDP file. For more information about the just-in-time policy, see Manage virtual machine access using the just in time policy.

  5. Open the downloaded RDP file and select Connect when prompted. You will get a warning that the .rdp file is from an unknown publisher. This is expected. In the Remote Desktop Connection window, select Connect to continue.

    Connect using Remote Desktop to an Azure VM running Windows - Azure Virtual Machines (1)

  6. In the Windows Security window, select More choices and then Use a different account. Enter the credentials for an account on the virtual machine and then select OK.

    Local account: This is usually the local account user name and password that you specified when you created the virtual machine. In this case, the domain is the name of the virtual machine and it is entered as vmname\username.

    Domain joined VM: If the VM belongs to a domain, enter the user name in the format Domain\Username. The account also needs to either be in the Administrators group or have been granted remote access privileges to the VM.

    Domain controller: If the VM is a domain controller, enter the user name and password of a domain administrator account for that domain.

  7. Select Yes to verify the identity of the virtual machine and finish logging on.

    Connect using Remote Desktop to an Azure VM running Windows - Azure Virtual Machines (2)

    Tip

    If the Connect button in the portal is grayed-out and you are not connected to Azure via an Express Route or Site-to-Site VPN connection, you will need to create and assign your VM a public IP address before you can use RDP. For more information, see Public IP addresses in Azure.

Connect to the virtual machine using PowerShell

If you are using PowerShell and have the Azure PowerShell module installed you may also connect using the Get-AzRemoteDesktopFile cmdlet, as shown below.

This example will immediately launch the RDP connection, taking you through similar prompts as above.

Get-AzRemoteDesktopFile -ResourceGroupName "RgName" -Name "VmName" -Launch

You may also save the RDP file for future use.

Get-AzRemoteDesktopFile -ResourceGroupName "RgName" -Name "VmName" -LocalPath "C:\Path\to\folder"

Next steps

If you have difficulty connecting, see Troubleshoot Remote Desktop connections.

Connect using Remote Desktop to an Azure VM running Windows - Azure Virtual Machines (2024)

FAQs

Connect using Remote Desktop to an Azure VM running Windows - Azure Virtual Machines? ›

Inbound port: RDP (3389) or. Inbound port: Custom value (you'll then need to specify this custom port when you connect to the VM via Azure Bastion)

How to connect Remote Desktop to virtual machine? ›

To connect with Microsoft Windows Remote Desktop, do the following:
  1. Create a Windows account and password if you do not have one yet.
  2. To connect over the internet, use the external IP address. ...
  3. Open Microsoft Windows Remote Desktop Connection on your Windows machine. ...
  4. In the Computer box, enter the IP address.

How do I Connect my Azure Windows Virtual desktop? ›

Connect to your desktops and applications
  1. Open the Remote Desktop client on your device.
  2. Double-click one of the icons to launch a session to Azure Virtual Desktop. You may be prompted to enter the password for your user account again, depending on how your admin has configured Azure Virtual Desktop.
Feb 22, 2024

Which port should you open to remotely Connect to a virtual machine using RDP in Azure? ›

Inbound port: RDP (3389) or. Inbound port: Custom value (you'll then need to specify this custom port when you connect to the VM via Azure Bastion)

What should you configure to allow Remote Desktop connections from the internet to the virtual machines? ›

To configure a VM for RDP access
  • Create a published service for Windows RDP (port 3389) on the VM network adapter. This allows access to port 3389 on the VM over the public Internet through a separate, forwarded port. ...
  • Use an existing public IP or VPN connection.

How to use remote access connections in Windows 10 to connect to virtual desktop? ›

Windows 10: Allow Access to Use Remote Desktop
  1. Click the Start menu from your desktop, and then click Control Panel.
  2. Click System and Security once the Control Panel opens.
  3. Click Allow remote access, located under the System tab.
  4. Click Select Users, located in the Remote Desktop section of the Remote tab.
Feb 16, 2024

How do I enable remote desktop on my VM Azure? ›

To enable the RDP port in an NSG, follow these steps:
  1. Sign in to the Azure portal.
  2. In Virtual Machines, select the VM that has the problem.
  3. In Settings, select Networking.
  4. In Inbound port rules, check whether the port for RDP is set correctly. The following is an example of the configuration: Priority: 300.
Mar 27, 2024

Is Azure Virtual Desktop the same as Windows Virtual Desktop? ›

Azure Virtual Desktop (AVD and formerly Windows Virtual Desktop, WVD) is a desktop and app virtualization service that runs on the cloud. AVD offers several options for your virtual apps and desktops; you can: Set up a multi-session Windows 10 deployment that delivers a full Windows 10 with scalability.

What is the difference between Azure Virtual Machine and Virtual Desktop? ›

Purpose: Azure VMs provide infrastructure for hosting virtual machines, while Azure Virtual Desktop provides a virtual desktop experience for end users. Operating System: Azure VMs can run both Windows and Linux operating systems, while Azure Virtual Desktop provides a Windows 10 virtual desktop environment.

Which port is used for Remote Desktop Connection? ›

Remote Desktop Protocol (RDP) is a Microsoft proprietary protocol that enables remote connections to other computers, typically over TCP port 3389.

How to securely Connect to Azure VM? ›

Use your browser in Azure portal to access your VM using web technologies. Bastion from the web browser is as secure as using it with native client. With Shareable link, you just go to Bastion in Azure portal, select the Bastion instance, navigate to Shareable links and create a new link.

What is RDP in Azure VM? ›

This clientless Remote Desktop Protocol (RDP) and Secure Shell Protocol (SSH) connectivity enables you to connect from anywhere—on any device or platform—without an additional agent running in your virtual machines.

What information do you need to connect to a PC using Remote Desktop? ›

The email address and password connected to the Microsoft account. Just a note that if you normally use a PIN to log into the machine you're connecting to, you'll need to log in to it with the Microsoft account password at least once. Otherwise the RDP connection won't accept the password.

How to connect to Windows Remote Desktop in local network or via the Internet? ›

Set up the PC you want to connect to so it allows remote connections:
  1. Make sure you have Windows 10 Pro. ...
  2. When you're ready, select Start > Settings > System > Remote Desktop, and turn on Enable Remote Desktop.
  3. Make note of the name of this PC under How to connect to this PC.

Which two types of virtual desktops can you create or use in a Remote Desktop Service RDS deployment? ›

RDS. Remote Desktop Services (RDS) and VDI are both ways to deliver remote desktops to users. Like VDI, RDS enables users to access desktops by connecting to a VM or server that is hosted in a local data center or in the cloud.

How to connect remote desktop virtualbox? ›

how to connect to virtualbox remote desktop
  1. Log in to the guest OS.
  2. Go to Control Panel > System and Security > System.
  3. Click on "Remote Settings" and select "Allow remote connections to this computer."
  4. Click on "Select Users" and add the user who will remotely connect.
  5. Click on "OK" to save the changes.
Mar 16, 2023

How do I Connect to a Linux VM using RDP? ›

To connect to a Linux VM, select the Connect via RDP option. After the RDP connection file download finishes, open the RDP file to launch the RDP client. Optionally, adjust the RDP connection settings, and then select Connect to start the remote session.

How to access a virtual desktop? ›

Azure Virtual Desktop Web Client

To access the web client, begin by going to https://aka.ms/wvdarmweb. Users will be prompted to login with Microsoft 365 credentials. After logging in, you'll be presented with a list of workspaces and desktops.

How do I Connect my virtual machine together? ›

Networking VMs in Practice
  1. Create a host-only network (switch) with DHCP enabled.
  2. Verify that both VMs have a virtual network interface and attach it to the host-only switch.
  3. Start the two VMs and verify their IP addresses.
  4. Test the connectivity by using the ''ping'' command on each VM.

Top Articles
Latest Posts
Article information

Author: Rueben Jacobs

Last Updated:

Views: 5806

Rating: 4.7 / 5 (57 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Rueben Jacobs

Birthday: 1999-03-14

Address: 951 Caterina Walk, Schambergerside, CA 67667-0896

Phone: +6881806848632

Job: Internal Education Planner

Hobby: Candle making, Cabaret, Poi, Gambling, Rock climbing, Wood carving, Computer programming

Introduction: My name is Rueben Jacobs, I am a cooperative, beautiful, kind, comfortable, glamorous, open, magnificent person who loves writing and wants to share my knowledge and understanding with you.