How to Trigger ADF pipeline from another ADF?

Santosh 21 Reputation points
2022-03-30T08:01:51.467+00:00

I'm trying to trigger one adf(transformation) pipeline from another adf(ingestion) pipeline, Both the adf's are under same subscription but different resources. We don't want to use even hubs. I'm looking for alternative solutions.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
0 comments No comments
{count} votes

Answer accepted by question author
  1. ShaikMaheer-MSFT 38,631 Reputation points Microsoft Employee Moderator
    2022-04-04T16:23:34.863+00:00

    Hi @Santosh ,

    Thank you for posting query in Microsoft Q&A Platform.

    You run pipeline of another ADF from your ADF using web activity.

    As mentioned earlier, below video has detailed steps for same.
    https://www.youtube.com/watch?v=wbURJiKoBlg

    From your error message it seems you have not granted roles or permissions correctly.

    Please check below example, to understand it better.

    Lets say, you have ADF1 which contains Pipeline1. And you have ADF2 which contains a pipeline2. Now your requirement is to run Pipeline1 of ADF1 from Pipeline2 of ADF2.

    In this case, you should make sure that, inside ADF1 Access control, assign contributor role for ADF2. Once roles assigned make sure to wait to 10 to 15 mins and then try to run and see.

    Hope this helps. Please let me know if any concerns.

    ------------------

    Please consider hitting Accept Answer. Accepted answers help community as well.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Nandan Hegde 36,716 Reputation points MVP Volunteer Moderator
    2022-03-30T09:05:10.893+00:00

    Hey,
    You can trigger an ADF pipeline from another ADF pipeline via Web activity through ADF REST API :
    https://medium.com/@rajbca00/execute-azure-adf-pipeline-using-rest-api-76d6cee5c473
    '/createRun?api-version=2018-07-01-preview'

    Another way is you can create a file at the end of 1st pipeline and then use event trigger in another pipeline.

    2 people found this answer helpful.

  2. Santosh 21 Reputation points
    2022-03-31T11:41:04.593+00:00

    @ShaikMaheer-MSFT We have given contributor access to Source adf over target adf, we getting authorization failed error. Both adfs are under same subscriptions but different resource groups. Need help to understand this error. Thanks!
    188754-microsoftteams-image-4.png

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.