Why would an RDP connection to a VM fail with "Your credentials did not work"?

Andrew Brown 40 Reputation points
2023-08-18T21:48:00.0633333+00:00

The new VM was created in the same subscription. The password doesn't work. All diagnostics ran OK.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,682 questions
{count} votes

2 answers

Sort by: Most helpful
  1. vipullag-MSFT 26,476 Reputation points
    2023-08-19T03:32:28.7033333+00:00

    Hello Andrew Brown

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    There could be several reasons why an RDP connection to a VM fails with "Your credentials did not work". Here are a few things you can check:

    -Make sure you are using the correct username and password. If you are not sure, try resetting the password for the VM.

    -Check if the VM is running. If the VM is not running, you won't be able to connect to it.

    -Check if the VM is accessible from the internet. If the VM is not accessible from the internet, you won't be able to connect to it. You can check this by using this link (https://ping.eu/port-chk/).

    -Check if the RDP port is open in the network security group (NSG) associated with the VM. By default, RDP uses port 3389. If the port is not open, you won't be able to connect to the VM.

    -Check if the RDP service is running on the VM. If the RDP service is not running, you won't be able to connect to the VM.

    If you have checked all of the above and still cannot connect to the VM, you can try resetting the RDP configuration on the VM.

    Hope this helps.

    1 person found this answer helpful.

  2. Andriy Bilous 11,731 Reputation points MVP
    2023-08-21T04:47:16.7+00:00

    Hello @Andrew Brown

    There could be many reasons why credentials does not work. I would recommend to start with

    • Reset your RDP connection. This troubleshooting step resets the RDP configuration when Remote Connections are disabled or Windows Firewall rules are blocking RDP.Screenshot of the Mode setting window of the Reset password tab, in which the Reset configuration only option is selected.
    • Reset user credentials. This troubleshooting step resets the password on a local administrator account when you are unsure or have forgotten the credentials. Once you have logged into the VM, you should reset the password for that user.

    More troubleshooting steps could be found in below link
    https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/troubleshoot-rdp-connection


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.