Azure IaaS - Can't Logon? Wrong ID/PW?
If you forgot your VM's logon ID/PW, you have a few options to get back in there. Note: Domain Controllers don't have local users so these tricks won't work with them....
- If this is a brand-new VM (never logged on or configured), it’s generally fastest to delete and recreate it.
- If the VM extension installed, you can reset the password via powershell.
- Linux VM - https://azure.microsoft.com/en-us/blog/using-vmaccess-extension-to-reset-login-credentials-for-linux-vm/ *does not work in MAG
- Classic Windows VM - https://azure.microsoft.com/en-us/blog/vm-agent-and-extensions-part-1/
- ARM (new portal) Windows VMs - https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-windows-reset-rdp/#windows-vms-in-resource-manager-deployment-model
- For classic VMs, you can reset your password via the new portal - https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-windows-reset-rdp/#windows-vms-in-the-classic-deployment-model *does not work in MAG
- There is a complicated method (mount the C$ to another VM as a data disk and update a gpt.ini) that will also work. A peer of mine will be blogging about this process in the future.
*MAG = Microsoft Azure for Government