Skip to content

Commit 3ea4acb

Browse files
committed
Add AZFD0015 diagnostic event documentation
1 parent 56306eb commit 3ea4acb

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

articles/azure-functions/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,6 +1060,8 @@
10601060
href: errors-diagnostics/diagnostic-events/azfd0012.md
10611061
- name: AZFD0013
10621062
href: errors-diagnostics/diagnostic-events/azfd0013.md
1063+
- name: AZFD0015
1064+
href: errors-diagnostics/diagnostic-events/azfd0015.md
10631065
- name: host.json 2.x reference
10641066
href: functions-host-json.md
10651067
- name: host.json 1.x reference
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: "AZFD0015: Timer trigger schedule is not a CRON expression"
3+
titleSuffix: "Azure Functions"
4+
description: "Learn how to troubleshoot the event 'AZFD0015: Timer trigger schedule is not a CRON expression' in Azure Functions."
5+
ms.topic: error-reference
6+
ms.date: 02/10/2026
7+
8+
---
9+
10+
# AZFD0015: Timer trigger schedule is not a CRON expression
11+
12+
This event occurs when a timer trigger is configured with a non-CRON schedule expression (such as a `TimeSpan`) on a Consumption plan where the scale controller only supports CRON expressions.
13+
14+
| | Value |
15+
|-|-|
16+
| **Event ID** |AZFD0015|
17+
| **Severity** |Warning|
18+
19+
## Event description
20+
21+
Azure Functions timer triggers support both [CRON expressions][cron] and constant interval expressions (such as `TimeSpan` values like `"00:05:00"`). However, the scale controller used by Consumption plans only understands CRON expressions. When a non-CRON schedule is used on these plans, the timer trigger starts and fires correctly, but the scale controller can't interpret the schedule. This may lead to unexpected scaling behavior.
22+
23+
This warning currently applies to Linux Consumption plans. On Windows Consumption and Flex Consumption plans, non-CRON expressions are blocked entirely and produce a startup error.
24+
25+
## How to resolve the event
26+
27+
Replace your timer trigger's schedule expression with an equivalent CRON expression. CRON expressions can use either 5 fields (minute granularity) or 6 fields (second granularity).
28+
29+
For example, instead of a `TimeSpan` of `"00:05:00"` (every 5 minutes), use the CRON expression `"0 */5 * * * *"` (6-digit) or `"*/5 * * * *"` (5-digit).
30+
31+
For more information on CRON expressions in Azure Functions, see [Timer trigger for Azure Functions][timer-trigger].
32+
33+
## When to suppress the event
34+
35+
This event shouldn't be suppressed. While the timer fires correctly today, the scale controller can't interpret non-CRON schedules, which may result in scaling issues. Migrating to a CRON expression ensures correct behavior.
36+
37+
[cron]: /azure/azure-functions/functions-bindings-timer#ncrontab-expressions
38+
[timer-trigger]: /azure/azure-functions/functions-bindings-timer

0 commit comments

Comments
 (0)