简体   繁体   中英

Azure DevOps Custom ServiceHook

I am looking for a way to send a custom HTTP POST on service hook action. Kind of like the default WebHook functionality but with a customised body.

Is there a way to link a custom action to the consumer event?

You can add some proxy like azure function that will reformat your message and if need call Azure DevOps rest api and also get more information, and after reformatting message you send it to final consumer. You can use logic app also for that.

You can use azure logic app as suggested by @Janusz Nowak to send a custom http post on the event in azure devops. You can check out Quickstart: Create your first workflow by using Azure Logic Apps - Azure portal .

After the logic app is created in your azure portal. In the L ogic app designer page choose the Blank Logic App in templates.

In the search box type in azure devops and select a trigger event in azure devops.

在此处输入图片说明

Then you will be prompted to authorize the logic app to connect to your azure devops.

When you complete configuring your organization and project in the event trigger. Click ** + New Step** to add a HTTP action

在此处输入图片说明

You can customize your Http Request in the Http action.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM