C
C#10mo ago
datasaur

Replacing AzureKeyVault with Azure.Extensions.AspNetCore.Configuration.Secrets

I need to update the deprecated package
c#
Microsoft.Extensions.Configuration.AzureKeyVault
c#
Microsoft.Extensions.Configuration.AzureKeyVault
with
c#
Azure.Extensions.AspNetCore.Configuration.Secrets
c#
Azure.Extensions.AspNetCore.Configuration.Secrets
There is no official documentation available. Anyone have ideas on how to start?
3 Replies
Saber
Saber10mo ago
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.
datasaur
datasaurOP10mo ago
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
datasaur
datasaurOP10mo ago
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());
Want results from more Discord servers?
Add your server