Creating and configuring web app settings in Azure App Service
In App Service, app settings are variables that we pass to the application code as environment variables. In a Linux environment or in custom containers, App Service uses the --env
flag to pass app settings to the container and set the environment variables.
In both cases, they will be injected into your application environment when the application is launched. In the case of additions, deletions, or modification of application settings, App Service will trigger an application restart.
Application settings can be configured and accessed by navigating to App Service. Under Configuration, we select Application settings, as presented in the following figure:
Figure 7.13 – Configuration settings in App Service
When we create an ASP.NET Core application, we have the application settings in Web.config
included in <appSettings>
or appsettings.json
. They are the same as the application...