Mid Azure

How do you manage environment-specific configurations for Azure apps?

  • Use Azure App Service App Settings or Azure Key Vault.
  • ASP.NET Core supports appsettings.json, appsettings.{Environment}.json, and

environment variables.

Example:

// appsettings.Production.json

"ConnectionStrings": {

"DefaultConnection":

"Server=tcp:myserver.database.windows.net;Database=prodDB;..."

var connectionString =

Configuration.GetConnectionString("DefaultConnection");

🔹 Section 2: Azure App Services – .NET Developer

Q&A

More from Microsoft Azure Tutorial

All questions for this course