virtual machine locked out

Automated Agent 0 Reputation points
2025-12-19T15:51:56.03+00:00

When trying to access my VM it shows an error of locked out due to many sing in attempt or password change

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ankit Yadav 7,945 Reputation points Microsoft External Staff Moderator
    2025-12-19T16:03:09.5+00:00

    Hey @Automated Agent !

    It looks like you're running into a problem with your Azure Virtual Machine being locked out due to too many sign-in attempts or a password change.

    1. You can initially wait for about 30-40 minutes and then retry to login.
      see: https://learn.microsoft.com/en-us/entra/identity/domain-services/troubleshoot-account-lockout#what-is-an-account-lockout If that also doesn't help, you can try using below steps:

    Steps to Resolve the Lockout:

    1. Backup Your OS Disk: Before making significant changes, it’s a good idea to create a snapshot of your OS disk for recovery purposes.
    2. Reset the Password:
      • If you're unable to sign in due to a password issue, you can reset the password for your virtual machine. This can be done via the Azure portal:
        • Navigate to your VM in the Azure portal.
        • Under the Help section, select Reset password.
        • Choose the Reset password option and enter the username for which you are resetting the password.
    3. Use Serial Console:
      • If you're still facing issues, you can access your VM using the Azure Serial Console:
        • Go to the VM in the Azure portal.
        • Under Support + troubleshooting, select Serial console.
        • From here, you can run commands to adjust settings or diagnose issues related to your login.
    4. Inspect Network Security Groups (NSG):
      • Ensure that your NSG rules allow traffic on the RDP port (TCP port 3389). If the rules are too restrictive, you won't be able to connect.
    5. Audit Access and Security:
      • If you're encountering issues due to potential brute force attacks, consider using features like Just-In-Time access or Azure Bastion for enhanced security.

    Reference Links:

    I hope this helps you regain access to your VM! If you have any further questions or need more assistance, feel free to ask!


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.