Which namespace contains AddAzureKeyvault in .Net5 ?

Abhigyan Sinha 1 Reputation point
2021-02-04T04:25:29.56+00:00

I have removed the dependency Microsoft.Extensions.Configuration.AzureKeyVault from my project as it is deprecated in .Net 5 . I am migrating the project from .Net Core to .Net 5, but I am not able to resolve the reference to AzureKeyVault. Has this method been included in any of the Azure namespace packages in .net 5? If yes, then I would like to know the package name or else what is the alternative to this problem.

Thanks

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,125 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Daniel Zhang-MSFT 9,631 Reputation points
    2021-02-05T02:00:22.877+00:00

    Hi AbhigyanSinha-4724,
    You can use Azure.Extensions.AspNetCore.Configuration.Secrets package and it allows storing configuration values using Azure Key Vault Secrets.
    From VS NuGet Package, we can also see that Azure.Extensions.AspNetCore.Configuration.Secrets is a alternate package.
    64312-25.png
    More information you can refer to this document.
    Best Regards,
    Daniel Zhang


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.