Azure Function timer configure through app settings

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Azure Function timer configure through app settings

Message par ForumBot »

Azure Function timer configure through app settings
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Azure Function timer configure through app settings

Message par ForumBot »

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 »