gpt4 book ai didi

azure - Windows Azure SDK 返回未知的 AccountType : undefined

转载 作者:行者123 更新时间:2023-12-04 18:07:33 29 4
gpt4 key购买 nike

我正在尝试通过 OSX 上的 Windows Azure SDK 登录。但我无法登录,因为登录时出现错误:“服务器返回未知的帐户类型:未定义”。我的 Azure 帐户是带有 MSDN 的 Visual Studio Premium。此外,该帐户尚有支出限制,但我可以在 Azure 门户上创建网站。你能告诉我出了什么问题吗?

我的工作在这里:

$ azure -v  
0.8.2
$ azure login
info: Executing command login
Username: MY_AZURE_ACCOUNT
Password: **********
If you choose to continue, Azure command-line interface will cache your authentication information. Note that this sensitive information will be stored in plain text on the file system of your computer at /Users/awwa/.azure/azureProfile.json. Ensure that you take suitable precautions to protect your computer from unauthorized access in order minimize the risk of that information being disclosed.
Do you wish to continue: (y/n) y
+ Authenticating...
error: Server returned an unknown AccountType: undefined
info: Error information has been recorded to azure.err
error: login command failed
<小时/>

azure.err 在这里:

Wed Apr 30 2014 21:40:30 GMT+0900 (JST):  
{ [Error: Server returned an unknown AccountType: undefined]
stack: [Getter/Setter],
__frame:
{ name: '__7',
line: 171,
file: '/usr/local/azure/lib/commands/account.js',
prev: undefined,
active: false,
offset: 35,
col: 31 },
rawStack: [Getter] }
Error: Server returned an unknown AccountType: undefined
at Logger.createError (/usr/local/azure/node_modules/adal-node/lib/log.js:196:13)
at /usr/local/azure/node_modules/adal-node/lib/token-request.js:366:35
at UserRealm._parseDiscoveryResponse (/usr/local/azure/node_modules/adal-node/lib/user-realm.js:234:3)
at /usr/local/azure/node_modules/adal-node/lib/user-realm.js:263:12
at Request._callback (/usr/local/azure/node_modules/adal-node/lib/util.js:116:5)
at Request.self.callback (/usr/local/azure/node_modules/adal-node/node_modules/request/request.js:121:22)
at Request.EventEmitter.emit (events.js:98:17)
at Request.<anonymous> (/usr/local/azure/node_modules/adal-node/node_modules/request/request.js:978:14)
at Request.EventEmitter.emit (events.js:117:20)
at IncomingMessage.<anonymous> (/usr/local/azure/node_modules/adal-node/node_modules/request/request.js:929:12)
at IncomingMessage.<anonymous> (/usr/local/azure/node_modules/adal-node/node_modules/request/request.js:929:12)
at __7 (/usr/local/azure/lib/commands/account.js:206:31)
<小时/>

最佳答案

Azure 登录方法仅适用于组织帐户。如果您使用 MSAccount,则应使用“azure 帐户导入”和 .publishsettings 文件。

另请参阅: http://azure.microsoft.com/en-us/documentation/articles/xplat-cli/

关于azure - Windows Azure SDK 返回未知的 AccountType : undefined,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23390441/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com