Resetting Azure VM expired password.

Babatunde Pase 0 Reputation points

I am new to Azure VM and create a VM machine to use for my office. Unfortunately the only user available is the built-in administrator. How can I reset the login password via the Azure portal?

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

2 answers

Sort by: Most helpful
  1. Gowtham CP 3,335 Reputation points

    Hello Babatunde Pase ,

    Thanks for reaching out in the Microsoft Q&A!

    To reset the password for the built-in administrator account on your Azure VM, kindly follow these steps:

    1. Access the Azure Portal: Sign in to the Microsoft Azure portal using your Azure credentials.
    2. Locate Your Virtual Machine: Go to the Azure resources section and search for your Virtual Machine by name.
    3. Reset Password:
      • Select your Virtual Machine.
      • In the left menu, under Support + troubleshooting, click Reset password.
    4. Reset Options:
      • In the Reset password window, you have two options:
        • Reset password: Resets the password for the built-in administrator account.
        • Reset configuration only: Resets the Remote Desktop Service (RDS) configuration and creates a new local administrator account with a random password. You will be provided with the new credentials.
    5. Choose Your Option:
      • If you know the username, select Reset password, enter a new strong password, and click Update.
      • If you don't know the username or want a new account, select Reset configuration only and click Update.
    6. Use the New Credentials: Once the reset is complete, use the new password (or the provided credentials) to log in to your Azure VM through Remote Desktop Connection (RDP).

    If you find this helpful, please accept this answer to close the thread. Thanks!

    0 comments No comments

  2. akinbade abiola 4,670 Reputation points

    Hello Babatunde Pase,

    Thanks for your question.

    Depending on the type of VM OS, you will need to reset the VM password.

    To this, please take a look at the MS learn document to reset the password.

    See Summary of steps:

    • Sign in to the Azure portal and navigate to your vm
    • In the VM page, find and click on the Reset password
    • Click Update to reset the password.

    User's image

    You can also do this using the Azure CLI which is simply Azure command line. I understand you are new to Azure and it may be interesting for you to test this:

    • Go to the Azure portal and click on the Cloud Shell icon. You will see it on the top right (looks likr a greater than symbol)
    • Run the command below:
    az vm user update -u username -p password -n MyVm -g MyResourceGroup

    See reference:

    Please let me know if you have further questions

    You can mark it 'Accept Answer' if this helped.

    0 comments No comments