Reputation: 41
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
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:
,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.
Finally,you could call the Pipelines - Create Run REST api and provide auth token in the header
.
Upvotes: 2