Unfortunately Azure Portal doesn’t have this simple feature. The only solution I know is using Azure Powershell Cmdlets. There are different articles talking about this. But they are not concise at all. To me I just need simple steps to reset password for one single VM. So here you go. Just “8 simple steps” you can get your VM back.
- Install Azure PS if needed http://azure.microsoft.com/en-us/downloads/
- Set-ExecutionPolicy RemoteSigned
- Import-Module Azure and Add-AzureAccount
- Select-AzureSubscription -Default “Subscription-1” // use Get-AzureSubscription to find the name if needed
- $vm = Get-AzureVM -Name paulloutest // use Get-AzureVM to list all VMs if needed
- $adminCred = Get-Credential // DO NOT type machine name, just pure user name
- Set-AzureVMAccessExtension -VM $vm -UserName $adminCred.UserName -Password $adminCred.GetNetworkCredential().Password -ReferenceName “VMAccessAgent” | Update-AzureVM
- Restart-AzureVM -ServiceName $vm.ServiceName -Name $vm.Name