question

cdanner-9541 avatar image
0 Votes"
cdanner-9541 asked sadomovalex answered

Azure Timer Trigger not firing

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AnuragSingh-MSFT avatar image
0 Votes"
AnuragSingh-MSFT answered AnuragSingh-MSFT commented

Hi @cdanner-9541,

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.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @cdanner-9541,
Following up if you got a chance to look into my answer. Let me know if you have any queries or concerns.

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

0 Votes 0 ·
sadomovalex avatar image
0 Votes"
sadomovalex answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.