如何使用我的 AAD 凭据登录到我的 Azure VM?

how can i login to my Azure VM with my AAD credentials?

我正在尝试使用我的 AAD 凭据登录到我的 Azure VM(在创建 VM 时已启用 Azure AD 登录),作为“虚拟机管理员登录名”的 RBAC 也已分配给此 VM。我正在尝试使用 RDP 和以下表单登录: 用户名:AzureAD\username@work-domain.com 密码:我的密码 但我收到此错误消息:"The Sign-in method you're trying to use isn't allowed. For more info, contact network administrator"。有人可以帮忙吗?

注意:我已经尝试使用 GPO,但没有用

要使用AAD 凭证登录Azure VM,您可以按照Sign in to Windows virtual machine in Azure using Azure Active Directory authentication (Preview)中的步骤操作。这对您来说很重要:

Remote connection to VMs joined to Azure AD is only allowed from Windows 10 PCs that are Azure AD joined or hybrid Azure AD joined to the same directory as the VM. Additionally, to RDP using Azure AD credentials, the user must belong to one of the two RBAC roles, Virtual Machine Administrator Login or Virtual Machine User Login.

您用于通过 AAD 凭据远程连接到 VM 的本地计算机需要作为您的租户加入域。在我这边,我使用租户的用户,可以成功连接到虚拟机。例如Tenant是centoso.com,那么用户应该是username@centoso.com。此外,您还需要检查 A​​ADLoginForWindows 扩展是否已为 VM 成功安装。