Azure publishsettings file Fails to Import Using Eclipse

為{幸葍}努か 提交于 2019-12-11 05:29:35

问题


I am using my MSDN Azure subscription to try to publish a Java web site using Eclipse. I have installed the Azure SDK v2.6 and the Azure plug-in for Eclipse v0.2.0.201506041823. As part of the deployment set-up, I need to import my Publish-Settings file. I have downloaded the publish profile from the Azure portal. When I import the publishsettings file, I am getting this error: Importing filename file failed. Reason: Failed to parse file. Ensure publish settings file is valid.

Any idea what I am missing? I appreciate any suggestions.


回答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:

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




回答2:


Please try to use Import-AzurePublishSettingsFile command in powershell to import your publish settings file, refer to https://msdn.microsoft.com/en-us/library/dn385850(v=nav.70).aspx for more details, if you could get your subscription information, this issue maybe related to your java environment, else, please re-download the publish settings file.



来源:https://stackoverflow.com/questions/30805837/azure-publishsettings-file-fails-to-import-using-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!