node.js - Azure 的 regstring 的publishSettings 文件无效

标签 node.js azure azure-web-app-service

为了在 Azure 网站上连接和调试 Node.js 程序,我需要使用publishSettings 文件。当我从 Azure 管理控制台下载一个并尝试导入它时,我得到以下信息:

c:\>azure account import "MyServices.azurewebsites.net.PublishSettings"
info:    Executing command account import
error:   Invalid publishSettings file. Use "azure account download" to download publishing credentials.
info:    Error information has been recorded to azure.err
error:   account import command failed

当我尝试使用“azure 帐户下载”命令时,它会打开一个浏览器窗口,然后向我显示来自 azure 管理系统的 500 错误。

当我尝试通过 Azure PowerShell 命令执行此操作时,也会发生同样的情况。

谢谢

最佳答案

这有点令人困惑,但您尝试使用的publishSettings 文件是您的Azure 网站的特定发布设置,而您实际上需要您的Azure 帐户的发布设置。

您可以从这里获取:https://windows.azure.com/download/publishprofile.aspx

azure account download 也是正确的,不知道为什么你会得到 500。

关于node.js - Azure 的 regstring 的publishSettings 文件无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22559061/

相关文章:

node.js - 如何使用 child_process 运行返回值列表的 bash 脚本?

node.js - Nuxt js错误找不到页面目录

git - 如何在Azure管道中标记存储库?您需要 Git 'GenericContribute' 权限才能执行此操作

Angular5部署到Azure webapp : Content Security Policy

c# - 如何从 SQL Azure 应用服务 Web 应用写入日志文件?

node.js - 如何将整数存储在 nodejs 缓冲区中?

node.js - shelljs 性能缓慢

c# - 将来自客户端的图像保存在 Azure 存储中

.NET 核心运行时

asp.net-mvc - 实体类型 ApplicationUser 不是当前上下文模型的一部分。在项目开始时使用了两个不同的数据库