登录-AzureRmAccount - 依赖方:Microsoft Office 365 身份平台

Login-AzureRmAccount - Relying party: Microsoft Office 365 Identity Platform

我试图使用我的组织 ID 凭据登录我组织的 Azure 帐户,但在输入我的组织 ID 后显示以下错误。

An error occurred

An error occurred. Contact your administrator for more information.

Error details

• Activity ID: 8226c490-a09f-4183-9ea8-a48eeecd26e8

• Relying party: Microsoft Office 365 Identity Platform

• Error time: Wed, 17 Aug 2016 12:35:28 GMT

• Cookie: enabled

• User agent string: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; Win64; x64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; InfoPath.3; SLCC2; Media Center PC 6.0; Tablet PC 2.0)

即使我尝试将我的代码从 Visual Studio 代码签入到 TFS,也会发生这种情况。

但是,如果我直接使用命令登录(不使用登录表单),我仍然可以成功登录:

$SecurePassword = ConvertTo-SecureString -AsPlainText $AzurePassword -Force
$Cred = New-Object System.Management.Automation.PSCredential -ArgumentList $AzureUserName, $securePassword
(Login-AzureRmAccount -Credential $Cred -SubscriptionId $AzureSubscriptionID -ErrorAction Stop) | Out-Null

经过一些在线搜索后我发现,为了解决这个问题,我们需要使用以下 Microsoft TechNet 主题中的步骤启用基于表单的身份验证:Microsoft Technet Topic

以上 link 解释了如何在 Windows Server 2012 上执行此操作,但如何在 Azure AD 上执行此操作?

谁能帮我解决这个问题。

这有帮助吗? Wiring up ASP.NET Web Application using Forms Authentication with SqlMembership Provider on Azure

" 在 Azure 门户中,有一个控制 "Azure Websites Authentication / Authorization" 的设置。它位于网站下,然后是配置,然后向下滚动到 "Azure Websites Authentication / Authorization"。在我的例子中有一个条目那里:我的网站绑定到我帐户的 "Directory","application" 设置为我的 "tenant"(我认为这是 Azure 术语)。

为了解决这个问题,我只是删除了门户中的条目,并且能够完美地登录到我的 Web 应用程序。连接到成员身份的表单身份验证按我预期的方式工作。"