“要登录此应用程序,必须将帐户添加到 domain.com 目录" [英] "To sign into this application the account must be added to the domain.com directory"

查看:16
本文介绍了“要登录此应用程序,必须将帐户添加到 domain.com 目录"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从 Powershell 登录我们的 Azure 帐户.我安装了正确的模块,但无法通过以下错误:

I'm trying to login to our Azure account from Powershell. I installed the proper module but am unable to get passed the following error:

PS C:> Add-AzureAccount -Credential $cred Add-AzureAccount

PS C:> Add-AzureAccount -Credential $cred Add-AzureAccount

AADSTS50034:要登录此应用程序,必须添加帐户到 domain.com 目录.跟踪 ID:ef487122-88d6-4e36-8421-4434806041d2 相关 ID:a1ea0ee1-b278-4241-bc48-e213ecd47b27 时间戳:2014-11-04 09:46:02Z:远程服务器返回错误:(400) Bad Request.At line:1字符:1+ 添加-AzureAccount -Credential $cred+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : CloseError: (:) [Add-AzureAccount], AadAuthenticationFailedException+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Profile.AddAzureAccount

AADSTS50034: To sign into this application the account must be added to the domain.com directory. Trace ID: ef487122-88d6-4e36-8421-4434806041d2 Correlation ID: a1ea0ee1-b278-4241-bc48-e213ecd47b27 Timestamp: 2014-11-04 09:46:02Z: The remote server returned an error: (400) Bad Request.At line:1 char:1 + Add-AzureAccount -Credential $cred + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Add-AzureAccount], AadAuthenticationFailedException + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Profile.AddAzureAccount

我是 Azure 的新手,所以我不知道这个domain.com"目录是什么或在哪里.我也没有在网上找到任何与远程相关的东西.

I'm new to Azure so I have no idea what or where is this "domain.com" directory. I also failed to find anything even remotely related over the net.

推荐答案

解决方法:

改用证书方法.立即运行,没有任何障碍.

Use the certificate method instead. Works instantly without a hitch.

这篇关于“要登录此应用程序,必须将帐户添加到 domain.com 目录"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆