Is there a simple example of how to connect my MVC Web App to Azure KeyVault and extract my connect string?

Tim Philomeno 20 Reputation points
2024-06-03T18:52:20.49+00:00

I am using DotNet Core 8.0 and trying to use KeyVault from a non-Azure hosted WebApp. I am trying to use secrets for my database connect strings. Is there a simple example of how to connect my MVC Web App to Azure KeyVault and extract my connect string? I see many examples out there but non that deal with DotNet Core 8.0 WebApps. I have created a KeyVault resource and just looking for a basic "how to consume it" using DotNet Coe 8.0 WebApp.

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,167 questions
{count} votes

Accepted answer
  1. Miguel Fernández Corral 190 Reputation points
    2024-06-03T19:01:09.3666667+00:00

    Hello, you can jump directly to the code samples on GitHub:

    https://github.com/Azure-Samples/key-vault-dotnet-core-quickstart

    Regards,

    Miguel.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful