Replacing AzureKeyVault with Azure.Extensions.AspNetCore.Configuration.Secrets
I need to update the deprecated package
with
There is no official documentation available. Anyone have ideas on how to start?
3 Replies
The nuget package official website links to the github with an example and I'm sure theres documentation out there. what are you stuck on.
I'm using this documentation for converting the old AzureServiceTokenProvider
https://learn.microsoft.com/en-us/dotnet/api/overview/azure/app-auth-migration?view=azure-dotnet
App Authentication to Azure Identity Migration Guidance - Azure for...
App Authentication to Azure Identity Migration Guidance
stuck on adding stuff on builder.AddAzureKeyVault();
DefaultKeyVaultSecretManager no longer exists
Could it be as simple as
var secretClient = new SecretClient(vaultUri: new Uri(keyVaultEndpoint), credential: new DefaultAzureCredential());
builder.AddAzureKeyVault(secretClient, new KeyVaultSecretManager());