DEV Community

Cover image for Implementing Azure Key Vault
Adisa Oluwaseyi
Adisa Oluwaseyi

Posted on

Implementing Azure Key Vault

What is a Key Vault

Azure key vault enables you to securely store secrets such as tokens, passwords, certificates, cryptographic keys and API keys.

Azure key vault also provides a centralized, cloud-based service for creating, storing and managing keys and certificates. By storing secrets in key vault you gain the capability to easily monitor and audit access and also gain the capability to easily use these secrets among many Azure services.

In this guide we will be creating a key vault and then store a secret password within it.

Creating a Key Vault

Step 1:
Visit portal.azure.com, login or sign up if you don't have an account, you can get a free account at azure.microsoft.com/en-us/free/

Step 2:
On the Azure portal page click the search box and enter key vault, then click key vault

Image description

Step 3:
On the Key vault page click create button

Image description

Step 4:
Select a resource group or create a new one by clicking create new option shown below the input bar, enter a key vault name of your choice, choose a Region of your choice and leave pricing tier as standard

Image description

Step 5:
Leave days to retain deleted vaults at 90, then tick disable purge protection, lastly click review + create

Image description

Step 6:
After validation has passed click create button

Image description

Step 7:
After deployment is completed click go to resource

Image description

Storing a secret password in our Key Vault

Step 1:
On the key vault page click secret on the left hand side

Image description

Step 2:
When the secret page opens click Generate/Import

Image description

Step 3:
Leave upload options as default, enter a secret name of your choice, enter any secret value of your choice you want to keep in Azure key vault, then set activation date and set expiration date, leave the rest the settings as default

Image description

Step 4:
Viola!!! you have successfully added a secret to a key vault

Image description

Top comments (2)

Collapse
 
yemmyoye profile image
Yemisi Oyesainu

well documented

Collapse
 
godwink profile image
Konkwo Godwin

Educative article