如何解决从ARM模板创建资源组时使用FunctionInvokeUrlNotFound
我有一个从先前创建的资源组中导出的ARM模板。我试图基于此模板创建资源组。除LogicApp外,所有内容均已创建。我收到一条错误消息,提示找不到函数“”的调用URL。错误代码:FunctionInvokeUrlNotFound。我甚至在互联网上都找不到类似的问题来解决此问题。
这是我正在使用的ARM模板文件:https://1drv.ms/u/s!AlZTLK9l4tr0hjM02gWfY_JgszJz?e=n1bfYo
解决方法
我知道了。事实证明,缺少一些http触发配置。添加适当的绑定可解决此问题。这是Azure Function的配置:
{
"type": "Microsoft.Web/sites/functions","apiVersion": "2018-11-01","name": "[concat(parameters('sites_HPlusFunctions20200819162035_name'),'/OrderFunction')]","location": "West Europe","dependsOn": [
"[resourceId('Microsoft.Web/sites',parameters('sites_HPlusFunctions20200819162035_name'))]"
],"properties": {
"script_root_path_href": "https://hplusfunctions20200819162035.azurewebsites.net/admin/vfs/site/wwwroot/OrderFunction/","script_href": "https://hplusfunctions20200819162035.azurewebsites.net/admin/vfs/site/wwwroot/bin/HPlusFunctions.dll","config_href": "https://hplusfunctions20200819162035.azurewebsites.net/admin/vfs/site/wwwroot/OrderFunction/function.json","href": "https://hplusfunctions20200819162035.azurewebsites.net/admin/functions/OrderFunction","config": {
"bindings": [
{
"name": "req","webHookType": "genericJson","direction": "in","type": "httpTrigger"
},{
"name": "res","direction": "out","type": "http"
}
]
}
}
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。