Task: Encrypt an Azure VHD

Video: Azure Disk Encryption

Estimated time: 30 minutes

Goal

In this task you will provision a new virtual machine and a new key vault. You will then encrypt the OS disk for the virtual machine, storing the disk encryption keys in key vault.

Pre-requisites

  1. Azure subscription
  2. Remote Desktop Service (RDP) client*

*Note: There are RDP clients for every platform. If you do not have an RDP client and cannot install one, it will have minimal impact on this task.

Requirements

  1. Provision the virtual machine and key vault
  2. Encrypt the virtual machine disk
  3. Verify encryption

Requirement 1: Provision the virtual machine and key vault

You must first provision a Windows virtual machine and a key vault. To complete this requirement use the following settings:

Setting Value
Resource group task-diskencrypt
Name encrypt-vm
OS Windows
Admin user student
Admin pwd <strong password>
Image Windows Server 2016 Datacenter
Size Standard_D2_V3
Public inbound ports RDP (3389)
Setting Value
Resource group task-diskencrypt
Name <unique name>
Tier Standard
Access policy Disk Encryption

Requirement 2: Encrypt the virtual machine disk

Now you will encrypt the OS disk volume using a key encryption key (KEK). You will generate the KEK within the key vault then use the KEK when encrypting the OS disk volume. Use the following steps to complete this requirement:

Requirement 3: Verify encryption

Finally, you will verify that the virtual machine OS disk is encrypted. You will find the disk encryption key. You will then delete the key and attempt to restart the VM. Take the following steps to complete this requirement:

Clean up

Solution

Having trouble completing this task? View the demonstration video to see how to do it.