Managing Key Vault Secrets from a .NET Console App

added by DotNetKicks
8/2/2022 2:05:11 PM


To access an Azure Key Vault secret from your code, you must register your key vault as an application. The steps are: Create the key vault Register the application with Azure Active Directory Add a Client Secret to the App Registration Add an Access Policy to the Key Vault Set Environment Variables Write the code First, you need to create a Key Vault in which to store your secrets.