你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
AzureKeyVaultConfigurationExtensions.AddAzureKeyVault 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddAzureKeyVault(IConfigurationBuilder, SecretClient, AzureKeyVaultConfigurationOptions) |
添加从 Azure KeyVault 读取配置值的 IConfigurationProvider。 |
AddAzureKeyVault(IConfigurationBuilder, SecretClient, KeyVaultSecretManager) |
添加从 Azure KeyVault 读取配置值的 IConfigurationProvider。 |
AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential) |
添加从 Azure KeyVault 读取配置值的 IConfigurationProvider。 |
AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential, AzureKeyVaultConfigurationOptions) |
添加从 Azure KeyVault 读取配置值的 IConfigurationProvider。 |
AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential, KeyVaultSecretManager) |
添加从 Azure KeyVault 读取配置值的 IConfigurationProvider。 |
AddAzureKeyVault(IConfigurationBuilder, SecretClient, AzureKeyVaultConfigurationOptions)
添加从 Azure KeyVault 读取配置值的 IConfigurationProvider。
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
参数
- configurationBuilder
- IConfigurationBuilder
要添加到的 IConfigurationBuilder。
- client
- SecretClient
用于检索值的 SecretClient。
返回
适用于
AddAzureKeyVault(IConfigurationBuilder, SecretClient, KeyVaultSecretManager)
添加从 Azure KeyVault 读取配置值的 IConfigurationProvider。
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
参数
- configurationBuilder
- IConfigurationBuilder
要添加到的 IConfigurationBuilder。
- client
- SecretClient
用于检索值的 SecretClient。
- manager
- KeyVaultSecretManager
用于控制机密加载的 KeyVaultSecretManager 实例。
返回
适用于
AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential)
添加从 Azure KeyVault 读取配置值的 IConfigurationProvider。
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
参数
- configurationBuilder
- IConfigurationBuilder
要添加到的 IConfigurationBuilder。
- vaultUri
- Uri
Azure 密钥保管库 URI。
- credential
- TokenCredential
要用于身份验证的凭据。
返回
适用于
AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential, AzureKeyVaultConfigurationOptions)
添加从 Azure KeyVault 读取配置值的 IConfigurationProvider。
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
参数
- configurationBuilder
- IConfigurationBuilder
要添加到的 IConfigurationBuilder。
- vaultUri
- Uri
Azure 密钥保管库 URI。
- credential
- TokenCredential
要用于身份验证的凭据。
返回
适用于
AddAzureKeyVault(IConfigurationBuilder, Uri, TokenCredential, KeyVaultSecretManager)
添加从 Azure KeyVault 读取配置值的 IConfigurationProvider。
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
参数
- configurationBuilder
- IConfigurationBuilder
要添加到的 IConfigurationBuilder。
- vaultUri
- Uri
Azure 密钥保管库 URI。
- credential
- TokenCredential
要用于身份验证的凭据。
- manager
- KeyVaultSecretManager
用于控制机密加载的 KeyVaultSecretManager 实例。