azure your credentials did not work RDP

Sharib Anis 0 Reputation points
2026-07-08T04:42:39.56+00:00

Getting Your credentials did not work while using RDP.

I'm using the correct password. I also reset the password. But still getting the same error.

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.

0 comments No comments

1 answer

Sort by: Most helpful
  1. AI answer

    2026-07-08T04:43:40.81+00:00

    Use the following checks and fixes, in order, for the "Your credentials did not work" RDP error to an Azure Windows VM.

    1. Confirm the correct account format
      The VM can only validate:
      • Local accounts: ComputerName\UserName (example: SQL1\Admin4798)
      • Domain accounts: DomainName\UserName (example: CONTOSO\peterodman)
      If the VM was promoted to a domain controller, the original local admin is deleted and replaced with a domain account of the same name. For example:
      • Before promotion: DC1\DCAdmin
      • After promotion: CORP\DCAdmin (local DC1\DCAdmin no longer exists)
      Make sure the username being entered is one the VM can actually validate, and that the password matches that account.
    2. If using Microsoft Entra ID (Azure AD) sign-in
      When RDP-ing with Microsoft Entra credentials, the following must be true:
      • The client PC is Microsoft Entra joined or hybrid joined to the same directory as the VM.
      • If the client is only Microsoft Entra registered, credentials must be entered as:
        AzureAD\UPN (for example, AzureAD\******@contoso.com).
      • The AADLoginForWindows extension must still be installed on the VM.
      If you see errors like "unauthorized client" or "password change required" with the same "Your credentials did not work" dialog, follow the sign-in troubleshooting steps in the Entra documentation referenced below.
    3. Reset the local administrator password from Azure portal
      If unsure whether the local admin password is correct or the account is locked:
      1. In the Azure portal, open the VM.
      2. In the left pane, under Help, select Reset password.
      3. Set Mode to Reset password.
      4. Enter a local administrator username and a new password.
      5. Select Update.
      6. Try RDP again using ComputerName\UserName and the new password.
    4. Check that the account has Remote Desktop sign-in rights
      If the error persists even with correct credentials, the account may not be allowed to sign in via RDP:
      • Only members of Administrators or Remote Desktop Users on the VM can sign in via RDP.
      • As a workaround, sign in with a local or domain administrator (after resetting its password as above), then:
        • Open Computer ManagementSystem ToolsLocal Users and GroupsGroupsRemote Desktop Users.
        • Add the desired user or group.
    5. If using Entra ID + Azure RBAC for RDP
      For Entra-based RDP, also verify:
      • The user has Virtual Machine Administrator Login or Virtual Machine User Login role on the VM or its resource group.
      • Device and SSO state on the client via dsregcmd /status shows:
        • AzureAdJoined : YES
        • AzureAdPrt : YES
      • Review Event ViewerApplications and Services Logs\Microsoft\Windows\AAD\Operational on the VM for detailed sign-in errors.

    If all the above are correct and the error still appears, use the general RDP troubleshooting flow (reset RDP configuration, verify NSG/firewall, check boot diagnostics, etc.) from the referenced articles, but the credential format and account rights are the primary causes for this specific message.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

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