AspNetCore.Docs/aspnetcore/security/key-vault-configuration/sample
Rick Anderson c23f9b383b remove /en-us/ (#3670) 2017-07-10 12:20:50 -06:00
..
Properties
KeyVaultConfigProviderSample.csproj
Markup.cs
Program.cs
README.md remove /en-us/ (#3670) 2017-07-10 12:20:50 -06:00
Startup.cs
appsettings.json
web.config

README.md

Key Vault Configuration Provider sample application

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

Using the sample

  1. Following the guidance in Get started with Azure Key Vault:
  • Create a key vault
  • Create key vault secrets
    • MySecret: secret_value_1
    • Section--MySecret: secret_value_2
  • Register the application with Azure Active Directory
  • Authorize the application to use the secrets
  1. Provide the configuration data to the appsettings.json file of the sample:
  • Vault: Azure Key Vault Name
  • ClientId: Azure AD Application Id
  • ClientSecret: Azure AD Application Key
  1. Restore, build, and run the application