DEV Community

Cover image for HOW TO CREATE KEY VAULT IN AZURE AND STORE SECRET PASSWORD WITHIN THE KEY VAULT
Tijani Mojeed
Tijani Mojeed

Posted on • Edited on

HOW TO CREATE KEY VAULT IN AZURE AND STORE SECRET PASSWORD WITHIN THE KEY VAULT

Many services and applications use certificates and other secrets for authentication, data connections, encryption, and so on.
For example, imagine your organization has created a custom service that needs to communicate securely across your environment with other services. It would likely do so using credentials.
Hard-coding credentials in an application puts those credentials at risk for compromise and makes key management difficult at best.

Azure Key Vault enables you to securely store secrets such as tokens, passwords, certificates, cryptographic keys, and API keys.
Using the previous example, instead of storing the credentials in your custom application, you would store the credentials in Azure Key Vault. The application would call Key Vault whenever it needed to use the credentials.

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 those secrets among many Azure services.

Below are the steps to take in creating Key vault in Azure and how to store secret password within it.

Go to portal.azure.com and login to your azure account
Then click on the search bar and type key vault
Click on create

Image description

After clicking on create, the page will displace where you will fill all the necessary information and click on review and create as shown in the image below

Image description

Image description

A review page will displace, then click on create to deploy. See the image below

Image description

Wait for deployment, after deployment then click on Resource as shown in the image below

Image description

And then you have your key vault created. see the image below

Image description

The next step is to add a secret to the key vault and this can be done by clicking on Secret at right side of your key vault page and you have this

Image description

Next is to click on Generate/import and fill the information as shown below

Image description

Image description

Fill in the necessary information as in seen above and put your secret value that you want to keep in the azure key vault then click on create. At this stage, you have added your secret password.
Note: The password you put in your secret value is the secret password your stored.

See the image you will get below after clicking on create

Image description

You have successfully add a secret to your Key vault.

Thank you for reading and I hope you find this useful.

Top comments (1)

Collapse
 
godwink profile image
Konkwo Godwin

Great article