【问题标题】:Publishing a node.js service as a workerrole to azure将 node.js 服务作为工作角色发布到 azure
【发布时间】:2013-10-16 22:46:39
【问题描述】:

按照指南 here 下载并安装 Windows Azure 发布设置后,我按照指南 here 将我的 socket.io node.js 应用程序发布到 Azure。

当我使用发布命令时:

Publish-AzureServiceProject –ServiceName NodeHelloWorld –Location "East US" -Launch

我收到以下错误:

Publish-AzureServiceProject :您必须指定证书。致电
首先设置-AzureSubscription 和 Select-AzureSubscription。在线:1
字符:1
+ 发布-AzureServiceProject
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Publish-AzureServiceProject], ArgumentException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Management.CloudService.PublishAzureServiceProjectCommand

在线搜索我找不到解决方案或其他有类似问题的人。感谢您的帮助。谢谢!

【问题讨论】:

  • 我不确定这会产生什么影响,但“美国东部”之后的结尾引号实际上是“弯引号”,而不是“直引号”。我会先尝试将其更改为直引号(因为 PowerShell 可能不喜欢弯引号);如果这不能解决问题,请更新您的问题。
  • 感谢您的评论。这不是问题 - 解决了问题。

标签: node.js powershell azure socket.io azure-worker-roles


【解决方案1】:

似乎解决方案一直摆在我面前.. 我不需要使用 Set-AzureSubscription,但我确实需要使用 Select-AzureSubscription。 真正让我吃惊的是,订阅的名称很长,而且是在我获得帐户时自动设置的。

简而言之: 在上述过程之后运行以下命令: 选择-AzureSubscription

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多