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

标签 azure

我正在尝试通过 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/

相关文章:

linux - 如何从基于 Linux 的 Hadoop 客户端使用 Azure Blob 存储?

azure - 无法创建 Azure 文件共享 : The remote name could not be resolved: 'calcpaebooks.file.core.windows.net'

c# - 使用 Azure 移动服务向非事件用户发送通知。在哪里保存 "lastLoginDate"并对其进行过滤?

azure - ApplicationInsights TrackException() 不记录堆栈跟踪

Azure CDN 在响应中添加了 x-microsoft header ,它们是什么以及如何删除?

c# - 如何在 C# 后端设置 Azure 通知中心

c# - Azure 通知中心 .net api 无法异步工作

sql - SQL Azure 中的 Code First 迁移 - 不支持没有聚集索引的表

powershell - Azure 资源管理器 - 如何更改资源的资源组?

azure - 在 Azure 中创建 Kubernetes 集群失败