Remove temporary consumption of azure app config

This commit is contained in:
Sergio Matias 2025-06-23 09:12:34 -06:00
parent ee08b3388d
commit cfe1d37724

View File

@ -11,21 +11,21 @@ using System.Reflection;
var builder = WebApplication.CreateBuilder(args);
builder.Configuration.AddAzureAppConfiguration(options =>
{
var endpoint = builder.Configuration.GetSection("Endpoints:AppConfigurationURI").Value;
//builder.Configuration.AddAzureAppConfiguration(options =>
//{
// var endpoint = builder.Configuration.GetSection("Endpoints:AppConfigurationURI").Value;
if (string.IsNullOrEmpty(endpoint))
throw new ArgumentException("The app configuration is missing");
// if (string.IsNullOrEmpty(endpoint))
// throw new ArgumentException("The app configuration is missing");
options.Connect(new Uri(endpoint), new DefaultAzureCredential())
.Select(KeyFilter.Any, "blueprint_api");
// options.Connect(new Uri(endpoint), new DefaultAzureCredential())
// .Select(KeyFilter.Any, "blueprint_api");
options.ConfigureKeyVault(keyVaultOptions =>
{
keyVaultOptions.SetCredential(new DefaultAzureCredential());
});
});
// options.ConfigureKeyVault(keyVaultOptions =>
// {
// keyVaultOptions.SetCredential(new DefaultAzureCredential());
// });
//});
builder.Services.AddEndpointsApiExplorer();
builder.Configuration