Azure Timer Trigger not firing

cdanner 6 Reputation points
2021-08-25T04:56:35.197+00:00

Strange behavior. Azure trigger on 15min cron schedule fires reliably every 15min for hours, then stops working until I login to portal, at which point it starts up again on it's own. Almost like me authenticating brings it back to life. Just getting started with functions, but this seems like a strange one.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,264 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. AnuragSingh-MSFT 19,856 Reputation points
    2021-08-26T10:26:01.287+00:00

    Hi @cdanner ,

    Welcome to Microsoft Q&A!
    The most common cause for Azure Functions not getting triggered is that triggers are not synced properly. You can sync triggers in one of three ways:

    • Restart your function app in the Azure portal
    • Send an HTTP POST request to https://{functionappname}.azurewebsites.net/admin/host/synctriggers?code=<API_KEY> using the master key.
    • Send an HTTP POST request to https://management.azure.com/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP_NAME>/providers/Microsoft.Web/sites/<FUNCTION_APP_NAME>/syncfunctiontriggers?api-version=2016-08-01. Replace the placeholders with your subscription ID, resource group name, and the name of your function app.

    More details available here: Trigger syncing

    In case you are still facing this issue, the wiki article below should help to investigate it further - Investigating and reporting issues with timer triggered functions not firing

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.


  2. sadomovalex 3,626 Reputation points
    2021-08-31T14:32:55.577+00:00

    which CRON expression do you use? For running every 15 minutes the following expression may be used: "0 */15 * * * *". We use timer-triggered functions quite frequently and didn't have this issue so far. May be there is some problem with Azure function app? Try to create new Azure function app and deploy your AF there.

    0 comments No comments