I have two web apps deployed in a single Azure App Service instance:
I created a new virtual application in the app service - path mappings. I set a name and I set a physical path to:
site\wwwroot\wwwroot
I also set multiple environment variables (App settings) in the app service to override the default ones in the appsettings.json files of the both web apps:
Now the env. variables from the app service are overriding the variables in the first web app (site\wwwroot\appsettings.json). However the override of the variables of the second app (site\wwwroot\wwwroot\appsettings.json) is not working.
Does Azure App Service environment variables also override app. settings from the virtual application or what am I missing here?
Does Azure App Service environment variables also override app. settings from the virtual application
Yes, you can override app settings of the virtual application using Environment Variables.
Refer my SOThread to deploy Virtual Applications to single Azure App Service.
My application folder structure:
site/wwwroot
main directory.Output: