Windows虚拟机如何使用Azure AD用户登录

问题描述 投票:0回答:1

我在 Azure 中有一个 Windows 虚拟机,我想使用 Azure AD 用户通过远程桌面 RDP 登录。 我已经阅读了 Microsoft 指南 但也许我需要做更多的步骤。 在创建虚拟机时,我激活了“使用 azure AD 登录”选项。 另外,我有一个用户组,其中的用户将通过 RDP 登录 VM。 然后,在包含使用 VM 创建的所有资源(VM、虚拟网络、网络接口等)的资源组中,我已将“虚拟机用户登录”角色分配给用户组。 这够了吗,还是我需要做其他事情?? 我可以使用我使用 VM 创建的管理员用户登录。 我正在使用装有 Windows 10 家庭版 22H2 的 PC。

谢谢!!!

azure rdp
1个回答
0
投票

要在 Windows 虚拟机中使用 Azure AD 用户登录,请检查以下内容:

创建的虚拟机激活选项“使用 azure AD 登录” 如下所示:

enter image description here

尝试为用户分配角色分配

Virtual Machine User Login
Virtual Machine Administrator Login
如下:

enter image description here

在虚拟机中下载RDP文件:

enter image description here

现在,在记事本中打开 RDP 文件,编辑您的 RDP 下载文件,包括:

enablecredsspsupport:i:0
authentication level:i:2

enter image description here

现在尝试使用

AzureAd\UPN
用户登录,连接成功如下:

enter image description here

如果问题仍然存在,请在任务栏中使用您的虚拟机远程桌面登录允许远程连接到这台计算机->在系统属性中->取消选中如下框:

enter image description here

然后在虚拟机中 -> 运行命令 ->

DisableNLA
并运行如下脚本:

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.