Leveraging work and school accounts for authentication is now a breeze in Visual Studio 2019 and Azure AD.

The gist: ASPNETCORE_ENVIRONMENT variables map directly to the appsettings.json files provided with the template by name. Such that appsettings.Development.json references the environment variable with the value “Development”.