【发布时间】: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