I have a ASP.NET Web Application running in Azure. In my webconfig file I have some appsetttings values that I won't to be diffrent on diffrent enviroments.
In the Azure Portal I go to my App service, click on configuration and add the values. I add them with the same name as in my webconfig.
When I check in my code I have an automatic deployment. My deployment is working but the values in my webconfig file are not replaced.
In addition after the deployment is complete, all the settings I had entered in the portal are gone.
What am I missing? Do I need to add a step in my deployment (azure dev ops) to replace these settings? Why do the settings get removed after the deployment? and what exactly does the checkbox "Deployment Setting Slot" do?
UPDATE: After looking at my release Pipeline and going to:
Pipeline > Tasks > Azure App Service deploy > Application and Configuration Settings
and adding the settings, after a deployment the values are no longer missing - great.
However, when I look at the actual Web.config file the values are NOT being replaced with the ones in Azure.
App Service > settings > configuration
so now I can see the values I want, but they are not ending up in the web.config file.
Any ideas?