Skip to content

Instantly share code, notes, and snippets.

@scottsauber
Last active May 10, 2022 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottsauber/e6f4b0515a3614d1fb5276a7da087c81 to your computer and use it in GitHub Desktop.
Save scottsauber/e6f4b0515a3614d1fb5276a7da087c81 to your computer and use it in GitHub Desktop.
builder.Configuration.AddAzureKeyVault(
new Uri($"https://azurekeyvaultperformance-{builder.Environment.EnvironmentName}.vault.azure.net/"),
new DefaultAzureCredential(new DefaultAzureCredentialOptions
{
// Which ones you exclude will depend on your situation, listing them all here:
// ExcludeEnvironmentCredential = true,
// ExcludeInteractiveBrowserCredential = true,
// ExcludeAzurePowerShellCredential = true,
// ExcludeSharedTokenCacheCredential = true,
// ExcludeVisualStudioCodeCredential = true,
// ExcludeVisualStudioCredential = true,
// ExcludeAzureCliCredential = true,
// ExcludeManagedIdentityCredential = true,
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment