I need to programmatically add new application settings to azure functions without having to add it manually from the azure portal every time I introduce a new setting. Is there any nuget package or some tool which i can use to automate this?
The idea is that when we deploy from one environment to another to automate this process without having to do this manually.
Thanks in advance.
Use the .Net core configuration management style, contained in package
Microsoft.Extensions.Configuration. Thelocal.settings.jsonfile isn't published to Azure, and instead, Azure will obtain settings from the Application Settings associated with the Function.In your function add a parameter of type
Microsoft.Azure.WebJobs.ExecutionContextcontext, where you can then build anIConfigurationRootprovider: Example :Once when its deployed to Azure, you can change the values of the settings on the function Application Settings.