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) { }
https://stackoverflow.com/questions/66829731/how-to-change-value-in-the-local-settings-json-file-in-function-app March 27, 2021 at 05:19PM
没有评论:
发表评论