Mid Azure

How do you set environment variables in Azure App Service?

  • In Azure Portal → App Service → Configuration → Application settings → Add

key-value pairs.

  • ASP.NET Core automatically reads ASPNETCORE_ENVIRONMENT for

environment-specific configs.

More from Microsoft Azure Tutorial

All questions for this course