
Pragmatic Microservices with C# and Azure
By :

In this chapter, we add Azure App Configuration and Azure Key Vault to the solution, as shown in Figure 7.1:
Figure 7.1 – Azure services
Both of these services can be used with any service that needs configuration values. The Key Vault service is used to store secrets and adds great features for this.
Let’s create an Azure App Configuration resource.
We use .NET Aspire to create an Azure App Configuration service. To use the .NET Aspire AppHost
configuration from the ConfigurationPrototype
project, add .NET Aspire Orchestrator Support to this project (which adds a project reference to the AppHost
project and references the project with the app model definition):
Codebreaker.AppHost/Program.cs
var builder = DistributedApplication.CreateBuilder(args); var appConfig = builder.AddAzureAppConfiguration("codebreakerconfig") ...