Remove temporary consumption of azure app config
This commit is contained in:
		| @@ -10,21 +10,21 @@ using System.Text.Json.Serialization; | |||||||
|  |  | ||||||
| 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_service"); | //    .Select(KeyFilter.Any, "blueprint_service"); | ||||||
|  |  | ||||||
|     options.ConfigureKeyVault(keyVaultOptions => | //    options.ConfigureKeyVault(keyVaultOptions => | ||||||
|     { | //    { | ||||||
|         keyVaultOptions.SetCredential(new DefaultAzureCredential()); | //        keyVaultOptions.SetCredential(new DefaultAzureCredential()); | ||||||
|     }); | //    }); | ||||||
| }); | //}); | ||||||
|  |  | ||||||
| builder.Services.AddLogs(builder); | builder.Services.AddLogs(builder); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user