Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 1.27 KB

README.md

File metadata and controls

10 lines (6 loc) · 1.27 KB

Key Vault Configuration Provider Sample App

This sample illustrates the use of the Azure Key Vault Configuration Provider.

The sample runs in one of two modes determined by the #define statement at the top of the Program.cs file. For instructions, see Preprocessor directives in sample code:

  • Certificate – Demonstrates the use of an Azure Key Vault Client ID and X.509 certificate to access secrets stored in Azure Key Vault. This version of the sample can be run from any location, deployed to Azure App Service or any host capable of serving an ASP.NET Core app.
  • Managed – Demonstrates how to use Azure's Managed Service Identity to authenticate the app to Azure Key Vault with Azure AD authentication without credentials in the app's code or configuration. An Azure AD Client ID and Secret aren't required for the app to authenticate with Azure Key Vault. This sample must be deployed to Azure App Service to explore the Managed Identity scearnio.

For more information, see Azure Key Vault Configuration Provider.