AzureKeyVaultConfigurationExtensions.AddAzureKeyVault Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
AddAzureKeyVault(IConfigurationBuilder, SecretClient, AzureKeyVaultConfigurationOptions) |
Agrega una instancia de IConfigurationProvider que lee los valores de configuración de Azure KeyVault. |
AddAzureKeyVault(IConfigurationBuilder, SecretClient, KeyVaultSecretManager) |
Agrega una instancia de IConfigurationProvider que lee los valores de configuración de Azure KeyVault. |
AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential) |
Agrega una instancia de IConfigurationProvider que lee los valores de configuración de Azure KeyVault. |
AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential, AzureKeyVaultConfigurationOptions) |
Agrega una instancia de IConfigurationProvider que lee los valores de configuración de Azure KeyVault. |
AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential, KeyVaultSecretManager) |
Agrega una instancia de IConfigurationProvider que lee los valores de configuración de Azure KeyVault. |
AddAzureKeyVault(IConfigurationBuilder, SecretClient, AzureKeyVaultConfigurationOptions)
Agrega una instancia de IConfigurationProvider que lee los valores de configuración de 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
Parámetros
- configurationBuilder
- IConfigurationBuilder
El objeto IConfigurationBuilder al que se va a agregar.
- client
- SecretClient
El objeto SecretClient que se va a usar para recuperar valores.
Objeto AzureKeyVaultConfigurationOptions que se va a usar.
Devoluciones
Se aplica a
AddAzureKeyVault(IConfigurationBuilder, SecretClient, KeyVaultSecretManager)
Agrega una instancia de IConfigurationProvider que lee los valores de configuración de 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
Parámetros
- configurationBuilder
- IConfigurationBuilder
El objeto IConfigurationBuilder al que se va a agregar.
- client
- SecretClient
El objeto SecretClient que se va a usar para recuperar valores.
- manager
- KeyVaultSecretManager
La instancia de KeyVaultSecretManager que se usa para controlar la carga de secretos.
Devoluciones
Se aplica a
AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential)
Agrega una instancia de IConfigurationProvider que lee los valores de configuración de 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
Parámetros
- configurationBuilder
- IConfigurationBuilder
El objeto IConfigurationBuilder al que se va a agregar.
- vaultUri
- Uri
El URI de Azure Key Vault.
- credential
- TokenCredential
Credencial que se va a usar para la autenticación.
Devoluciones
Se aplica a
AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential, AzureKeyVaultConfigurationOptions)
Agrega una instancia de IConfigurationProvider que lee los valores de configuración de 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
Parámetros
- configurationBuilder
- IConfigurationBuilder
El objeto IConfigurationBuilder al que se va a agregar.
- vaultUri
- Uri
URI de Azure Key Vault.
- credential
- TokenCredential
Credencial que se va a usar para la autenticación.
Objeto AzureKeyVaultConfigurationOptions que se va a usar.
Devoluciones
Se aplica a
AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential, KeyVaultSecretManager)
Agrega una instancia de IConfigurationProvider que lee los valores de configuración de 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
Parámetros
- configurationBuilder
- IConfigurationBuilder
El objeto IConfigurationBuilder al que se va a agregar.
- vaultUri
- Uri
URI de Azure Key Vault.
- credential
- TokenCredential
Credencial que se va a usar para la autenticación.
- manager
- KeyVaultSecretManager
La instancia de KeyVaultSecretManager que se usa para controlar la carga de secretos.