重置 Azure 虚拟机的密码

重置 Azure 虚拟机的密码

我忘记了用于登录 Azure 虚拟机的用户帐户。在新门户中,我尝试了“重置密码”选项,输入了新用户和密码。但是,我收到了通知:

Failed to reset the password/ssh key for virtual machine 'EXAMPLE'.

如果我单击“重置远程访问”,我会收到错误:

Failed to reset the SSH configuration for virtual machine 'EXAMPLE'.

我添加了一个新用户[email protected](Microsoft 用户)作为所有者,但如果我使用我的 Microsoft 密码进​​行此操作,则无法获得访问权限。ssh example.cloudapp.net -l [email protected]

我能做些什么?

答案1

要在 Linux VM 上使用重置密码功能,您需要拥有一个安装了 Microsoft Azure Linux Agent 版本 2.0.6 或更高版本的 Linux VM。

请注意,大多数 Azure VM Linux 图库图像均包含 2.0.6 以上版本。

通过此代理重置 Linux 凭证的所有分步操作详细说明如下: https://azure.microsoft.com/fr-fr/blog/using-vmaccess-extension-to-reset-login-credentials-for-linux-vm/

问候

相关内容