AspireKeyVaultExtensions Class

Definition

Provides extension methods for registering and configuring Azure Key Vault secrets in a .NET Aspire application.

public static class AspireKeyVaultExtensions
type AspireKeyVaultExtensions = class
Public Module AspireKeyVaultExtensions
Inheritance
AspireKeyVaultExtensions

Methods

AddAzureKeyVaultClient(IHostApplicationBuilder, String, Action<AzureSecurityKeyVaultSettings>, Action<IAzureClientBuilder<SecretClient,SecretClientOptions>>)

Registers SecretClient as a singleton in the services provided by the builder. Enables retries, corresponding health check, logging and telemetry.

AddAzureKeyVaultSecrets(IConfigurationManager, String, Action<AzureSecurityKeyVaultSettings>, Action<SecretClientOptions>, AzureKeyVaultConfigurationOptions)

Adds the Azure KeyVault secrets to be configuration values in the configurationManager.

AddKeyedAzureKeyVaultClient(IHostApplicationBuilder, String, Action<AzureSecurityKeyVaultSettings>, Action<IAzureClientBuilder<SecretClient,SecretClientOptions>>)

Registers SecretClient as a singleton for given name in the services provided by the builder. Enables retries, corresponding health check, logging and telemetry.

Applies to