From the course: .NET Microservices for Azure Developers

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Solution: Configuring environment variables

Solution: Configuring environment variables - Azure Tutorial

From the course: .NET Microservices for Azure Developers

Solution: Configuring environment variables

(upbeat music) - [Instructor] Okay, let me show you how I solved the challenge. Here in the Container app, let's navigate to Containers and then Environment Variables. So you can see that I added a new environment variable named Logging__LogLevel__Microsoft.EntityFrameworkCore and the value is debug. This double underscore syntax allows us to simplify the JSON structure. In other words, it makes it flat. So thanks to this environment variable, we can go here to the log stream and see all the different messages coming from the entity framework core. Now let's try this again. Let's clear the terminal and let's test this out again. Going to paste this URL so you can see that this is returning the breeds, of course, and we can see all the messages coming from those components. Let's try this again, but this time say pets. So you can see that this is returning all the different expressions that are being executed. Excellent. Now you can do that by going to the Containers and then Edit and…

Contents