{
    "id": "2fd25ee7-613f-460e-b9c3-35448ac85e80",
    "name": "Encrypt an Azure VHD",
    "slug": "encrypt-an-azure-vhd",
    "status": "published",
    "lab_type": "azure",
    "is_sample": false,
    "duration_in_seconds": 1200,
    "metadata": {},
    "session": null,
    "company": "a491bc32-c056-4946-9169-cc053387bada",
    "created": "2020-08-11T12:14:05.256310Z",
    "modified": "2023-10-03T18:58:34.195956Z",
    "is_beta": false,
    "lab_objectives": [],
    "main_learning_area": null,
    "learning_areas": [],
    "categories": [],
    "tags": [],
    "difficulty": null,
    "is_web_access": false,
    "is_lab_experience": false,
    "is_featured": false,
    "cve": null,
    "severity": null,
    "year": null,
    "classification": null,
    "is_trackable": false,
    "cpe_credits": null,
    "is_skill_check": false,
    "external_url": "https://portal.azure.com/",
    "solution_video": "d3763916-857a-4bf0-bad0-2a12e0197f1f",
    "explanation_video": null,
    "description": "# Task: Encrypt an Azure VHD\n\n## Video: Azure Disk Encryption\n\n**Estimated time:** 30 minutes\n\n## Goal\n\nIn 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.\n\n## Pre-requisites\n\n1. Azure subscription\n2. Remote Desktop Service (RDP) client*\n\n**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.*\n\n## Requirements\n\n1. Provision the virtual machine and key vault\n2. Encrypt the virtual machine disk\n3. Verify encryption\n\n---\n\n## Requirement 1: Provision the virtual machine and key vault\n\nYou must first provision a Windows virtual machine and a key vault.  To complete this requirement use the following settings:\n\n- Virtual machine:\n\n  |Setting|Value|\n  |---|---|\n  |Resource group|**task-diskencrypt**|\n  |Name|**encrypt-vm**|\n  |OS|**Windows**|\n  |Admin user|**student**|\n  |Admin pwd|**&lt;strong password&gt;**|\n  |Image|**Windows Server 2016 Datacenter**|\n  |Size|**Standard_D2_V3**|\n  |Public inbound ports|**RDP (3389)**|\n\n- Key vault:\n\n  |Setting|Value|\n  |---|---|\n  |Resource group|**task-diskencrypt**|\n  |Name|**&lt;unique name&gt;**|\n  |Tier|**Standard**|\n  |Access policy|**Disk Encryption**|\n\n## Requirement 2: Encrypt the virtual machine disk\n\nNow 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:\n\n- Retrieve required key vault properties:\n  - Key vault resource id\n  - Key vault Url\n- Create a KEK named **kek** in the key vault.  You will need the following KEK properties:\n  - KEK Url\n- Encrypt the OS disk using the key vault and the KEK\n\n## Requirement 3: Verify encryption\n\nFinally, 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:\n\n- Open an RDP session with the **encrypt-vm** virtual machine.\n- Open the Disk Management applet and verify that the OS disk is Bitlocker encrypted.\n- Close the RDP session\n- Navigate to the key vault in the Azure portal\n- View the keys and secrets.  The KEK will be under keys and the disk encryption key will be under secrets.\n- Backup and then delete the disk encryption key.\n- Restart the **encrypt-vm** virtual machine.  This should fail.\n- Restore the disk encryption key.\n- Restart the **encrypt-vm** virtual machine.  This should now succeed.\n\n## Clean up\n\n- Delete the **task-diskencrypt** resource group.\n\n## Solution\n\nHaving trouble completing this task?  View the demonstration video to see how to do it.",
    "description_html": "<h1>Task: Encrypt an Azure VHD</h1>\n<h2>Video: Azure Disk Encryption</h2>\n<p><strong>Estimated time:</strong> 30 minutes</p>\n<h2>Goal</h2>\n<p>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.</p>\n<h2>Pre-requisites</h2>\n<ol>\n<li>Azure subscription</li>\n<li>Remote Desktop Service (RDP) client*</li>\n</ol>\n<p>*<em>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.</em></p>\n<h2>Requirements</h2>\n<ol>\n<li>Provision the virtual machine and key vault</li>\n<li>Encrypt the virtual machine disk</li>\n<li>Verify encryption</li>\n</ol>\n<hr />\n<h2>Requirement 1: Provision the virtual machine and key vault</h2>\n<p>You must first provision a Windows virtual machine and a key vault.  To complete this requirement use the following settings:</p>\n<ul>\n<li>Virtual machine:</li>\n</ul>\n<table>\n<thead>\n<tr>\n<th>Setting</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Resource group</td>\n<td><strong>task-diskencrypt</strong></td>\n</tr>\n<tr>\n<td>Name</td>\n<td><strong>encrypt-vm</strong></td>\n</tr>\n<tr>\n<td>OS</td>\n<td><strong>Windows</strong></td>\n</tr>\n<tr>\n<td>Admin user</td>\n<td><strong>student</strong></td>\n</tr>\n<tr>\n<td>Admin pwd</td>\n<td><strong>&lt;strong password&gt;</strong></td>\n</tr>\n<tr>\n<td>Image</td>\n<td><strong>Windows Server 2016 Datacenter</strong></td>\n</tr>\n<tr>\n<td>Size</td>\n<td><strong>Standard_D2_V3</strong></td>\n</tr>\n<tr>\n<td>Public inbound ports</td>\n<td><strong>RDP (3389)</strong></td>\n</tr>\n</tbody>\n</table>\n<ul>\n<li>Key vault:</li>\n</ul>\n<table>\n<thead>\n<tr>\n<th>Setting</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Resource group</td>\n<td><strong>task-diskencrypt</strong></td>\n</tr>\n<tr>\n<td>Name</td>\n<td><strong>&lt;unique name&gt;</strong></td>\n</tr>\n<tr>\n<td>Tier</td>\n<td><strong>Standard</strong></td>\n</tr>\n<tr>\n<td>Access policy</td>\n<td><strong>Disk Encryption</strong></td>\n</tr>\n</tbody>\n</table>\n<h2>Requirement 2: Encrypt the virtual machine disk</h2>\n<p>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:</p>\n<ul>\n<li>Retrieve required key vault properties:</li>\n<li>Key vault resource id</li>\n<li>Key vault Url</li>\n<li>Create a KEK named <strong>kek</strong> in the key vault.  You will need the following KEK properties:</li>\n<li>KEK Url</li>\n<li>Encrypt the OS disk using the key vault and the KEK</li>\n</ul>\n<h2>Requirement 3: Verify encryption</h2>\n<p>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:</p>\n<ul>\n<li>Open an RDP session with the <strong>encrypt-vm</strong> virtual machine.</li>\n<li>Open the Disk Management applet and verify that the OS disk is Bitlocker encrypted.</li>\n<li>Close the RDP session</li>\n<li>Navigate to the key vault in the Azure portal</li>\n<li>View the keys and secrets.  The KEK will be under keys and the disk encryption key will be under secrets.</li>\n<li>Backup and then delete the disk encryption key.</li>\n<li>Restart the <strong>encrypt-vm</strong> virtual machine.  This should fail.</li>\n<li>Restore the disk encryption key.</li>\n<li>Restart the <strong>encrypt-vm</strong> virtual machine.  This should now succeed.</li>\n</ul>\n<h2>Clean up</h2>\n<ul>\n<li>Delete the <strong>task-diskencrypt</strong> resource group.</li>\n</ul>\n<h2>Solution</h2>\n<p>Having trouble completing this task?  View the demonstration video to see how to do it.</p>",
    "tasks": "",
    "tasks_html": "",
    "published_date": "2020-06-16T15:57:29Z",
    "solutions": "",
    "solutions_html": "",
    "flags": [],
    "min_points_to_pass": null,
    "access_type": "default",
    "user_status": "unstarted",
    "user_lab_status": null,
    "user_status_modified": null,
    "user_flags": []
}