DEV Community

Cover image for Secure Secrets: A beginner's guide to creating and securing Azure Key Vaults
Henrietta Takor
Henrietta Takor

Posted on

Secure Secrets: A beginner's guide to creating and securing Azure Key Vaults

Azure Key Vault is a Microsoft Azure cloud-based service that allows you to securely store and manage keys, certificates, and secrets. It also allows you to securely control key and secret access permissions and access logging.

The number of days to retain deleted items in an Azure Key Vault can be configured by the user within a range of minimum to maximum values. The minimum retention period for deleted items in an Azure Key Vault is 7 day and the maximum retention period for deleted items in an Azure Key Vault is 90 days.

Once the retention period has expired, deleted items will be purged from the Key Vault and cannot be recovered. Therefore, it's important to carefully consider the retention period setting and ensure it aligns with your specific needs and compliance requirements.

In this blog post, we will walk you through the step-by-step process of creating an Azure Key Vault.

Log in to the Azure Portal using this link

Search for "Key Vault" in the search bar.

Image description

Click on "Key Vault" from the results and then click on the "Create" button.

Image description

Create a New Resource Group

After selecting subscription, create a new resource group. Click on "create new" and give it a name

Image description

Fill in the details for the "Key Vault name". We have named our Key vault "confidentialthings"

Image description

Select the amount of days to retain deleted vault (7 - 90 days) and then click on "Review + create"

Image description

Click on "Create" to create the Key Vault

Image description

Click on the "Go to resource" button

Image description

Create a Key

To create a Key, navigate to the Key Vault you just created, and click on the "Keys" tab

Image description

Click on the "Generate/Import" button to create a new key, and fill in the details, such as the name, key type, and size

Image description

Click on "Create" to create the Key

Image description

Create a Secret

To create a Secret, navigate to the Key Vault you just created, and click on the "Secrets" tab. Click on the "Generate/Import" button to create a new secret

Image description

Fill in the details, such as the name, value, and content type. Click on "Create" to create the Secret

Image description

Image description

Once you've completed these steps, you should have a new Azure Key Vault, Key, and Secret. You can now use these resources to securely store and manage keys, certificates, and secrets for your Azure applications and services.

Top comments (0)