Skip to content

Timer Trigger

Schedule periodic jobs with cron expressions and safe idempotent processing.

flowchart LR
    A[Trigger] --> B[Function]
    B --> C[Binding or SDK]
    C --> D[Azure service]

Topic/Command Groups

Timer trigger

[Function("NightlyJob")]
public void NightlyJob([TimerTrigger("0 0 2 * * *")] TimerInfo timer)
{
}

Every 5 minutes heartbeat

[Function("Heartbeat")]
public void Heartbeat([TimerTrigger("0 */5 * * * *")] TimerInfo timer)
{
}

Time zone caveat (WEBSITE_TIME_ZONE)

  • WEBSITE_TIME_ZONE is supported on Windows plans and on Linux Premium/Dedicated plans.
  • WEBSITE_TIME_ZONE is not supported on Linux Consumption or Flex Consumption plans.

See Also

Sources