AzureKeyVaultConfigurationExtensions.AddAzureKeyVault Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddAzureKeyVault(IConfigurationBuilder, SecretClient, AzureKeyVaultConfigurationOptions) |
Adds an IConfigurationProvider that reads configuration values from the Azure KeyVault. |
AddAzureKeyVault(IConfigurationBuilder, SecretClient, KeyVaultSecretManager) |
Adds an IConfigurationProvider that reads configuration values from the Azure KeyVault. |
AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential) |
Adds an IConfigurationProvider that reads configuration values from the Azure KeyVault. |
AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential, AzureKeyVaultConfigurationOptions) |
Adds an IConfigurationProvider that reads configuration values from the Azure KeyVault. |
AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential, KeyVaultSecretManager) |
Adds an IConfigurationProvider that reads configuration values from the Azure KeyVault. |
AddAzureKeyVault(IConfigurationBuilder, SecretClient, AzureKeyVaultConfigurationOptions)
Adds an IConfigurationProvider that reads configuration values from the Azure KeyVault.
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddAzureKeyVault (this Microsoft.Extensions.Configuration.IConfigurationBuilder configurationBuilder, Azure.Security.KeyVault.Secrets.SecretClient client, Azure.Extensions.AspNetCore.Configuration.Secrets.AzureKeyVaultConfigurationOptions options);
static member AddAzureKeyVault : Microsoft.Extensions.Configuration.IConfigurationBuilder * Azure.Security.KeyVault.Secrets.SecretClient * Azure.Extensions.AspNetCore.Configuration.Secrets.AzureKeyVaultConfigurationOptions -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddAzureKeyVault (configurationBuilder As IConfigurationBuilder, client As SecretClient, options As AzureKeyVaultConfigurationOptions) As IConfigurationBuilder
Parameters
- configurationBuilder
- IConfigurationBuilder
The IConfigurationBuilder to add to.
- client
- SecretClient
The SecretClient to use for retrieving values.
The AzureKeyVaultConfigurationOptions to use.
Returns
Applies to
AddAzureKeyVault(IConfigurationBuilder, SecretClient, KeyVaultSecretManager)
Adds an IConfigurationProvider that reads configuration values from the Azure KeyVault.
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddAzureKeyVault (this Microsoft.Extensions.Configuration.IConfigurationBuilder configurationBuilder, Azure.Security.KeyVault.Secrets.SecretClient client, Azure.Extensions.AspNetCore.Configuration.Secrets.KeyVaultSecretManager manager);
static member AddAzureKeyVault : Microsoft.Extensions.Configuration.IConfigurationBuilder * Azure.Security.KeyVault.Secrets.SecretClient * Azure.Extensions.AspNetCore.Configuration.Secrets.KeyVaultSecretManager -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddAzureKeyVault (configurationBuilder As IConfigurationBuilder, client As SecretClient, manager As KeyVaultSecretManager) As IConfigurationBuilder
Parameters
- configurationBuilder
- IConfigurationBuilder
The IConfigurationBuilder to add to.
- client
- SecretClient
The SecretClient to use for retrieving values.
- manager
- KeyVaultSecretManager
The KeyVaultSecretManager instance used to control secret loading.
Returns
Applies to
AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential)
Adds an IConfigurationProvider that reads configuration values from the Azure KeyVault.
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddAzureKeyVault (this Microsoft.Extensions.Configuration.IConfigurationBuilder configurationBuilder, Uri vaultUri, Azure.Core.TokenCredential credential);
static member AddAzureKeyVault : Microsoft.Extensions.Configuration.IConfigurationBuilder * Uri * Azure.Core.TokenCredential -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddAzureKeyVault (configurationBuilder As IConfigurationBuilder, vaultUri As Uri, credential As TokenCredential) As IConfigurationBuilder
Parameters
- configurationBuilder
- IConfigurationBuilder
The IConfigurationBuilder to add to.
- vaultUri
- Uri
The Azure Key Vault uri.
- credential
- TokenCredential
The credential to use for authentication.
Returns
Applies to
AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential, AzureKeyVaultConfigurationOptions)
Adds an IConfigurationProvider that reads configuration values from the Azure KeyVault.
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddAzureKeyVault (this Microsoft.Extensions.Configuration.IConfigurationBuilder configurationBuilder, Uri vaultUri, Azure.Core.TokenCredential credential, Azure.Extensions.AspNetCore.Configuration.Secrets.AzureKeyVaultConfigurationOptions options);
static member AddAzureKeyVault : Microsoft.Extensions.Configuration.IConfigurationBuilder * Uri * Azure.Core.TokenCredential * Azure.Extensions.AspNetCore.Configuration.Secrets.AzureKeyVaultConfigurationOptions -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddAzureKeyVault (configurationBuilder As IConfigurationBuilder, vaultUri As Uri, credential As TokenCredential, options As AzureKeyVaultConfigurationOptions) As IConfigurationBuilder
Parameters
- configurationBuilder
- IConfigurationBuilder
The IConfigurationBuilder to add to.
- vaultUri
- Uri
Azure Key Vault uri.
- credential
- TokenCredential
The credential to use for authentication.
The AzureKeyVaultConfigurationOptions to use.
Returns
Applies to
AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential, KeyVaultSecretManager)
Adds an IConfigurationProvider that reads configuration values from the Azure KeyVault.
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddAzureKeyVault (this Microsoft.Extensions.Configuration.IConfigurationBuilder configurationBuilder, Uri vaultUri, Azure.Core.TokenCredential credential, Azure.Extensions.AspNetCore.Configuration.Secrets.KeyVaultSecretManager manager);
static member AddAzureKeyVault : Microsoft.Extensions.Configuration.IConfigurationBuilder * Uri * Azure.Core.TokenCredential * Azure.Extensions.AspNetCore.Configuration.Secrets.KeyVaultSecretManager -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddAzureKeyVault (configurationBuilder As IConfigurationBuilder, vaultUri As Uri, credential As TokenCredential, manager As KeyVaultSecretManager) As IConfigurationBuilder
Parameters
- configurationBuilder
- IConfigurationBuilder
The IConfigurationBuilder to add to.
- vaultUri
- Uri
Azure Key Vault uri.
- credential
- TokenCredential
The credential to use for authentication.
- manager
- KeyVaultSecretManager
The KeyVaultSecretManager instance used to control secret loading.
Returns
Applies to
Azure SDK for .NET