使用 connect-MSOLService cmdlet 连接到客户端时出现"访问被拒绝"Office 365
备注
Office 365 ProPlus 正在重命名为 适用于企业的 Microsoft 365 应用。 有关此更改的详细信息, 请阅读此博客文章。
症状
当您尝试使用 Microsoft Azure Active Directory Module for Windows PowerShell 中的 connect-MSOLService cmdlet 连接到 Microsoft 云服务(如 Office 365、Microsoft Azure 或 Microsoft Intune,则尝试失败。 此外,你还可能会收到以下错误消息:
Connect-MsolService : Access Denied. You do not have permissions to call this cmdlet.
解决方案
通过将成员/用户添加到 Azure 中的管理员角色,可以解决此问题。 有关详细信息,请参阅文章 Add-MsolRoleMember。
更多信息
仍然需要帮助? 转到Microsoft Community或Azure Active Directory 论坛网站。