"要登录到该应用程序的帐户必须添加到domain.com目录" [英] "To sign into this application the account must be added to the domain.com directory"
问题描述
我试图登录到我们从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:>添加-AzureAccount -Credential $名气附加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月4日09:46:02Z:
远程服务器返回错误:(400)坏Request.At行:1
焦炭:1
+添加-AzureAccount -Credential $ CRED
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo:CloseError:(:) [添加-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屋!