Getting 404 when trying to call Azure Web App url using Service hooks in Azure devops

181 Views Asked by At

Created a new web app using git repo code, however when I try to call web app url using service hook in ADO, getting 404 error.

What web app url should I use here?

Currently am using default domain url which can be found on overview page of web app along with 'api/receiver/webhook/workitem/update' as mentioned in the repo.

1

There are 1 best solutions below

2
On

According to this MS Document Automate State Transitions Github project is no longer supported in the Azure Boards and the same repository is now Archived by the author.

enter image description here

I deployed the same web app from the Github project and tried adding it to the Webhook and received the same error, Refer below:-

enter image description here

enter image description here

enter image description here

As a workaround you can Deploy an Asp.net core API in your Azure Web app or integrate any third party API with your current web app, Refer my SO thread answer for deploying the API and then use it in your PostURL like below:-

I am using a sample - reqres.in/api/users API

enter image description here

enter image description here

If you want to link your build and release of your Azure Web app to your Work Items Link your Deployment to the work item for the Deployment tracking. Refer here.

enter image description here

If you want to send a Post HTTP request after the Work Item is updated you can make use of Azure Logic Apps as an alternative and utilize HTTP Request and Work Item connectors, Refer below:-

enter image description here