Avishek Gulshan
Avishek Gulshan

Reputation: 41

How to trigger Azure Datafactory-v2 via rest api?

I am new to Azure and Azure Data Factory. I have built a pipeline in Azure Data Factory and now I am trying to trigger the pipeline via rest API from javascript but I am not able to find any concrete solution. Can anybody help?

Upvotes: 3

Views: 12890

Answers (1)

Jay Gong
Jay Gong

Reputation: 23792

Based on your description, you already have created pipeline in your adf account.You could use Azure Data Factory Pipelines - Create Run REST api to execute it.

Before this process, you need to generate Authorization token in Headers. You could refer to ADAL nodejs sdk to generate token. If you don't know what are these parameters:

enter image description here

,then please refer to this tutorial and this blog to get concepts of them. And please note that you also need to grant ADFpermission to your ad app.

enter image description here

enter image description here

Finally,you could call the Pipelines - Create Run REST api and provide auth token in the header.

Upvotes: 2

Related Questions