public override void ConfigureAppConfiguration(IFunctionsConfigurationBuilder builder) { var env = Environment.GetEnvironmentVariable("AZURE_FUNCTIONS_ENVIRONMENT"); if (!string.IsNullOrEmpty(env) && env.Equals("Development")) { var localConfig = new ConfigurationBuilder().AddUserSecrets(typeof(Startup).Assembly) .AddEnvironmentVariables() .Build(); var uri = localConfig.GetValue <string>("VaultUri"); builder.ConfigureKeyVault(uri); } }