Azure Function timer configure through app settings

Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Azure Function timer configure through app settings

Message par Clippy »

Azure Function timer configure through app settings
Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Re: Azure Function timer configure through app settings

Message par Clippy »

Set your schedule as `"schedule": "%EmailScheduleTriggerTime%"` and then in the **appsetting.json or local.settings.json** you can set EmailScheduleTriggerTime value as **`"0 30 9-12 * * *"`**

```
{
"IsEncrypted": false,
"Values": {
"EmailScheduleTriggerTime": "0 30 9-12 * * *", //Run every 30 minutes from 9:00 to 12:00

},
"ConnectionStrings": {
"DefaultConnection": ""
}
}

[FunctionName("TimerfunctionApp")]
public static void Run([TimerTrigger("%EmailScheduleTriggerTime%")] TimerInfo TInfo, TraceWriter log)

```
Répondre

Revenir à « Azure Infrastructure »