locked
Call Azure Function from ADF and pass Query String parameters RRS feed

  • Question

  • I am trying to call a HTTP trigger Azure Function from Data Factory and pass parameters for GET method as follows:

    {

        "functionName": "AzFnFileService",

        "method": "GET",

        "headers": {

            "op": "exist",

            "inputfolder": "src",

            "file": "eula.txt",

            "targetfolder": "tgt"

        },

        "body": ""

    }

    However, it seems Azure Function is not able to read the parameters/headers. The Azure Function works perfectly fine when called from Browser. The return type for my Azure Function is a JObject. Does anybody know how to pass Query String from ADF for Azure Function.

    Wednesday, February 20, 2019 5:18 AM

All replies

  • Hi Rahul,

    Everything looks fine from ADF end. I have tried out the same on my instance and am able to receive all headers in the Azure function.

    Are you getting any error ? Please make sure you are using the right syntax to get headers. For example :

    In C#, it would be something like :

    string header1 = req.Headers["op"];

    In NodeJS, it could be something like :

    req.headers['op']


    MSDN

    Thursday, February 21, 2019 9:48 AM
  • Hi Rahul,

    Just wanted to know - Was your query resolved ?


    MSDN

    Tuesday, February 26, 2019 6:59 AM