AspireKeyVaultExtensions
Class static net10.0
Provides extension methods for registering and configuring Azure Key Vault secrets in a .NET Aspire application.
namespace Microsoft.Extensions.Hosting;
public static class AspireKeyVaultExtensions{ // ...} 7 members
Methods7
Section titled MethodsAddAzureKeyVaultCertificateClient(IHostApplicationBuilder, string, Action<AzureSecurityKeyVaultSettings>, Action<IAzureClientBuilder<CertificateClient, CertificateClientOptions>>)extension Registers
Certificates.CertificateClient as a singleton in the services provided by the builder. AddAzureKeyVaultClient(IHostApplicationBuilder, string, Action<AzureSecurityKeyVaultSettings>, Action<IAzureClientBuilder<SecretClient, SecretClientOptions>>)extension Registers
Secrets.SecretClient as a singleton in the services provided by the builder. Enables retries, corresponding health check, logging and telemetry. AddAzureKeyVaultKeyClient(IHostApplicationBuilder, string, Action<AzureSecurityKeyVaultSettings>, Action<IAzureClientBuilder<KeyClient, KeyClientOptions>>)extension Registers
Keys.KeyClient as a singleton in the services provided by the builder. AddAzureKeyVaultSecrets(IConfigurationManager, string, Action<AzureSecurityKeyVaultSettings>, Action<SecretClientOptions>, AzureKeyVaultConfigurationOptions?)extension Adds the Azure KeyVault secrets to be configuration values in the
configurationManager. AddKeyedAzureKeyVaultCertificateClient(IHostApplicationBuilder, string, Action<AzureSecurityKeyVaultSettings>, Action<IAzureClientBuilder<CertificateClient, CertificateClientOptions>>)extension Registers
Certificates.CertificateClient as a singleton for given name in the services provided by the builder. AddKeyedAzureKeyVaultClient(IHostApplicationBuilder, string, Action<AzureSecurityKeyVaultSettings>, Action<IAzureClientBuilder<SecretClient, SecretClientOptions>>)extension Registers
Secrets.SecretClient as a singleton for given name in the services provided by the builder. Enables retries, corresponding health check, logging and telemetry. AddKeyedAzureKeyVaultKeyClient(IHostApplicationBuilder, string, Action<AzureSecurityKeyVaultSettings>, Action<IAzureClientBuilder<KeyClient, KeyClientOptions>>)extension Registers
Keys.KeyClient as a singleton for given name in the services provided by the builder.