Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 853 Bytes

Stores_KeyVault.md

File metadata and controls

24 lines (17 loc) · 853 Bytes

Azure Key Vault

NuGet

Configuring

You can configure Azure Key Vault store either with Managed Identity:

IMySettings settings = new ConfigurationBuilder<IMySettings>()
   .UseAzureKeyVaultWithManagedIdentity(vaultUri)
   .Build();

or in more traditional way with a Service Principal:

IMySettings settings = new ConfigurationBuilder<IMySettings>()
   UseAzureKeyVaultWithServicePrincipal(
         this ConfigurationBuilder(vaultUri, clientId, clientSecret)
   .Build();

This implementation always uses secrets, and their latest versions to read config settings. The store is read/write.