In this article, I will guide you to manage disk encryption keys for Azure virtual machine by using Azure Key Vault, Azure Key Vault for managing encryption keys that can be used for encrypting our data disk
You have to do the following steps to configure the disk encryption keys
- Create an Azure Key Vault
- Generate the Key
- Give Control access to the key Vault
- Create a Disk Encryption Set
Step 1. Create an Azure Key Vault
Azure Key Vault is a cloud-based key management solution that helps secure cryptographic keys, passwords, and certificates that can be stored in a vault.
Sign in to the Azure portal using your Microsoft credential at https://portal.azure.com/
Select All Services
Use the keywords to search the Key Vault
Select the Key Vault from the showing listed

Click Create

Provide the following information to create a key vault
- Subscription: Select a Subscription
- Resource Group: Create a Resource Group
- Key Vault Name: Provide the Unique name
- Region: Select the Azure Region
- Pricing Tier: Select the Pricing tier
Then leave the rest as default and then select Next

Select the Permission model: we need to configure the vault access policy
Then Select the resource access and then click Review + create

After validation, Check Click Create

Once deployment is complete, Go to recourse

Step 2. Generate a Key
Go to the Key Vault (Demo-AzKeyVault)
Select Keys and then click Generate/Import

Enter the Name and fill in the remaining requirements as you like
Then Click Create

Step 3. Control access to the key Vault
Assigned the role as "Owner" for the subscription
Go to the Key Vault, then select Access control (IAM)













Join the conversation! Your thoughts help the community grow.