Priya Jha
Priya Jha

Reputation: 111

Trigger Azure Devops pipeline via ADF

Is it possible to trigger an azure DevOps pipeline via ADF through web activity?

If not then how to trigger via ADF?

Upvotes: 0

Views: 2570

Answers (3)

Nandan
Nandan

Reputation: 4925

It is not possible to trigger an Azure Devops release pipeline from ADF. But you can use a logic app to trigger the same and in turn call the logic app through ADF via web activity.

enter image description here

Upvotes: 1

Leon Yue
Leon Yue

Reputation: 16401

For data factory, you only can add the pipeline trigger: enter image description here

When the pipeline runs, the web active will run and call the azure DevOps pipeline. You can use REST API like Jane said. We can not trigger the azure DevOps pipeline directly. There isn't a active can achieve that.

HTH.

Upvotes: 0

Jane Ma-MSFT
Jane Ma-MSFT

Reputation: 5222

As of this time, however, there isn't an existing function that support Azure Data Factory to trigger Azure DevOps pipeline.

But there is a REST API Runs - Run Pipeline that can queue a pipeline outside the Azure DevOps which may help you.

POST https://dev.azure.com/{organization}/{project}/_apis/pipelines/{pipelineId}/runs?api-version=6.0-preview.1

Here is an example of the request body:

{
    "stagesToSkip": [],
    "resources": {
        "repositories": {
            "self": {
                "refName": "refs/heads/main"
            }
        }
    },
    "variables": {}
}

Upvotes: 1

Related Questions