简体   繁体   中英

Reset Azure VM password fails - cannot remote into it

When I try to do this:

重置密码 Azure 控制面板

I get this:

错误信息

I really need to get into this VM.

I've had that happen too, and if you keep trying it usually works after a bit. It may help to try a different web browser, log out and log back in again, etc.

To install VM agent extension on your VM, please follow the below steps and let us know if that helps. After you RDP to the VM and install the MSI (same as you would any other MSI package), use the April 2014 v0.8.0 or later Azure PowerShell release to update the VM property to indicate the agent is installed.

$vm = Get-AzureVM –ServiceName –Name $vm.VM.ProvisionGuestAgent = $true

Update-AzureVM –Name –VM $vm.VM –ServiceName

Now if you run Get-AzureVM again, the GuestAgentStatus property should be populated instead of blank:

Get-AzureVM –ServiceName –Name

GuestAgentStatus:Microsoft.WindowsAzure.Commands.ServiceManagement.Model.PersistentVMModel.GuestAgentStatus

Note the steps to update the VM property are also on the Manage Extensions MSDN page.

Girish Prajwal

If you don't have the agent installed then you will need to mount the disk in another vm and manually make the changes. There are a number of offline password reset tools available (search for 'windows offline password reset') for a decent number of them. I've never used any (at least not since Win2k days) so I can't comment on how good they are.

Try Stop and Start from the azure portal for the VM which you wanted to update the password.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM