When you create the VM usually a Network Security Group is also created, check that the port for te RDP is open in the NSG
Do I need to do anything special to RDP to Azure VM?
Created a new VM but I am not sure how to RDP into it? I tried but get an error that says it can't connect.
"Remote Desktop can't connect to the remote computer for one of these reasons:
- Remote access to the server is not enabled
- The remote computer is turned off
- The remote computer is not available on the network"
I verified that RDP is enabled on the VM, it is turned on, and it can get out to the internet. I've tried my work and home networks with the same error. Is there anything special needed to get RDP to work on an Azure VM?
2 answers
Sort by: Most helpful
-
-
FJcmdk4488 56 Reputation points
2022-06-22T15:45:00.85+00:00 This is what fixed the problem for me. - https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/troubleshoot-rdp-nsg-problem#symptom
Symptom
You cannot make an RDP connection to a VM in Azure because the RDP port is not opened in the network security group.Solution
When you create a new VM, all traffic from the Internet is blocked by default.To enable the RDP port in an NSG, follow these steps:
Sign in to the Azure portal.
In Virtual Machines, select the VM that has the problem.
In Settings, select Networking.
In Inbound port rules, check whether the port for RDP is set correctly. The following is an example of the configuration:
Priority: 300
Name: Port_3389
Port(Destination): 3389
Protocol: TCP
Source: Any
Destinations: Any
Action: AllowIf you specify the source IP address, this setting allows traffic only from a specific IP address or range of IP addresses to connect to the VM. Make sure that the computer you are using to start the RDP session is within the range.