Azure Web部署“发布失败" [英] Azure Web Deploy "Publish Failed"
问题描述
你好,我的开发者们!
我目前在最新的Visual Studio 2017 Professional-15.8(.1)版本中遇到问题.
I am currently struggling with a problem in the latest Visual Studio 2017 Professional - Version 15.8(.1).
自版本15.8更新以来,我无法通过Web Deploy发布任何Azure函数.
Since The Update to Version 15.8, I am unable to publish any Azure Function via Web Deploy.
每次我按下发布"按钮,我都会看到一个错误窗口:发布失败".输出"窗口保持为空,通常我会在其中获得所有构建和发布的输出.
Every time i press the "Publish" button, I simply get an error window saying: "Publish failed". The Output window stays empty, where normally I would get all the build and publishing output.
我累了:
- 清洗了溶液;删除%temp%;删除了发布个人资料;在Azure中重置发布凭据;重新构建所有文件,然后导入一个新生成的发布配置文件:Same Error
- 未安装VS2017;清理所有遗骸;重新安装VS2017:相同错误
- 检查了我们的防火墙,看是否有任何东西被阻止,甚至尝试为我的工作站设置一个例外,以允许所有流量:相同的错误
- 尝试从物理上不同的网络发布:相同错误
- 发布之前,请在Azure门户中停止该功能:相同错误
- 在azure门户中:删除一个创建新的空azure函数以发布到:相同错误
- 在azure门户中:将功能应用程序编辑模式"设置为读/写:相同错误"
- 试图在浏览器中点击功能Endpoint-URL.没问题.
- 试图从同事的工作站上发布Visual Studio 2017 Pro版本15.7.1:工作正常-过去
我的问题:
- 我想念什么吗?除了安装较旧版本的Visual Studio之外,还有什么我可以尝试的方法,这是我的下一步.
- 这可能是最新的Azure工具甚至是Visual Studio中的错误吗?
- 为什么我的输出"窗口没有提供任何信息来解决失败的发布尝试?我是否缺少一些新的选项来再次激活它?
我希望有人能指出正确的方向来解决这个令人毛骨悚然的问题;)
I hope someone can point me in the right direction to solve this infuriating issue ;)
推荐答案
摆弄Azure中的部署设置之后,我认为我设法解决了这个问题.我不确定到底是什么使出了窍门,但是我可以将其重用于所有未完成的部署中.另外,现在我可以在输出窗口中返回发布日志,而无需更改VS中的任何Option.
After fiddling around with the deployment Settings in Azure, I think I managed to solve this issue. I am not sure what did the trick exactly, but I could reproduce it for all my pending deployments. Also now I have my publishing log in the output window back without changing any Option in VS.
因此,如果有人遇到相同的问题,请尝试以下操作-列表中的某些内容触发了它再次工作:
So, if anyone experiences the same problem, try this - something in the list triggered it to work again:
- 进入Azure门户-> Function Apps->选择功能->打开平台功能"选项卡
- 在代码分离"下,选择部署凭据".
- 将凭据更改为您喜欢的任何内容并保存.
- 从概述"标签中重新下载发布配置文件.
- 导入发布配置文件并从VS中发布.
- 如果仍然无法使用
- 再次进入门户网站->总体"标签.
- 按重置发布凭据"
- 在VS中,选中从ZIP运行"以创建新的发布配置文件.并尝试发布.然后恢复为旧的Web部署方法,然后尝试再次发布.
- 如果仍然无法使用
- 从概述"标签中重新下载发布配置文件.
- 导入发布配置文件并从VS中发布.
我不知道这为什么行得通,因为我认为代码部署"凭据纯粹是可选的,过去我不需要更改任何设置即可发布功能,只需下载配置文件即可完成.那么某些事情"可能已经改变了吗?也许我做错了什么?我真的不知道.
I have no idea, why this works, as I thought the "Code Deploy" Credentials are purely optional and I never needed to change any of the settings in the past to publish a function, simply download the profile and done. So "something" has changed maybe? Maybe I did something wrong? I really can't tell.
这篇关于Azure Web部署“发布失败"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!