V2 Azure消费触发功能未触发=& gt;与功能v1触发器相同。 [英] V2 Azure Consumption Trigger Function not triggering => same as functional v1 trigger.

查看:96
本文介绍了V2 Azure消费触发功能未触发=& gt;与功能v1触发器相同。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  1. 您使用的是消费还是应用服务计划=>消费
  2. 如果消费,您是如何部署的?如果是App Service Plan,您是否启用了Always On? => Azure Dev Ops Git
  3. 您使用的是v1运行时还是v2(预览版)运行时? => v2
  4. 你在设置  WEBSITE_TIME_ZONE ? =>不,适应UTC和本地之间的区别
  5. 您的CRON表达式设置为什么? =>  public static void Run([TimerTrigger(" 0 * / 5 * * * *")] TimerInfo myTimer,ILogger log)
  6. 给出特定的UTC时间你希望你的函数被调用。 =>每隔5分钟
  7. 最重要的是,包括样本调用ID =>  7b743271-e5f2-4742-82c9-0aaadbeea333


所以现在我在手动点击门户网站刷新后工作了。


它多久会停止为我工作? 每次部署后?


解决方案

看起来像是同步触发器问题。正如您已经提到过的那样 点击
刷新按钮 
为您在门户网站中的功能提供帮助。




导致Azure函数不触发的
最常见的问题是某些部署或IDE没有

触发消费计划的同步
 

中央听众
。这在
GitHub线程中解释。







https://github.com/Azure/Azure-Functions/issues/210



  1. Are you using Consumption or App Service Plan => Consumption
  2. If Consumption, how did you deploy? If App Service Plan, do you have Always On enabled? =>Azure Dev Ops Git
  3. Are you using the v1 runtime, or the v2 (Preview) runtime? => v2
  4. Are you setting WEBSITE_TIME_ZONE? => No, accomodated for difference between UTC and Local
  5. What is your CRON expression set to? => public static void Run([TimerTrigger("0 */5 * * * *")]TimerInfo myTimer, ILogger log)
  6. Give a specific UTC time at which you expected your function to get called. => Every 5 minutes
  7. And most importantly, include a sample invocation ID => 7b743271-e5f2-4742-82c9-0aaadbeea333

So this is now working after I manually hit refresh in the portal.

How often is it just going to stop working for me?  After each deploy?

解决方案

Seems like a sync triggers issue. As you have already mentioned that clicking the refresh button for your function in the portal helps.

The most common issue for causing Azure Functions not to trigger is that some deployment or IDEs do not trigger a synchronization on a consumption plan with the central listener. This is explained in this GitHub thread.

https://github.com/Azure/Azure-Functions/issues/210


这篇关于V2 Azure消费触发功能未触发=& gt;与功能v1触发器相同。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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