The recommended way of implementing Azure Key Vault in .NET Core is with this example
// using Microsoft.Extensions.Configuration;
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.ConfigureAppConfiguration((context, config) =>
{
if (context.HostingEnvironment.IsProduction())
{
var builtConfig = config.Build();
config.AddAzureKeyVault(
$"https://{builtConfig["KeyVaultName"]}.vault.azure.net/",
builtConfig["AzureADApplicationId"],
builtConfig["AzureADPassword"]);
}
})
.UseStartup<Startup>();
Is there a way to customize this set up code for this call to Azure using a web proxy? I've found documentation for what to do with Key Vault behind a corporate firewall and what IPs need to be listed, but looking to see if there is a way to be able to use the proxy as well with some kind of HttpHandler in the HttpClient.