This question relates to the following post which maybe helpful: Azure DevOps CI/CD and Separating Connection Strings from Source Control
I'm currently working on an N-Layered project based off of an article by Imar Spaanjaars named ASP.NET N-Layered Applications
I'm trying to implement Azure Key Vault to, I guess you can say, abstract secrets from the application itself.
Goal
I want implement Azure Key Vault using this N-Tier concept. I have a sample project located at NLayer-Spaanjaars.ContactManager
Problem
I'm try to figure out how to use Key Vault Syntax Reference to properly retrieve the secret(s) (connection string) with Entity Framework.
Update 2019/2/22
As stated in the comments, I'm trying to find out how to inject
or override
the connection string at runtime with values for the Key Vault
on a non-Core .Net Web API
app.
Connected Services
feature in VS instead of adding the NuGet packageMicrosoft.Configuration.ConfigurationBuilders.UserSecrets
only (as described in the tutorial) and it worked! Maybe it was missing other packages but I didn't bother figuring out which. Though this helped, it hasn't helped answer my question yet. Can you help point me in the right direction to, as you mentioned, "load connection staring and inject into your application configuration system" – Neomaneomah.Net Web API
, not a.Net Core Web Api
– Neomaneomah