I'm new to Azure and setting up Microsoft Hosting so hoping someone can shed some light on environment specific Web.config files.
I've inherited a .NET web application which has different Web.config files per environment.
For example:
- Web.config
- Web.Test.config
- Web.Stage.config
- Web.Prod.config
All of the config files contain environement specific configurations.
Previously the app was hosted using Azure's "App Services" and we're looking to do the same.
I'm aware that you can override values in Web.config using "App Settings" under the "App Services" configuration, however, is there a way to simply switch out the Web.config file used for each environment?
I imagine ideally, there wouldn't be seperate Web.config files and all values would be set via "App Settings" preventing the need to push environment specific values to the repo, still it'd be nice to know how to switch out the Web.config files / environment using Azure App Services.
If anyone could point me in the right direction It would be much appreciated. Wouldn't surpise me if I'm missing something simple here.
Thanks