为了在 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/