Share via

Azure Data Factory

Vipanchi Barkakoti 1 Reputation point
2021-12-17T13:00:20.053+00:00

Hi,

I want to pass a azure data factory pipeline details (pipeline_name and runID) to an azure function to monitor the pipeline details. I want the function to be a generic hence I am not creating the pipeline run within the function.

Please suggest me how to pass the pipeline run ids of pipelines to the

pipeline_run = adf_client.pipeline_runs.get( rg_name, df_name, run_response.run_id)

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.


1 answer

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,631 Reputation points Microsoft Employee Moderator
    2021-12-20T16:42:58.923+00:00

    Hi anonymous user ,

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

    In Azure data factory system variables @pipeline().Pipeline & @pipeline().RunId will give you Pipeline name and Pipeline Run Id respectively.

    Lets assume you have a Azure Function which http trigger type. For that function you can has above Pipeline Name & Pipeline Run id in request body from Azure Function activity. Click here to know more about Azure Function activity.

    In below demo Video, user trying to pass similar details via request body to Logic app which is http trigger type. You can refer that to get idea about how to compose request body in your case.
    https://www.youtube.com/watch?v=4Hcvn9TQ5fM

    Hope this will help. Please let us know if any further queries.


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

    Was this answer helpful?


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.