Troubleshooting specific RDP error messages in Azure

In this azure tutorial, we will discuss Troubleshooting specific RDP error messages to a Windows VM in Azure. Apart from this, we will also discuss on the below topics:

  • Remote desktop cannot connect to the remote computer for one of these reasons.
  • Remote Desktop can’t find the computer “name”.
  • Windows Security error: Your credentials did not work.
  • This computer can’t connect to the remote computer.
  • The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license.

Troubleshooting specific RDP error messages to a Windows VM in Azure.

Let’s try Troubleshooting specific RDP error messages in Azure.

Below are a few specific RDP error messages which you might get while trying to connect to your Azure virtual machine(VM). Below are few errors. We will discuss one by one how can we fix those.

  • Remote desktop cannot connect to the remote computer for one of these reasons.
  • Remote Desktop can’t find the computer “name”.
  • Windows Security error: Your credentials did not work.
  • This computer can’t connect to the remote computer.
  • The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license.

Remote desktop cannot connect to the remote computer for one of these reasons:

While connecting to the Azure virtual machine, I got the below error message

Remote desktop cannot connect to the remote computer for one of these reasons:

  • 1-Remote Access to the server is not enabled.
  • 2-The remote computer is turned off.
  • 3-The remote computer is not available on the network.

Make sure the remote computer is turned on and connected to the network, and that remote access is enabled.

Remote desktop cannot connect to the remote computer for one of these reasons:

To fix the issue you need to follow the below steps

Step- 1: 

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

Step- 2: 

Search for Virtual machines there.

Troubleshooting specific RDP error messages to a Windows VM in Azure

Step- 3: 

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

Remote desktop cannot connect to the remote computer for one of these reasons:

Step- 4: 

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

If you can see the Status of the VM is Stopped(deallocated). The status should be running.

Remote desktop cannot connect to the remote computer for one of these reasons:

Step- 5:

Now click on the Start button.

Remote desktop cannot connect to the remote computer for one of these reasons how to fix

Step- 6:

Now if you can see the VM Status is changed to “Running”.

how to fix Remote desktop cannot connect to the remote computer for one of these reasons

Step- 7:

Now you should able to connect to the virtual machine without any issues.Click on the Connect button.

how to fix Remote desktop cannot connect to the remote computer for one of these reasons

Remote Desktop can’t find the computer “name”

You might get the below error while trying to connect the virtual machine in Azure.

The error is “Remote Desktop can’t find the computer “name”“.

Remote Desktop can't find the computer "name"

To fix this, instead of this name you can use the DNS name configured for your virtual machine.

It’s always better to configure the DNS name for your virtual machine(VM). You can use the same DNS name to connect to the virtual machine using the RDP.

For Example:

The DNS name configured for my virtual machine(VM) is “mynewvm.westus.cloudapp.azure.com”. This is also known as the Fully Qualified Domain Name(FQDN).

Windows Security error: Your credentials did not work.

You might get the error like Windows Security error: Your credentials did not work.

This error is because the Remote desktop is not able to validate the entered username and password.

1- For local accounts, you can use the ComputerName\UserName syntax as the username.

2- For domain accounts, you can use the DomainName\UserName syntax as the username.

3- If you have already configured the DNS name, you can use the Fully Qualified Domain Name(FQDN) as the username.

Verify the Username and Password enter is correct. You can reset the username and password from the Azure portal. To reset the username and password, You can refer to How to access Azure VM (Virtual Machine).

This computer can’t connect to the remote computer

We might get the error This computer can’t connect to the remote computer while connecting the virtual machine(VM).

This error you will get because the account is using to connect may not have the Remote Desktop sign-in rights.

So always be sure that the account you are using has the Remote Desktop sign-in rights.

To fix this issue what you need to do is you need to give Remote Desktop sign-in rights to that particular account.

To give these rights you need to go to System Tools -> Local Users and Groups -> Groups > Remote Desktop Users and add the account to this group.

The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license.

You might get the error The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license while working with a virtual machine(VM).

Normally, the grace licencing period for a Remote Desktop Server role is 120 days. Once it expires you need to install the license.

But you can disable this by running the below command with PowerShell But before that you can keep local copy of the RDP file

mstsc <Your local RDP File name>.RDP /admin
mstsc MyNewVM.RDP /admin

MyNewVM.RDP is my Remote Desktop File(RDP) file which i have downloaded.

All the above errors are the part of Troubleshooting specific RDP error messages in Azure.

You may like following Azure tutorials:

Conclusion

In this Azure tutorial, We discussed

  • Troubleshooting specific RDP error messages in Azure
  • Remote desktop cannot connect to the remote computer for one of these reasons.
  • Remote Desktop can’t find the computer “name”.
  • Windows Security error: Your credentials did not work.
  • This computer can’t connect to the remote computer.
  • The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license.

Leave a Comment