Skip to content

Commit f5a4d9f

Browse files
committed
updates
1 parent 036a890 commit f5a4d9f

File tree

1 file changed

+40
-36
lines changed

1 file changed

+40
-36
lines changed
Lines changed: 40 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,85 @@
11
---
2-
title: Encrypt Disks by Using Customer-Managed Keys
3-
description: Learn how to encrypt disks by using customer-managed keys in Azure DevTest Labs.
2+
title: Encrypt Disks with Customer-Managed Keys
3+
description: Learn how to manage disk encryption by using customer-managed keys in Azure DevTest Labs.
44
ms.topic: how-to
55
ms.author: rosemalcolm
66
author: RoseHJM
77
ms.date: 07/11/2025
88
ms.custom: subject-rbac-steps, UpdateFrequency2
99

10-
#customer intent:
10+
#customer intent: As a lab owner, I want to use customer-managed keys to manage disk encryption so that I can manage access control with more flexibility.
1111
---
1212

13-
# Encrypt disks by using customer-managed keys in Azure DevTest Labs
13+
# Encrypt disks with customer-managed keys in Azure DevTest Labs
1414

15-
Server-side encryption (SSE) protects your data and helps you meet your organizational security and compliance commitments. SSE automatically encrypts your data stored on managed disks in Azure (OS and data disks) at rest by default when persisting it to the cloud. Learn more about [Disk Encryption](/azure/virtual-machines/disk-encryption) on Azure.
15+
Server-side encryption (SSE) protects your data and helps you meet your organizational security and compliance commitments. SSE automatically encrypts data stored on managed disks in Azure (OS and data disks) at rest by default when it's persisted to the cloud. For more information about disk encryption on Azure, see [disk encryption](/azure/virtual-machines/disk-encryption).
1616

17-
Within DevTest Labs, all OS disks and data disks created as part of a lab are encrypted using platform-managed keys. However, as a lab owner you can choose to encrypt lab virtual machine disks using your own keys. If you choose to manage encryption with your own keys, you can specify a **customer-managed key** to use for encrypting data in lab disks. To learn more on Server-side encryption (SSE) with customer-managed keys, and other managed disk encryption types, see [Customer-managed keys](/azure/virtual-machines/disk-encryption#customer-managed-keys). Also, see [restrictions with using customer-managed keys](/azure/virtual-machines/disks-enable-customer-managed-keys-portal#restrictions).
17+
In Azure DevTest Labs, all OS disks and data disks created in a lab are encrypted via platform-managed keys. However, as a lab owner, you can choose to manage the encryption of lab virtual machine disks by using your own keys. If you choose to manage encryption by using your own keys, you can specify a *customer-managed key* to use for encrypting data in lab disks. To learn more about SSE with customer-managed keys, and other managed disk encryption types, see [Customer-managed keys](/azure/virtual-machines/disk-encryption#customer-managed-keys). Also, see [restrictions with using customer-managed keys](/azure/virtual-machines/disks-enable-customer-managed-keys-portal#restrictions).
1818

1919
> [!NOTE]
20-
> - The setting applies to newly created disks in the lab. If you choose to change the disk encryption set at some point, older disks in the lab will continue to remain encrypted using the previous disk encryption set.
20+
> - The disk encryption setting applies to newly created disks in the lab. If you change the disk encryption set at some point, older disks in the lab will continue to be encrypted with the previous disk encryption set.
2121
22-
The following section shows how a lab owner can set up encryption using a customer-managed key.
22+
The following section shows how a lab owner can set up encryption with a customer-managed key.
2323

24-
## Pre-requisites
24+
## Prerequisites
2525

26-
1. If you dont have a disk encryption set, follow this article to [set up a Key Vault and a Disk Encryption Set](/azure/virtual-machines/disks-enable-customer-managed-keys-portal). Note the following requirements for the disk encryption set:
26+
- If you don't have a disk encryption set, complete the steps in this article to [set up a key vault and a disk encryption set](/azure/virtual-machines/disks-enable-customer-managed-keys-portal). Note the following requirements for the disk encryption set:
2727

28-
- The disk encryption set needs to be **in same region and subscription as your lab**.
29-
- Ensure you (lab owner) have at least a **reader-level access** to the disk encryption set that will be used to encrypt lab disks.
30-
1. For labs created prior to 8/1/2020, lab owner will need to ensure lab system assigned identity is enabled. To do so, lab owner can go to their lab, click on **Configuration and policies**, click on **Identity (Preview)** blade, change System Assigned identity **Status** to **On** and click on **Save**. For new labs created after 8/1/2020 lab's system assigned identity will be enabled by default.
28+
- The disk encryption set needs to be in same region and subscription as your lab.
29+
- The lab owner needs to have at least reader-level access to the disk encryption set that will be used to encrypt lab disks.
30+
31+
- For labs created before 8/1/2020, the lab owner needs to ensure that lab system-assigned identity is enabled. To do so, the lab owner can go to the lab, select **Configuration and policies**, select **Identity (Preview)** in the left menu, change the system-assigned identity **Status** to **On**, and then select **Save**. For labs created after 8/1/2020, the system-assigned identity is enabled by default.
3132

3233
> [!div class="mx-imgBorder"]
33-
> :::image type="content" source="./media/encrypt-disks-customer-managed-keys/managed-keys.png" alt-text="Managed keys":::
34-
1. For the lab to handle encryption for all the lab disks, lab owner needs to explicitly grant the lab’s **system-assigned identity** reader role on the disk encryption set as well as virtual machine contributor role on the underlying Azure subscription. The lab owner can do so by completing the following steps:
34+
> :::image type="content" source="./media/encrypt-disks-customer-managed-keys/managed-keys.png" alt-text="Screenshot that shows the steps for enabling system-assigned identity." lightbox="./media/encrypt-disks-customer-managed-keys/managed-keys.png":::
35+
36+
- For the lab to handle encryption for all lab disks, the lab owner needs to explicitly grant the lab's system-assigned identity reader role on the disk encryption set and the virtual machine contributor role on the underlying Azure subscription. The lab owner can do that by completing the following steps:
3537

36-
1. Ensure you are a member of [User Access Administrator role](../role-based-access-control/built-in-roles.md#user-access-administrator) at the Azure subscription level so that you can manage user access to Azure resources.
38+
1. Ensure that you're a member of the [User Access Administrator role](../role-based-access-control/built-in-roles.md#user-access-administrator) at the Azure-subscription level so that you can manage user access to Azure resources.
3739

38-
1. On the **Disk Encryption Set** page, assign at least the Reader role to the lab name for which the disk encryption set will be used.
40+
1. On the **Disk Encryption Set** page, assign at least the Reader role to the lab for which the disk encryption set will be used.
3941

4042
For detailed steps, see [Assign Azure roles using the Azure portal](../role-based-access-control/role-assignments-portal.yml).
4143

42-
1. Navigate to the **Subscription** page in the Azure portal.
44+
1. Go to the **Subscription** page in the Azure portal.
4345

44-
1. Assign the Virtual Machine Contributor role to the lab name (system-assigned identity for the lab).
46+
1. Assign the Virtual Machine Contributor role to the lab (system-assigned identity for the lab).
4547

4648
## Encrypt lab OS disks with a customer-managed key
4749

48-
1. On the home page for your lab in the Azure portal, select **Configuration and policies** on the left menu.
50+
1. On the overview page for your lab in the Azure portal, select **Configuration and policies** in the left menu.
4951
1. On the **Configuration and policies** page, select **Disks (Preview)** in the **Encryption** section. By default, **Encryption type** is set to **Encryption at-rest with a platform managed key**.
5052

51-
:::image type="content" source="./media/encrypt-disks-customer-managed-keys/disks-page.png" alt-text="Disks tab of Configuration and policies page":::
52-
1. For **Encryption type**, select **Encryption at-rest with a customer managed key** from drop-down list.
53+
:::image type="content" source="./media/encrypt-disks-customer-managed-keys/disks-page.png" alt-text="Screenshot that shows the Disks pane in Configuration and policies." lightbox="./media/encrypt-disks-customer-managed-keys/disks-page.png":::
54+
55+
1. Under **Encryption type**, select **Encryption at-rest with a customer managed key**.
5356
1. For **Disk encryption set**, select the disk encryption set you created earlier. It's the same disk encryption set that the system-assigned identity of the lab can access.
54-
1. Select **Save** on the toolbar.
57+
1. Select **Save** at the top of the pane.
58+
59+
:::image type="content" source="./media/encrypt-disks-customer-managed-keys/disk-encryption-set.png" alt-text="Screenshot that shows the steps to complete in Configuration and policies." lightbox="./media/encrypt-disks-customer-managed-keys/disk-encryption-set.png":::
5560

56-
:::image type="content" source="./media/encrypt-disks-customer-managed-keys/disk-encryption-set.png" alt-text="Enable encryption with customer-managed key":::
57-
1. On the message box with the following text: *This setting will apply to newly created machines in the lab. Old OS disk will remain encrypted with the old disk encryption set*, select **OK**.
61+
1. A message box appears with the following message: *This setting will apply to newly created machines in the lab. Old OS disk will remain encrypted with the old disk encryption set*. Select **OK**.
5862

59-
Once configured, lab disks will be encrypted with the customer-managed key provided using the disk encryption set.
63+
After this configuration, lab disks are encrypted with the customer-managed key provided in the disk encryption set.
6064

61-
## How to validate if disks are being encrypted
65+
## How to validate that disks are being encrypted
6266

63-
1. Go to a lab virtual machine created after enabling disk encryption with a customer managed key on the lab.
67+
1. Go to a lab virtual machine that you created after enabling disk encryption with a customer-managed key on the lab.
6468

6569
> [!div class="mx-imgBorder"]
66-
> :::image type="content" source="./media/encrypt-disks-customer-managed-keys/enabled-encryption-vm.png" alt-text="VM with enabled disk encryption":::
67-
1. Click on the resource group of the VM and click on the OS Disk.
70+
> :::image type="content" source="./media/encrypt-disks-customer-managed-keys/enabled-encryption-vm.png" alt-text="Screenshot that shows a VM with disk encryption enabled." lightbox="./media/encrypt-disks-customer-managed-keys/enabled-encryption-vm.png":::
71+
72+
1. Select the resource group of the VM and then select the OS disk.
6873

6974
> [!div class="mx-imgBorder"]
70-
> :::image type="content" source="./media/encrypt-disks-customer-managed-keys/vm-resource-group.png" alt-text="VM resource group":::
71-
1. Go to Encryption and validate if encryption is set to customer managed key with the Disk Encryption Set you selected.
75+
> :::image type="content" source="./media/encrypt-disks-customer-managed-keys/vm-resource-group.png" alt-text="Screenshot that shows the VM in its resource group." lightbox="./media/encrypt-disks-customer-managed-keys/vm-resource-group.png":::
76+
77+
1. In the left pane, select **Encryption**. Validate that encryption is set to customer-managed key with the disk encryption set that you selected.
7278

7379
> [!div class="mx-imgBorder"]
74-
> :::image type="content" source="./media/encrypt-disks-customer-managed-keys/validate-encryption.png" alt-text="Validate encryption":::
80+
> :::image type="content" source="./media/encrypt-disks-customer-managed-keys/validate-encryption.png" alt-text="Screenshot that shows the encryption type of the VM.":::
7581
7682
## Related content
7783

78-
See the following articles:
79-
80-
- [Azure Disk Encryption](/azure/virtual-machines/disk-encryption).
84+
- [Azure disk encryption](/azure/virtual-machines/disk-encryption)
8185
- [Customer-managed keys](/azure/virtual-machines/disk-encryption#customer-managed-keys)

0 commit comments

Comments
 (0)