【问题标题】:Why Azure (Durable) Function Activity in Azure Data Factory is 'NotFound'? - 'Microsoft.WindowsAzure.Storage.StorageException'为什么 Azure 数据工厂中的 Azure(持久)函数活动是“未找到”? - 'Microsoft.WindowsAzure.Storage.StorageException'
【发布时间】:2021-12-01 14:49:31
【问题描述】:

我在 VS Code 中开发了 Azure Durable Function。 function.json 中的 Http Start 路由绑定为 " "route": "orchestrators/{functionName}" 这在本地运行良好。

我现在已经部署到 Azure。编排触发器的名称是“MyOrchestrator”

我现在正尝试从 Azure 数据工厂调用此函数。 函数名称配置为“orchestrators/MyOrchestrator”。我也试过“MyOrchestrator”。

我想知道怎么了。这是兼容性问题吗?授权问题?

在 ADF 中调试时出现错误:

 Call to provided Azure function 'MyOrchestrator' failed with status-'NotFound' and 
    message - 'Invoking Azure function failed with HttpStatusCode - NotFound.'.

Application Insight 中的错误:

   Exception while executing function: Functions.MyHttpStart Result: Failure
Exception: Exception: {'Message': 'Something went wrong while processing your request', 'ExceptionMessage': 'Forbidden', 'ExceptionType': 'Microsoft.WindowsAzure.Storage.StorageException', 'StackTrace': '   
at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteAsyncInternal[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext, CancellationToken token)\n   
at Microsoft.WindowsAzure.Storage.Table.CloudTable.CreateIfNotExistsAsync(TableRequestOptions requestOptions, OperationContext operationContext, CancellationToken cancellationToken)\n 

Application Insight 中的错误

   Inner exception Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcException handled at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw:
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)

host.json 是:

{
  "version": "2.0",
  "extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle",
    "version": "[1.*, 2.0.0)"
  }
}

【问题讨论】:

    标签: azure-data-factory azure-durable-functions


    【解决方案1】:

    请务必添加

    1. 功能应用网址(您可以在功能应用概览页面中找到此网址)
    2. 功能键

    在 Azure 功能链接服务下。

    【讨论】:

    • 正如目前所写,您的答案尚不清楚。请edit 添加其他详细信息,以帮助其他人了解这如何解决所提出的问题。你可以找到更多关于如何写好答案的信息in the help center
    猜你喜欢
    • 2021-12-17
    • 2022-11-11
    • 2020-06-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-25
    • 2022-01-04
    • 1970-01-01
    相关资源
    最近更新 更多