1

我嘗試運行命令Set-MsolDomainAuthentication與Microsoft Azure Active Directory模塊for Windows PowerShell。但是當我嘗試連接到我的天藍色帳戶(connect-msolservice)時,我得到了異常。我輸入電子郵件和密碼,然後我得到:enter image description here與Microsoft Azure AD模塊PowerShell和Microsoft Azure Powershell不同

我試着在Google,Azure支持中找到解決方案,但是我發現的一切都沒用。

在我的系統上,我有一個叫做Microsoft Azure PowerShelllink的應用程序。在這個應用程序中,我可以通過命令Add-AzureAccount與我的天藍色帳戶連接。但這一次,我不覺得類似於Set-MsolDomainAuthentication

此命令是否存在於Azure PowerShell中? 我可以改變Azure AD的其他方式,如命令Set-MsolDomainAuthentication?也許Azure管理面板?或GraphApi

+0

您是否在安裝Azure AD PowerShell模塊時安裝了[MSOL登錄助手](http://www.microsoft.com/zh-cn/download/details.aspx?id=41950)? – BenV

+0

@BenV是的,Azure AD PoweShell模塊安裝需要此應用程序。 – devQwerty

回答

1

我和Powershell有類似的問題。當我嘗試從帳戶MicrosoftLive中記錄憑證時,會發生此異常。 PowerShell在您的域中需要帳戶。

因此: 在角色GlobalAdmin中的Azure域中創建一個新用戶,通過登錄Office365更改該用戶的密碼,輸入該用戶的PowerShell Credential。

祝你好運。