Skip to content

Timer Trigger

Schedule periodic jobs with cron expressions and safe idempotent processing.

flowchart TD
    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.

Review Matrix

Review area Page-specific check
Scope Confirm the guidance applies to Timer Trigger.
Source basis Validate the recommendation against the Microsoft Learn sources in this page.
Evidence Capture command output, portal state, metrics, logs, or screenshots before treating the result as proven.

See Also

Sources