从 Azure 数据工厂调用 Azure 函数端点时出错
Error calling the azure function endpoint from azure data factory
我在数据工厂管道中链接了 azure 函数,它将文本文件写入 blob 存储
azure 函数在独立执行时工作正常,并将文件写入 blob 存储
但是当我 运行 来自数据工厂的 azure 函数
时,我遇到了下面提到的错误
{
"errorCode": "3600",
"message": "Error calling the endpoint.",
"failureType": "UserError",
"target": "Azure Function1"
}
我已将 Azure 函数配置为使用 blobendpoint 和共享访问签名访问 blob,如下所述
"AzureWebJobsStorage": "DefaultEndpointsProtocol=https;AccountName=XYZ;AccountKey=XYZ;BlobEndpoint=ABC;SharedAccessSignature=AAA"
如果我需要在 blob 存储中进行一些额外的属性更改才能从数据工厂成功访问 azure 函数,请告诉我
你的 azure 函数中的触发器是什么? http触发器?
另外,您的 azure 函数是如何受到保护的?
如果使用 AAD 进行保护,则需要 Bearer 令牌。
如果您使用的是键,则需要 x 功能键。
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook#authorization-keys
这是来自 channel9 的一段视频,可能对您有帮助:
运行 来自 Azure 数据工厂管道的 Azure Functions
https://channel9.msdn.com/Shows/Azure-Friday/Run-Azure-Functions-from-Azure-Data-Factory-pipelines
ADF 管道中的 Azure 函数 Activity 期望 Azure 函数 return JSON 对象而不是 HttpResponseMessage。
这是我们解决它的方法:
https://microsoft-bitools.blogspot.com/2019/01/introducing-azure-function-activity-to.html
我在数据工厂管道中链接了 azure 函数,它将文本文件写入 blob 存储 azure 函数在独立执行时工作正常,并将文件写入 blob 存储 但是当我 运行 来自数据工厂的 azure 函数
时,我遇到了下面提到的错误{
"errorCode": "3600",
"message": "Error calling the endpoint.",
"failureType": "UserError",
"target": "Azure Function1"
}
我已将 Azure 函数配置为使用 blobendpoint 和共享访问签名访问 blob,如下所述
"AzureWebJobsStorage": "DefaultEndpointsProtocol=https;AccountName=XYZ;AccountKey=XYZ;BlobEndpoint=ABC;SharedAccessSignature=AAA"
如果我需要在 blob 存储中进行一些额外的属性更改才能从数据工厂成功访问 azure 函数,请告诉我
你的 azure 函数中的触发器是什么? http触发器? 另外,您的 azure 函数是如何受到保护的? 如果使用 AAD 进行保护,则需要 Bearer 令牌。 如果您使用的是键,则需要 x 功能键。 https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook#authorization-keys
这是来自 channel9 的一段视频,可能对您有帮助:
运行 来自 Azure 数据工厂管道的 Azure Functions
https://channel9.msdn.com/Shows/Azure-Friday/Run-Azure-Functions-from-Azure-Data-Factory-pipelines
ADF 管道中的 Azure 函数 Activity 期望 Azure 函数 return JSON 对象而不是 HttpResponseMessage。 这是我们解决它的方法: https://microsoft-bitools.blogspot.com/2019/01/introducing-azure-function-activity-to.html