Azure函数应用程序不一致地触发
在从事件中心触发的zip部署功能应用程序中,该应用程序的触发不一致(仅在Azure门户中调试应用程序时以及大约15分钟后才会触发)Azure函数应用程序不一致地触发,azure,terraform,azure-eventhub,terraform-provider-azure,Azure,Terraform,Azure Eventhub,Terraform Provider Azure,在从事件中心触发的zip部署功能应用程序中,该应用程序的触发不一致(仅在Azure门户中调试应用程序时以及大约15分钟后才会触发) 这是一个长期的、已知的未决问题,由函数触发器不同步引起(请参阅) 在terraform中添加此local execprovisioner,它使用azure cli来syncfunctiontriggers运行良好 # required to sync the function trigger (event hub trigger); without, funct
这是一个长期的、已知的未决问题,由函数触发器不同步引起(请参阅) 在terraform中添加此
local exec
provisioner,它使用azure cli来syncfunctiontriggers
运行良好
# required to sync the function trigger (event hub trigger); without, function app will trigger inconsistently
provisioner "local-exec" {
command = "az resource invoke-action --resource-group ${azurerm_resource_group.datadog_logs.name} --action syncfunctiontriggers --name ${azurerm_function_app.datadog_logs.name} --resource-type Microsoft.Web/sites"
}
这对我不起作用。运行此命令后,我的一些事件集线器仍然不会触发事件当您转到尝试在门户中触发的功能应用程序时,是否收到任何错误消息?否。它不会触发。如果它不是在本地触发,则问题可能在于代码。该命令专门用于azure中基于zip的部署
# required to sync the function trigger (event hub trigger); without, function app will trigger inconsistently
provisioner "local-exec" {
command = "az resource invoke-action --resource-group ${azurerm_resource_group.datadog_logs.name} --action syncfunctiontriggers --name ${azurerm_function_app.datadog_logs.name} --resource-type Microsoft.Web/sites"
}