Azure Virtual Machine – You Must Change Your Password Before Logging On The First Time

SQL
2 Comments

One fine day when I tried connecting to my Azure Virtual Machine in a cloud, I was welcomed with this error message.

Azure Virtual Machine - You Must Change Your Password Before Logging On The First Time azure-rdp-01

Tip: If you press Ctrl + C on the message window, it will copy text on the clipboard and if you paste, it comes like below. Neat and Clean!

[Window Title]

Remote Desktop Connection

Solarwinds

[Content]

You must change your password before logging on the first time. Please update your password or contact your system administrator or technical support.

[OK] [Help]

I clearly remember that I have not done anything with the user account. Also, the machine was NOT joined to any domain.

WORKAROUND/SOLUTION

I knew that I need to change the password but how to get to the prompt to change the password as this is an Azure Virtual Machine.

The easiest way to reset the password is to use Azure Portal. Open Azure Portal, Go to “Virtual Machines”, go under click “Reset password” under “Support + Troubleshooting

Azure Virtual Machine - You Must Change Your Password Before Logging On The First Time azure-rdp-02

As the message says, we can also provide a new account and the password. After providing details, hit “Update” and wait for it to finish. It shows below the screen.

Azure Virtual Machine - You Must Change Your Password Before Logging On The First Time azure-rdp-03

Once done, you should be able to login to VM using the new account (if a new account is provided during reset) or an existing account (for which you have given new password)

Hope this would help someone who runs into error on Azure Virtual Machine.

Reference: Pinal Dave (https://blog.sqlauthority.com)

Solarwinds
, , ,
Previous Post
SQL SERVER – SQL Server Management Studio Crash While Using Backup to URL or Connecting to Storage
Next Post
SQL SERVER – Timeout Occurred While Waiting for Latch: Class FGCB_ADD_REMOVE

Related Posts

2 Comments. Leave new

  • Hi Pinal,

    I installed Failover Cluster on my test server to test Basic Availability Group on SQL Server 2016 standard edition. Windows server is 2012 R2. I get warning when I click on Failover Cluster Manager on Tool option in Server manager. Warning “To manage a failover cluster you must be logged in with a domain user account. A domain user is required because you need access to active directory Domain Services and all servers in hte cluster, including remote servers.”
    Clicking Ok warning disappears, but when I go to check validation and click on ‘Validate Configuration’ option in Failover Cluster manager, nothing happens. Ideally it should open validation wizard.

    How can I validate Failover Cluster I just recently installed.

    Kind Regards
    B Raj

    Reply
  • Mark Riordan
    July 2, 2019 9:52 pm

    This procedure worked for me when I suddenly got the dreaded “You must change your password” error when trying to login to an Azure VM. Thanks!

    Reply

Leave a Reply

Menu