加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

Windows Azure SDK返回未知的AccountType:undefined

发布时间:2020-12-14 01:59:31 所属栏目:Windows 来源:网络整理
导读:我正在尝试通过OSX上的 Windows Azure SDK登录. 但我无法登录,因为我登录时遇到了错误:“服务器返回了一个未知的AccountType:undefined”. 我的Azure帐户是带有MSDN的Visual Studio Premium. 此外,该帐户还有支出限制,但我可以在Azure门户上创建一个网站.
我正在尝试通过OSX上的 Windows Azure SDK登录.
但我无法登录,因为我登录时遇到了错误:“服务器返回了一个未知的AccountType:undefined”.
我的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 account import”和.publishsettings文件.

也可以看看:
http://azure.microsoft.com/en-us/documentation/articles/xplat-cli/

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读