Azure Function timer configure through app settings
Azure Function timer configure through app settings
Azure Function timer configure through app settings
Re: Azure Function timer configure through app settings
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)
```
```
{
"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)
```