azureazure-functionsazure-pipelinesazure-runbook

How to trigger a webhook after azure pipeline run completes


I have an azure runbook that has some Python code. And this runbook needs to be triggered as soon as an azure pipeline runs successfully. Note: I cannot make changes to the pipeline steps or the pipeline. This should be done via configurations or some workarounds.

Our customers have 100s of pipelines/pipeline jobs, so changing the pipelines to 'add' one more step to trigger the webhook is not feasible.


Solution

  • This could be achieved through the webhooks functionality natively offered by Azure DevOps, see: Webhooks with Azure DevOps - Azure DevOps | Microsoft Learn.

    If the pipelines are YAML pipelines or classic build pipelines then you'll want to select the Build completed event type.

    enter image description here