AZFD0015: Timer trigger schedule is not a CRON expression

This event occurs when the schedule for an Azure Functions Timer trigger running in a Consumption plan is configured with a non-CRON expression (such as a TimeSpan). For these hosting plans, the scale controller only supports CRON expressions.

Value
Event ID AZFD0015
Severity Warning

Event description

Timer triggers support both CRON expressions and constant interval expressions (such as TimeSpan values like "00:05:00"). However, the scale controller used by the Consumption plans can only interpret CRON expressions. When a non-CRON schedule is used when hosted on these plans, the timer trigger starts and fires correctly, but the scale controller can't interpret the schedule. This behavior can lead to unexpected scaling behavior.

This warning currently applies to Consumption plan apps running on Linux. For Consumption plan apps running on Windows, non-CRON expressions are blocked entirely, which results in a startup error.

How to resolve the event

Replace the schedule expression for your Timer trigger with an equivalent CRON expression. CRON expressions can use either five fields (minute granularity) or six fields (second granularity).

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).

For more information on CRON expressions in Azure Functions, see NCRONTAB expressions in the Timer trigger reference.

When to suppress the event

This event shouldn't be suppressed. While the timer fires correctly today, the scale controller can't interpret non-CRON schedules, which can cause scaling issues. Migrating to a CRON expression ensures correct behavior.