与 Microsoft Azure AD Module PowerShell 和 Microsoft Azure Powershell 的区别

Different with Microsoft Azure AD Module PowerShell and Microsoft Azure Powershell

我尝试 运行 命令 Set-MsolDomainAuthentication 与 Windows PowerShell 的 Microsoft Azure Active Directory 模块。但是当尝试连接到我的 azure 帐户 (connect-msolservice) 时,我遇到了异常。我输入电子邮件和密码,然后我得到:

我尝试在 Google、Azure 支持中找到解决方案,但我找到的所有内容都是无用的。

在我的系统上,我有一个名为 Microsoft Azure PowerShelllink 的应用程序。在此应用程序中,我可以通过命令 Add-AzureAccount 连接到我的 azure 帐户。但是这一次,我没有找到 Set-MsolDomainAuthentication.

的类似物

此命令存在于 Azure PowerShell 中? 我可以用其他方式更改 Azure AD,例如命令 Set-MsolDomainAuthentication?也许是 Azure 管理面板?或者 GraphApi?

我在使用 Powershell 时遇到了类似的问题。当我尝试从帐户 MicrosoftLive 记录凭据时出现此异常。 Powershell 需要您域中的帐户。

所以: 在 Azure 域中以 GlobalAdmin 角色创建一个新用户,更改该用户的密码,通过登录 Office365,输入该用户的 PowerShell 凭据。

祝你好运。