AspireKeyVaultExtensions
Classstaticnet10.0
Provides extension methods for registering and configuring Azure Key Vault secrets in an Aspire application.
namespace Microsoft.Extensions.Hosting;
public static class AspireKeyVaultExtensions{ // ...}7 members
Methods7
Section titled Methods Registers
Certificates.CertificateClient as a singleton in the services provided by the builder. Registers
Secrets.SecretClient as a singleton in the services provided by the builder. Enables retries, corresponding health check, logging and telemetry. Registers
Keys.KeyClient as a singleton in the services provided by the builder. Adds the Azure KeyVault secrets to be configuration values in the
configurationManager. Registers
Certificates.CertificateClient as a singleton for given name in the services provided by the builder. Registers
Secrets.SecretClient as a singleton for given name in the services provided by the builder. Enables retries, corresponding health check, logging and telemetry. Registers
Keys.KeyClient as a singleton for given name in the services provided by the builder.