I am currently reading the Schedule parameter for my Azure Function Timer Trigger from local.settings.json. However, I would like to read it from Azure App Configuration instead. The problem is that since the configuration is connected after the project has started, I am unable to read it from there. Can anyone suggest a solution?
In my Azure Functions project, I have already set up Azure App Configuration and have the necessary connection details. I want to retrieve the Schedule parameter dynamically from Azure App Configuration so that any changes to the Schedule in the configuration are reflected without restarting the Azure Function.
By the way, I don't have any issues reading a key from IConfiguration within any function.
Any help or suggestions would be greatly appreciated. Thank you!







The issue is azure function needs this before starting execution, when you use the %SOMETHING% then it tries to read it from the azure function app configurations (local.setting.json, Environment or azure function configuration on azure portal).
if it finds these values then it will run the host builder things.
What to do?
For local development you can use the local.settings.json and when you are deploying it on azure you can use something called configuration referencing.
OR you can also use this locally, try to add this in local.settings.json
example
Make sure, while for local you have the access and for deployed version application has access to the azure app configuration.
This thing is still in preview so I wont recommend it to use in production.