1

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

zeee
  • 401
  • 1
  • 6
  • 16

2 Answers2

2

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.

George Chen
  • 13,703
  • 2
  • 11
  • 26
  • the [Update Application Settings](https://learn.microsoft.com/en-us/rest/api/appse) gives a 404. anyway I want to update app settings programmatically. so isn't it easier to use the Rest API ? – zeee Jan 02 '20 at 10:59
  • 1
    Sorry the link miss some parameters, check [this](https://learn.microsoft.com/en-us/rest/api/appservice/webapps/updateapplicationsettings). And if you want to update it with code one way is call the REST API and other way you could refer to this [question answers](https://stackoverflow.com/questions/23874503/change-azure-website-app-settings-from-code). – George Chen Jan 02 '20 at 13:38
  • The [blog post](https://blog.jongallant.com/2017/11/azure-rest-apis-postman/) really helped to get better understanding about the rest api. But i used the Azure Fluent Api approach in this [question answers](https://stackoverflow.com/questions/23874503/change-azure-website-app-settings-from-code) thank you @George Chen – zeee Jan 29 '20 at 12:47
1

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.

4c74356b41
  • 69,186
  • 6
  • 100
  • 141