Tag Archives: configuration

Using Azure Key Vault with ASP.NET Core and Azure App Services

This article shows how to use an Azure Key Vault with an ASP.NET Core application deployed as an Azure App Service. The Azure App Service can use the system assigned identity to access the Key Vault. This needs to be configured in the Key Vault access policies using the service principal. Code: https://github.com/damienbod/AspNetCoreBackChannelLogout Posts in […]

Setting the NLog database connection string in the ASP.NET Core appsettings.json

This article shows how the NLog connection string for the DatabaseTarget can be configured in the appsettings.json in an ASP.NET Core project and not the XML nlog.config file. All the NLog target properties can be configured in code if required and not just in the NLog XML configuration file. Code: https://github.com/damienbod/AspNetCoreNlog 2018-04-04 Updated to NLog.Web.AspNetCore […]

ASP.NET Core multiple configurations without using environment variables

This article shows how to use multiple Json configuration files in ASP.NET Core 2.1 which can be used in CI for automatic deployment without requiring environment variables. Code: https://github.com/damienbod/AspNetCoreConfiguration 2018-06-20: Updated to ASP.NET Core 2.1 2017-08-15: Updated to ASP.NET Core 2.0 2017-07-01: Updated to VS2017 and csproj 2016-07-01: Updated to ASP.NET Core 1.0 RTM 2016-05-17: […]