I have an application deployed hosted as Azure Web apps and I want to create multiple environments for it: staging, QA, Live using deployment slots.
I keep all of the apps configurations in web.config and I would like to keep them there. I know that web apps have a configuration section, but I would like to use web.config.
My question is: when swapping between slots, is there a way of ignoring the web.config file so that each slot (environment) keeps it's own configuration file?
Thanks
There is no way to ignore web.config during swap. When you swap, all files get swapped.
The mechanism to solve this is to use slot settings as described in the doc. That can be used to set the value of App Settings and Connection Strings in a way that overrides what you have in your web.config, and making it a slot setting means it does not get swapped.