Azure publishsettings文件无法使用Eclipse导入

时间:2015-06-12 14:41:33

标签: java eclipse azure azure-web-sites

我正在使用我的MSDN Azure订阅尝试使用Eclipse发布Java网站。我已经为Eclipse v0.2.0.201506041823安装了Azure SDK v2.6和Azure插件。作为部署设置的一部分,我需要导入我的发布设置文件。我已从Azure门户下载了发布配置文件。当我导入publishsettings文件时,我收到此错误: 导入文件名文件失败。 原因:无法解析文件。确保发布设置文件有效。

知道我错过了什么吗? 我很感激任何建议。

2 个答案:

答案 0 :(得分:1)

Please make sure the file you downloaded is Azure subscription publish setting, not the website publish file(yourwebsite.azurewebsites.net.PublishSettings). Your subscription file should be named like this :

Your Subscription Name-6-15-2015-credentials.publishsettings

Like Jambor said, another method you can download file form eclipse: enter image description here

Then, you can input your Azure account and login on Azure portal, then you can download the publishsettings file:

enter image description here

答案 1 :(得分:0)

请尝试在powershell中使用Import-AzurePublishSettingsFile命令导入发布设置文件,有关详细信息,请参阅https://msdn.microsoft.com/en-us/library/dn385850(v=nav.70).aspx,如果您可以获取订阅信息,则此问题可能与您的Java环境有关,否则,请重新下载发布设置文件。