AspNetCore.Docs/aspnetcore/security/key-vault-configuration/sample
Shayne Boyer d1069c888d whitespace 2017-02-17 09:49:34 -05:00
..
Properties Key Vault Configuration Provider doc (#2531) 2017-02-13 10:03:08 -10:00
KeyVaultConfigProviderSample.csproj whitespace 2017-02-17 09:49:34 -05:00
Markup.cs whitespace 2017-02-17 09:49:34 -05:00
Program.cs whitespace 2017-02-17 09:49:34 -05:00
README.md whitespace 2017-02-17 09:49:34 -05:00
Startup.cs whitespace 2017-02-17 09:49:34 -05:00
appsettings.json Key Vault Configuration Provider doc (#2531) 2017-02-13 10:03:08 -10:00
web.config whitespace 2017-02-17 09:49:34 -05:00

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