在消费计划上运行的Azure函数,不是由Blob事件触发的 [英] Azure function running on consumption plan, not triggered by blob events

查看:57
本文介绍了在消费计划上运行的Azure函数,不是由Blob事件触发的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

功能是在消耗计划上运行的blobtrigger类型的功能,用于将blob从源存储复制到目标存储.

当我通过门户浏览功能应用程序时,将调用功能并按预期方式执行所需的操作.此后,它工作正常.仅当功能应用最初由Powershell脚本使用ARM模板部署时才会发生.

所以我想问题是,当我使用ARM模板创建功能应用程序并使用Powershell进行部署时,它处于空闲模式,并且从未被blob事件触发.我的假设是正确的,还是请您帮我发现问题? 

解决方案

部署网站时,后台调用以同步触发器.这可以让您的网站在某些东西触发时醒来并运行.我怀疑这是行不通的.

您是否已根据 ).


I have a azure function created with ARM Template by using powershell.

Function is blobtrigger type function running on consumption plan, to copy blob from source storage to destination storage.

When I upload blob to source storage it will not copied. That means function is not executed.

When I browse function app through portal, function get invoked and do the required things as expected. Thereafter it works fine. It only happens when function app initially deployed by powershell script using ARM templates.

When I use App service plan instead of Consumption plan, everything works fine. 

So I guess Issue is, when I create function app using ARM template and deployed using powershell it is in idle mode, and never triggered by blob events. Is my assumption correct or could you please help me to find the issue. 

解决方案

When you deploy your site, there is a background call to sync the triggers. This allows your site to wake up and run when something triggers it. I'm suspecting that this isn't working.

Did you double-check your setup against the docs here

If so, can you share your ARM template and/or share your site name (you can do this privately).


这篇关于在消费计划上运行的Azure函数,不是由Blob事件触发的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆