I'm using visual studio 2019 and I created the function app I need to change the value in the local.settings.json file when I run the function app that I want to change the schedule data Cron expression string dynamically
JSON file
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "dotnet",
"schedule": "*/10 * * * * *"
}
}
function app:
[FunctionName("Function3")]
public static async System.Threading.Tasks.Task RunAsync([TimerTrigger("%schedule%")]TimerInfo myTimer, ILogger log)
{
}