gpt4 book ai didi

Azure 预编译函数不可用于逻辑应用

转载 作者:行者123 更新时间:2023-12-03 03:09:22 28 4
gpt4 key购买 nike

我们在 VB.NET 中使用 Visual Studio 2017 和 azure 预编译函数。所有函数均使用 func.exe CLI 工具在本地成功运行。我们可以将 Function App 发布到 Azure,我们可以在门户中查看和测试。

当我们尝试将这些函数用作逻辑应用的一部分时,就会出现问题。我们可以添加一个选择 Azure Functions 的操作,并可以看到我们的函数应用程序,但没有任何底层函数可用/缺失。

我错过了什么?

编辑我正在使用 http 触发器和网络 Hook 。

编辑确实是自定义路由

最佳答案

我在使用逻辑应用程序时遇到了类似的问题。我的一些 HttpTrigger 函数工作正常,而另一些则不行。我发现唯一的区别是路由。使用自定义路由的函数未显示在逻辑应用操作选择器中。我刚刚删除了自定义路线,一切正常。

我在这里提出了一个问题:

**编辑:**以下是 Azure 团队的回答:

This is by design. As Functions with routes as the way the Azure Function is invoked from Logic Apps is via calling an API "list invoke URL." That URL will look something like https://function.azurewebsites.net/api/my/{custom}/route?code=123 and Logic App doesn't have a way to parse the route template. In other words we don't know what is static, and what should be replaced, and don't have a way to "replace" that with the native action.

You can get around it by providing an OpenAPI definition for the function and we will render the card based on the path parameters specified in swagger. Can also not use route if need to show in Logic Apps.

关于Azure 预编译函数不可用于逻辑应用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47695448/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com