Partager via


AzureKeyVaultConfigurationExtensions.AddAzureKeyVault Méthode

Définition

Surcharges

AddAzureKeyVault(IConfigurationBuilder, SecretClient, AzureKeyVaultConfigurationOptions)

Ajoute un IConfigurationProvider qui lit les valeurs de configuration à partir du coffre de clés Azure.

AddAzureKeyVault(IConfigurationBuilder, SecretClient, KeyVaultSecretManager)

Ajoute un IConfigurationProvider qui lit les valeurs de configuration à partir du coffre de clés Azure.

AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential)

Ajoute un IConfigurationProvider qui lit les valeurs de configuration à partir du coffre de clés Azure.

AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential, AzureKeyVaultConfigurationOptions)

Ajoute un IConfigurationProvider qui lit les valeurs de configuration à partir du coffre de clés Azure.

AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential, KeyVaultSecretManager)

Ajoute un IConfigurationProvider qui lit les valeurs de configuration à partir du coffre de clés Azure.

AddAzureKeyVault(IConfigurationBuilder, SecretClient, AzureKeyVaultConfigurationOptions)

Ajoute un IConfigurationProvider qui lit les valeurs de configuration à partir du coffre de clés Azure.

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

Paramètres

configurationBuilder
IConfigurationBuilder

IConfigurationBuilder auquel ajouter.

client
SecretClient

SecretClient à utiliser pour récupérer les valeurs.

Retours

L’IConfigurationBuilderopérateur

S’applique à

AddAzureKeyVault(IConfigurationBuilder, SecretClient, KeyVaultSecretManager)

Ajoute un IConfigurationProvider qui lit les valeurs de configuration à partir du coffre de clés Azure.

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

Paramètres

configurationBuilder
IConfigurationBuilder

IConfigurationBuilder auquel ajouter.

client
SecretClient

SecretClient à utiliser pour récupérer les valeurs.

manager
KeyVaultSecretManager

Instance KeyVaultSecretManager utilisée pour contrôler le chargement du secret.

Retours

L’IConfigurationBuilderopérateur

S’applique à

AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential)

Ajoute un IConfigurationProvider qui lit les valeurs de configuration à partir du coffre de clés Azure.

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

Paramètres

configurationBuilder
IConfigurationBuilder

IConfigurationBuilder auquel ajouter.

vaultUri
Uri

URI de Key Vault Azure.

credential
TokenCredential

Informations d’identification à utiliser pour l’authentification.

Retours

L’IConfigurationBuilderopérateur

S’applique à

AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential, AzureKeyVaultConfigurationOptions)

Ajoute un IConfigurationProvider qui lit les valeurs de configuration à partir du coffre de clés Azure.

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

Paramètres

configurationBuilder
IConfigurationBuilder

IConfigurationBuilder auquel ajouter.

vaultUri
Uri

Uri de Key Vault Azure.

credential
TokenCredential

Informations d’identification à utiliser pour l’authentification.

Retours

L’IConfigurationBuilderopérateur

S’applique à

AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential, KeyVaultSecretManager)

Ajoute un IConfigurationProvider qui lit les valeurs de configuration à partir du coffre de clés Azure.

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

Paramètres

configurationBuilder
IConfigurationBuilder

IConfigurationBuilder auquel ajouter.

vaultUri
Uri

Uri de Key Vault Azure.

credential
TokenCredential

Informations d’identification à utiliser pour l’authentification.

manager
KeyVaultSecretManager

Instance KeyVaultSecretManager utilisée pour contrôler le chargement du secret.

Retours

L’IConfigurationBuilderopérateur

S’applique à