DEV Community

Cover image for Azure Key Vault
Tolu Iyoriobhe
Tolu Iyoriobhe

Posted on

Azure Key Vault

Azure Key Vault is a cloud service for securing and accessing secrets, keys and certificates. Azure key vault can be use to centralize application secrets, securely store secrets and keys, monitor access and use, simplifies administration of application secrets and integrate with other azure services.

In this walkthrough, we will create an Azure Key Vault and create a password secret within the key vault.

- Create an Azure Key Vault

  1. Sign in to the Azure portal
  2. From the search box, type key vaults and select Key Vaults under Services Key vaults
  3. Select + Create Create key vaults
  4. Configure the key vaults with the following and leave the defaults for the remaining. The key vault name must be a globally unique name key vault settings Select Review + Create and select Create once validation has passed Create a key vault
  5. Once deployment is completed, select Go to resource
  6. Select Overview tab and take note of the Vault URI. Applications that use your vault through the REST APIs will need the URI Vault URI Note: Your Azure account is the only one authorized to perform operations on this new vault. You can modify this if you wish in the Settings and then the Access policies section.

- Add a secret to the Key Vault

  1. Under Settings, select Secrets and click + Generate/Import Generate secret
  2. Configure the secret with the following and leave the others at their defaults Note: You can also set an activation and expiration and also disable the secret secret settings
  3. Select Create create a secret
  4. Once the secret has been successfully created, click on the secret name mytestpassword and note that it has a status Enabled
  5. select the secret created and note the Secret Identifier. This is the url value that you can now use with applications. It provides a centrally managed and securely stored password. Secret identifier
  6. Select the Show Secret Value to display the password you specified earlier

Following this steps, you can try to generate keys and certificate at your own free time.

Note: To avoid additional costs, you can remove the resource groups. Search for resource groups at the search box, select the resource group and click Delete resource group.

Top comments (0)