[英]Error calling the azure function endpoint from azure data factory
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 我已经在数据工厂管道中链接了azure函数,该函数将文本文件写入blob存储中。当独立执行时,azure函数工作正常,并将文件写入blob存储中。但是,当我从数据工厂运行azure函数时,我面临以下错误
{
"errorCode": "3600",
"message": "Error calling the endpoint.",
"failureType": "UserError",
"target": "Azure Function1"
}
I have configured the azure fucntion to access the blob with blobendpoint and shared access signature as mentioned below 我已经将天蓝色功能配置为使用blobendpoint和共享访问签名访问blob,如下所述
"AzureWebJobsStorage": "DefaultEndpointsProtocol=https;AccountName=XYZ;AccountKey=XYZ;BlobEndpoint=ABC;SharedAccessSignature=AAA"
Please let me know if i need to make some additional properties changes in blob storage to access azure function successfully from data factory 请让我知道是否需要在Blob存储中进行一些其他属性更改以从数据工厂成功访问Azure函数
What is the trigger in your azure function? 天蓝色函数中的触发器是什么? http trigger? http触发器? Also how is your azure function protected? 另外,天蓝色功能如何受到保护? if protected using AAD you need Bearer token. 如果使用AAD保护,则需要Bearer令牌。 if you are using keys you need x-function key. 如果您使用的是按键,则需要x功能键。 https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook#authorization-keys https://docs.microsoft.com/zh-cn/azure/azure-functions/functions-bindings-http-webhook#authorization-keys
Here is a video from channel9 that might help: 这是来自channel9的视频,可能会有所帮助:
Run Azure Functions from Azure Data Factory pipelines 从Azure数据工厂管道运行Azure函数
https://channel9.msdn.com/Shows/Azure-Friday/Run-Azure-Functions-from-Azure-Data-Factory-pipelines https://channel9.msdn.com/Shows/Azure-Friday/Run-Azure-Functions-from-Azure-Data-Factory-pipelines
The Azure Function Activity in the ADF pipeline expects the Azure Function to return a JSON object instead of an HttpResponseMessage. ADF管道中的Azure函数活动期望Azure函数返回JSON对象而不是HttpResponseMessage。 Here is how we solved it: https://microsoft-bitools.blogspot.com/2019/01/introducing-azure-function-activity-to.html 这是我们解决问题的方法: https : //microsoft-bitools.blogspot.com/2019/01/introducing-azure-function-activity-to.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.