how to trigger adf from azure functions?

Aakash Patro 1 Reputation point
2022-09-15T06:48:40.513+00:00

Hi i am trying to trigger a adf pipeline using azure function as a rest post to create_run pipeline . but facing an issue with the authentication . and also how can i debug the rest api call locally ?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,306 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,617 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,593 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. risolis 8,701 Reputation points
    2022-09-15T06:55:58.947+00:00

    Hello @Aakash Patro

    Thank you for your heads up.

    I would like to provide the next post which seems very similar for what you were describing previously.... So please direct yourself down below:

    https://learn.microsoft.com/en-us/answers/questions/801055/authenticate-azure-functions.html

    I hope you can find this useful to address your concern.

    Looking forward to your feedback,

    Cheers,

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


  2. ShaikMaheer-MSFT 37,896 Reputation points Microsoft Employee
    2022-09-19T07:13:17.54+00:00

    Hello @Aakash Patro ,

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

    If I uderstand correctly, from your Azure Function code you want to communicate with Azure Data factory to perform various activities. Please correct me if I am wrong.

    To do this you need to consider creating a DataFactoryManagementClient object first. Once its created on top of this client object you have so many methods or functions to helps to perform various activities.

    Click here to know the steps to create a DataFactoryManagementClient client object.
    Click here to know SDK details of DataFactoryManagementClinet class

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

    ----------

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