Change appsettings.json without restart in app service
- 1 minutes read - 146 wordsNowadays, zero downtime is normal, you can’t believe that in azure app service changes in "app settings", App Service triggers an app restart. The alternative ways to do avoid that is to use sentinel key with App Configuration. however App Configuration will cost a little. Do we really need to use App Configuration to achieve that ?
The naive and obvious way is that changing appsettings.json files via entering the app services using kudo console. There are several open issues with this way, how to sync the changes to other instances in plans with dedicated computes, how to get the changes when switching to other instances in plans with shared computes.
Another way is put appsettings.json into a shared folder and mounted the folder into app. App will reload the configration without restart. It should be workable. I will put a POC code later for this.