If the assigned Virtual Desktop prompts for a password change before connection, use one of these supported paths:
- If the sign-in page provides a password change link, use it.
- Enter the current password.
- Enter the new password and confirm it.
- If the new password is rejected, it does not meet the domain length, complexity, or history requirements.
- If the account is a work or school account and the current password is still known, change it in the My Account portal:
- Go to myaccount.microsoft.com.
- Select Change Password.
- Enter the old password, then the new password, and submit.
- Sign in again with the new password.
- If the password is expired and there is no password change option, or the old password is not accepted, contact the Active Directory administrator to reset or unlock the account.
- For Azure VM-based Windows sessions, an administrator can reset the password from Azure:
- In Azure portal, open Virtual machines.
- Select the Windows VM.
- Open Help > Reset password.
- Choose Reset password, enter the username and new password, then select Update.
- Try connecting again.
If the issue is specifically the Windows VM error "You must change your password before logging on the first time", the documented fix is to change that account password first. For Azure VMs with a healthy guest agent, this can be done through Run Command using:
- Local account:
net user <USERNAME> *
- Domain account:
net user <USERNAME> * /domain
Warning: password reset actions change sign-in credentials and should be performed carefully. For VM troubleshooting steps that modify access, create a snapshot of the OS disk first.
References: