"
ASP.NET (snapshot 2017) Microsoft documentation and samplesThis sample illustrates the use of the Azure Key Vault Configuration Provider for ASP.NET Core 2.x using key name prefixes. For the ASP.NET Core 1.x sample, see Prefix Key Vault Configuration Provider sample application (ASP.NET Core 1.x).
For more information on how the sample works, see the (xref:)Azure Key Vault configuration provider topic.
--
(two dashes) as a separator.5000-AppSecret
: 5.0.0.0_secret_value
5100-AppSecret
: 5.1.0.0_secret_value
Set-AzureRmKeyVaultAccessPolicy
PowerShell cmdlet to authorize the app to access the key vault, provide List
and Get
access to secrets with -PermissionsToKeys list,get
.Vault
, ClientId
, and ClientSecret
.IConfigurationRoot
with the same name as the prefixed secret name. In this sample, the prefix is the app’s version, which you provided to the PrefixKeyVaultSecretManager
when you added the Azure Key Vault configuration provider. The value for AppSecret
is obtained with config["AppSecret"]
.5.0.0.0
to 5.1.0.0
and run the app again. This time, the secret value returned is 5.1.0.0_secret_value
.<SITEMAP> <MVC> <ASP> <NET> <DATA> <KIOSK> <FLEX> <SQL> <NOTES> <LINUX> <MONO> <FREEWARE> <DOCS> <ENG> <MAIL ME> <ABOUT ME> < THANKS ME> |