Reputation: 111
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
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.
Upvotes: 1
Reputation: 16401
For data factory, you only can add the pipeline trigger:
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
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