从azure数据工厂调用azure函数终结点时出错 [英] Error calling the azure function endpoint from azure data factory
问题描述
我已经在数据工厂管道中链接了azure函数,该函数将文本文件写入blob存储单独执行时,azure函数可以正常工作,并将文件写入blob存储但是当我从数据工厂运行azure函数时,我面临以下提到的错误
I have linked azure function in data factory pipeline which writes the text file to blob storage The azure function works fine when executed independently and writes the file to blob storage But i am facing below mentioned error when i run the azure function from data factory
{
"errorCode": "3600",
"message": "Error calling the endpoint.",
"failureType": "UserError",
"target": "Azure Function1"
}
我已将天蓝色功能配置为使用blobendpoint和共享访问签名访问blob,如下所述
I have configured the azure fucntion to access the blob with blobendpoint and shared access signature as mentioned below
"AzureWebJobsStorage": "DefaultEndpointsProtocol=https;AccountName=XYZ;AccountKey=XYZ;BlobEndpoint=ABC;SharedAccessSignature=AAA"
请让我知道是否需要在blob存储中进行一些其他属性更改以从数据工厂成功访问azure函数
Please let me know if i need to make some additional properties changes in blob storage to access azure function successfully from data factory
推荐答案
azure函数中的触发器是什么?http触发器?另外,您的天蓝色功能如何受到保护?如果使用AAD保护,则需要Bearer令牌.如果您使用的是按键,则需要使用x功能键. https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook#authorization-keys
What is the trigger in your azure function? http trigger? Also how is your azure function protected? if protected using AAD you need Bearer token. if you are using keys you need x-function key. https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook#authorization-keys
这是来自第9频道的视频,可能会有所帮助:
Here is a video from channel9 that might help:
从Azure数据工厂管道运行Azure函数
Run Azure Functions from Azure Data Factory pipelines
https://channel9.msdn.com/Shows/Azure-Friday/Run-Azure-Functions-from-Azure-Data-Factory-pipelines
这篇关于从azure数据工厂调用azure函数终结点时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!