Azure DevOps发布:错误 - 无法将Web软件包部署到应用程序服务

发布于 2025-02-02 02:07:28 字数 524 浏览 1 评论 0原文

我创建了一个.net6函数应用程序项目,并在Azure Devops中创建了一个管道。每当我推动新的变化时,版本就会丢弃以下错误Aftar管道完成。 。

如果我从Azure App Service Portal中删除Deploymenter Center中的倾向流程,并单击以下图所示的创建版本,则部署是成功的,如下所示

。 epded.png“ rel =” nofollow noreferrer“> ”

我在哪里做错了?如果必须自动触发并在没有任何其他工作(例如断开连接并重新尝试)的情况下自动取得成功的解决方案是什么?

I have created a .Net6 function app project and created a pipeline in the Azure DevOps. Whenever I push a new changes the Releases throws the following error aftar pipeline completed. .

THis is

The deployment is success if I disconnet the deplyment process in the Deploymenter Center from Azure App Service portal and click on the Create Release manually as shown below

enter image description here

Where I did go wrong? What's the solution if it has to trigger and get succeeded automatically without any additional work like disconnecting it and re-trying it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

雪若未夕 2025-02-09 02:07:28

AFAIK在连续部署期间,部署方法将对应用程序运行应用程序的应用程序的/home/site/wwwroot文件夹文件进行更改。

有时,该应用程序在部署过程中可能会不可预测,因为同时,文件并非全部更新。

如果它们有助于解决此问题,请找到以下步骤:

  • 尝试在应用程序设置上设置witch_run_from_package 0 。请参阅此 fix/workaround 来自类似的问题。
  • webles_webdeploy_use_scm 在应用程序设置为false> false的azure函数应用程序配置。
  • 停止当前运行应用程序或在部署过程中启用离线模式。
  • 如果一切正常,则将新的更改与生产交易所交换。

AFAIK, during the continuous deployment, deployment methods will make changes to the /home/site/wwwroot folder files of the application which are used to run your application.

Sometimes the application might behave unpredictably during deployment because at the same time, the files aren't all updated.

Please find the below steps if they help to fix the issue:

  • Try setting the WEBSITE_RUN_FROM_PACKAGE to 0 on the application settings. Refer to this fix/workaround from the similar kind of issue.
  • WEBSITE_WEBDEPLOY_USE_SCM in the Application Settings to False of the Azure Function App Configuration.
  • Stop the current running application or enable offline mode for it during deployment.
  • Deploy the new changes to the staging slot with swap to the production if everything is working well.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文