如何从Azure数据工厂触发Azure持久函数?



我已经完成了持久函数Python教程,并部署到Azure函数。https://learn.microsoft.com/en-us/azure/azure-functions/durable/quickstart-python-vscode

我已经成功测试触发功能(未更改教程代码尚未)http://.azurewebsites.net/api/orchestrators/HelloOrchestrator

我正在阅读持久函数提示http://datanrg.blogspot.com/2020/10/using-durable-functions-in-azure-data.html

如何触发Azure数据工厂?

1. I tried to add "Azure Function" activity from Azure Data Factory
2. I created Linked Service and entered function name "orchestrators/{HelloOrchestrator}"
3. Selected Method as POST
4. Body set as {"timezone":"Eastern Standard Time"}
4. Add Trigger => " Operation on target Azure Function1 failed: Call to provided Azure function 'orchestrators/{HelloOrchestrator}' failed with status-'InternalServerError' and message - 'Invoking Azure function failed with HttpStatusCode - InternalServerError.'. "

我想知道是否使用错误的活动?

我认为你有正确的活动,你可能只是改变一个唯一的名字除了那些在你所引用的文档。确保在所有引用中都重命名。

重新检查函数名是否正确:

将完整占位符orchestrators/{FunctionName}替换为功能名称orchestrators/HelloOrchestrator

,HelloOrchestrator表示DurableFunctions-Orchestrator由HTTP启动器函数触发。而不是HTTP启动器函数本身。

你应该在函数活动中提供的函数名是DurableFunctions-Orchestrator的。确保你已经更新了路由参数在DurableFunctions-Starter绑定到orchestrators/HelloOrchestrator

此外,要检查内部错误的详细信息,您必须检查函数日志。应用程序洞察日志可以检查触发app函数引发的异常。

访问Kudu服务,请遵循以下步骤:

进入门户网站的功能应用程序->在Development Tools下选择高级工具->调试控制台(CMD) ->日志→应用程序(C: 家庭 程序日志功能)→选择相应的文件夹→日志文件。

最新更新