If you have forgotten the pasword of the admin account of Azure Virtual Machine, this is the right post for you.
Open Azure Powershell and execute followin command to get the list of subscriptions:
1. List all active subscriptions
PS C:\> Get-AzureSubscription
2.Select subscription in which the VM is running
PS C:\> Select-AzureSubscription
cmdlet Select-AzureSubscription at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
SubscriptionName: ENTER HERE SUBSCRIPTION NAME FROM STEP 1
3. Set variable vm to instance of VM
$vm = Get-AzureVM -ServiceName "VMXYSVC" -Name "VMXY"
4. Set new credentials
Set-AzureVMaccessExtension -VM $vm –UserName "adminaccountname" –Password ******"”
–ReferenceName "MyVMAccessAgent" | Update-AzureVM
5. Restart VM
Posted
Feb 12 2015, 11:52 PM
by
Damir Dobric