Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (18 sloc) 616 Bytes
using KeyVaultSeries.Core;
using Microsoft.Azure.KeyVault;
using System;
namespace GetSecretsInYourApp
public class Global : System.Web.HttpApplication
protected void Application_Start(object sender, EventArgs e)
KeyVaultClient keyVaultClient = new KeyVaultClient(
new KeyVaultClient.AuthenticationCallback(
var secretValut = keyVaultClient.GetSecretAsync("[url-to-secret]")
// Don't try this at home :)
You can’t perform that action at this time.