0
votes

I want to update an app setting in azure function in runtime. So far the only way i found to update is through the ARM API. Is there any other way to update app settings in azure functions ? Also im using postman to try out the ARM API calls. How can we configure authentication in PostMan to access ARM API

2
why dont you do with CI CD? - Sajeetharan
I want to do it in run-time. Basically the need is to disable the function in case of an exception. - zeee

2 Answers

2
votes

If you want to use the REST API:Update Application Settings to update the settings, remember before updating the settings use the list settings api to get the existing settings, cause the update api actually is used to replace all the application settings of an app.

Except this, you could also try the Azure Cli:az webapp config appsettings set and Powershell:Set-AzureRmWebApp, you could use these to update or add settings, this won't replace all settings.

1
votes

There's an official document covering that and a blog post going through that in detail

But you might want to look at the ARM Templates or Azure Cli\Powershell for that.