尝试在 Azure devops 中使用服务挂钩调用 Azure Web App url 时收到 404

问题描述 投票:0回答:1

使用 git repo 代码创建了一个新的 Web 应用程序,但是当我尝试使用 ADO 中的服务挂钩调用 Web 应用程序 url 时,出现 404 错误。

我应该在这里使用什么网络应用程序网址?

目前正在使用默认域 URL,可以在 Web 应用程序的概述页面上找到它以及存储库中提到的“api/receiver/webhook/workitem/update”。

azure-web-app-service http-status-code-404 azure-service-hooks
1个回答
0
投票

根据此MS Document自动状态转换Github项目在Azure Boards中不再支持,相同的存储库现在由作者存档。

enter image description here

我从 Github 项目部署了相同的 Web 应用程序,并尝试将其添加到 Webhook 并收到了相同的错误,请参阅下文:-

enter image description here

enter image description here

enter image description here

作为解决方法,您可以在 Azure Web 应用程序中部署

Asp.net core API
或将任何第三方 API 与当前的 Web 应用程序集成,请参阅我的 SO 线程答案以部署 API,然后在您的 PostURL 中使用它,如下所示:-

我正在使用示例 - reqres.in/api/users API

enter image description here

enter image description here

如果要将 Azure Web 应用程序的构建和发布链接到工作项,请将部署链接到工作项以进行部署跟踪。请参考这里

enter image description here

如果您想在工作项更新后发送 Post HTTP 请求,您可以使用 Azure 逻辑应用作为替代方案,并利用 HTTP 请求和工作项连接器,请参阅下文:-

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.