Table of Contents

Class AzureAppConfigurationKeyVaultOptions

Namespace
Microsoft.Extensions.Configuration.AzureAppConfiguration
Assembly
Microsoft.Extensions.Configuration.AzureAppConfiguration.dll

Options used to configure the client used to fetch key vault references in an Azure App Configuration provider.

public class AzureAppConfigurationKeyVaultOptions
Inheritance
AzureAppConfigurationKeyVaultOptions
Inherited Members

Constructors

AzureAppConfigurationKeyVaultOptions()

public AzureAppConfigurationKeyVaultOptions()

Methods

Register(SecretClient)

Registers the specified Azure.Security.KeyVault.Secrets.SecretClient instance to use to resolve key vault references for secrets from associated key vault.

public AzureAppConfigurationKeyVaultOptions Register(SecretClient secretClient)

Parameters

secretClient SecretClient

Secret client instance.

Returns

AzureAppConfigurationKeyVaultOptions

SetCredential(TokenCredential)

Sets the credentials used to authenticate to key vaults that have no registered Azure.Security.KeyVault.Secrets.SecretClient.

public AzureAppConfigurationKeyVaultOptions SetCredential(TokenCredential credential)

Parameters

credential TokenCredential

Default token credentials.

Returns

AzureAppConfigurationKeyVaultOptions

SetSecretResolver(Func<Uri, ValueTask<string>>)

Sets the callback used to resolve key vault references that have no registered Azure.Security.KeyVault.Secrets.SecretClient.

public AzureAppConfigurationKeyVaultOptions SetSecretResolver(Func<Uri, ValueTask<string>> secretResolver)

Parameters

secretResolver Func<Uri, ValueTask<string>>

A callback that maps the System.Uri of the key vault secret to its value.

Returns

AzureAppConfigurationKeyVaultOptions