从 azure 数据工厂调用 azure 函数端点时出错 [英] Error calling the azure function endpoint from azure data factory

查看:22
本文介绍了从 azure 数据工厂调用 azure 函数端点时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在数据工厂管道中链接了 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"
}

我已将 azure 函数配置为使用 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 Functions

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆