Jesús García
Developing for Developers

Follow

Developing for Developers

Follow
Configuration protection with App Configuration and KeyVault

Configuration protection with App Configuration and KeyVault

Jesús García's photo
Jesús García
·Jul 12, 2022·

2 min read

In this example we are going to create a service called "App Configuration"

1) In the azure portal we look for the resource "App Configuration"

image.png

2) We fill the creation form

image.png

3) We go to the option "Configuration Explorer"

image.png

4) in the create option we are going to insert 2 secrets

image.png

5) We fill in the name of the "key" and the value that it will contain

image.png

6) Here we see the 2 keys that we have created

image.png

7) we are going to create a resource "Key Vault"

image.png

8) We fill out the form and click on the create button

image.png

image.png

9) We go to the "Secrets" option and insert a secret

image.png

10) we put a name and the value

image.png

11) at the end the saved secret is shown

image.png

12) Now we are going to insert a "Key Vault reference"

image.png

13) we fill the form as follows with the previously saved secrets

image.png

14) we will notice that the row will have a key vault icon, in this way azure app configuration is complemented with azure key vault

image.png

15) we see that the secret that is in keyvault is not shown but rather the url of the secret

image.png

16) We create a project in .net following the tutorial on this page

docs.microsoft.com/en-us/azure/azure-app-co..

17) in the code we will show the value of the key "secret1" resulting in the following

image.png

Blue Nerd Gaming Sport and Esport Logo.png

 
Share this