gpt4 book ai didi

Azure DevOps 管道返回 : 'Failed to deploy web package to App Service. Internal Server Error (CODE: 500)'

转载 作者:行者123 更新时间:2023-12-04 14:39:23 26 4
gpt4 key购买 nike

我正在尝试使用 Azure DevOps 管道构建 .NET 5(核心)Web 应用程序并将其部署到我的 Azure 应用程序服务。我在文档中找不到实现此目的的任何完整示例,因此我遵循以下操作:

https://github.com/shahedc/NetLearnerApp/blob/main/azure-pipelines.yml.txt

但是,Azure 部署任务不断返回此模糊错误: enter image description here

在我的 Azure 门户中,我只收到此错误: enter image description here

我假设问题出在我的管道中,因为当我直接从 Azure 门户中的部署中心部署它时,部署可以正常工作。以下是我的管道中 3 个相关任务的详细信息:

enter image description here enter image description here enter image description here

最佳答案

我找到了解决方案。事实证明,问题不在管道中,而是由与我之前在 Azure 部署中心设置的应用程序服务的 Git 连接引起的。即使我断开/删除了此 Git 连接,Azure 中仍然存在导致错误的残留文件。我删除了 Kudu 中的“部署”文件夹(如下图所示),管道开始按预期工作。

enter image description here

进入上图 View :

  • 导航到您的 Azure Function 项目
  • 搜索高级工具
  • 打开 PowerShell

关于Azure DevOps 管道返回 : 'Failed to deploy web package to App Service. Internal Server Error (CODE: 500)' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67453259/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com