Configuring App Settings and Logging
It’s important to understand how to configure application settings and how your app makes of use them, which you will build on in the last section of this chapter. There are also various types of logging available with App Service, some of which are only available to Windows and can be stored and generated in different ways. So, let’s take a look.
Application Settings
In the previous authentication exercise, you navigated to the Configuration blade of your App Service to view an application configuration setting. You will get some more context on this now.
In App Service, application settings are exposed as environment variables to your application at runtime. If you’re familiar with ASP.NET or ASP.NET Core and the appsettings.json
or web.config
file, these work in a similar way, but the App Service variables override variables defined in the appsettings.json
and web.config
files. You could have development settings in these files for connecting to local resources such as a local MySQL database in those files but have production settings stored safely in App Service. They are always encrypted at rest and transmitted over an encrypted channel.