How to trigger Azure Datafactory-v2 via rest api?

Viewed 8177

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?

1 Answers

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.

Related