Remove temporary consumption of azure app config
This commit is contained in:
parent
ee08b3388d
commit
cfe1d37724
@ -11,21 +11,21 @@ using System.Reflection;
|
|||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
builder.Configuration.AddAzureAppConfiguration(options =>
|
//builder.Configuration.AddAzureAppConfiguration(options =>
|
||||||
{
|
//{
|
||||||
var endpoint = builder.Configuration.GetSection("Endpoints:AppConfigurationURI").Value;
|
// var endpoint = builder.Configuration.GetSection("Endpoints:AppConfigurationURI").Value;
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(endpoint))
|
// if (string.IsNullOrEmpty(endpoint))
|
||||||
throw new ArgumentException("The app configuration is missing");
|
// throw new ArgumentException("The app configuration is missing");
|
||||||
|
|
||||||
options.Connect(new Uri(endpoint), new DefaultAzureCredential())
|
// options.Connect(new Uri(endpoint), new DefaultAzureCredential())
|
||||||
.Select(KeyFilter.Any, "blueprint_api");
|
// .Select(KeyFilter.Any, "blueprint_api");
|
||||||
|
|
||||||
options.ConfigureKeyVault(keyVaultOptions =>
|
// options.ConfigureKeyVault(keyVaultOptions =>
|
||||||
{
|
// {
|
||||||
keyVaultOptions.SetCredential(new DefaultAzureCredential());
|
// keyVaultOptions.SetCredential(new DefaultAzureCredential());
|
||||||
});
|
// });
|
||||||
});
|
//});
|
||||||
|
|
||||||
builder.Services.AddEndpointsApiExplorer();
|
builder.Services.AddEndpointsApiExplorer();
|
||||||
builder.Configuration
|
builder.Configuration
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user