本文介绍了从ADF调用Azure函数并传递Query String参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从Data Factory调用HTTP触发器Azure函数并为GET传递参数方法如下:


{


    " functionName":" AzFnFileService",


    " method" ;:\"GET",


    "标题":{


   ;      " op" ;:"存在",


        " inputfolder":" src",


        " file":" eula.txt",


        "targetfolder":" tgt"


    },


    "body":""


}



但是,Azure功能似乎无法读取参数/标头。从浏览器调用时,Azure功能完美地工作
。我的Azure功能的返回类型是JObject。有没有人知道如何从ADF为Azure函数传递查询字符串。

解决方案

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.

解决方案


这篇关于从ADF调用Azure函数并传递Query String参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 19:31