In the comments the article says 'Now, you can access your secrets in code. The next steps are different depending on whether you are using ASP.NET 4.7.1 or ASP.NET Core.'
There is no example for ASP.NET 4.7.1 for the section 'Access your secrets in code'
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@dba4mssql
Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.
I'm also looking for the example on how to access the Azure Key vault from ASP.NET 4.7.1. Any updates on when this will be available? All examples I've found only show connecting to ASP.NET Core.
Thanks for adding this. It would be nice to see how my ASP.NET 4.7.2 app could access my Azure key vault.
Are there any plans to add the 4.7.1 code?
Would love to see the .NET 4.7.1 example for this
https://www.rahulpnath.com/blog/azure-key-vault-as-a-connected-service-in-visual-studio-2017/
The only thing missing is how the appSettings section in the web/app.config looks like after these changes:
<appSettings configBuilders="AzureKeyVault">
...
<add key="Test" value="" />
...
</appSettings>
The attribute configBuilders tells the common ConfigurationManager to use the AzureKeyVault ConfigurationBuilder for these settings.
NOTE: It is important that dummy settings are set. An empty value like in the example (key="Test") is enough.
Please provide the sample code for .NET 4.7.1 projects.
The updated topic should appear in the next day or so.