简体   繁体   English

从azure数据工厂调用azure函数端点时出错

[英]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.

相关问题 从数据工厂管道触发器调用azure函数时出错 - Error calling the azure function from data factory pipeline trigger 从 Azure 数据工厂 (ADF) 调用 Azure Function 时出现异常 - Exception while calling Azure Function from Azure Data Factory (ADF) 从数据工厂授权 Azure Function 应用程序 Http 端点 - Authorising Azure Function App Http endpoint from Data Factory 从Azure数据工厂调用Azure AD安全功能 - Calling Azure AD secure functions from Azure Data Factory Azure 数据工厂和调用 Azure 批处理作业 - Azure Data Factory and Calling an Azure Batch Job 3603 Azure function 中的用户配置问题错误 Azure 数据工厂 - 3603 User configuration issue error in Azure function on Azure Data Factory 通过HTTP GET从API终结点增量复制数据(增量数据)到Azure Data Factory上的Azure SQL DB - Copying data incrementally (delta data) from an API endpoint by HTTP GET to an Azure SQL DB on Azure Data Factory 使用Azure Data Factory将HTTP端点中的数据加载到Azure Data Lake中 - Data from HTTP endpoint to be loaded into Azure Data Lake using Azure Data Factory 无法通过Azure功能运行Azure数据工厂 - Can't run Azure data factory from Azure function 从Azure功能调用Asp.Net Web API端点 - Calling Asp.Net Web API endpoint from Azure function
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM