You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Enable customer-managed keys on your managed disks through the Azure portal.
4
4
author: roygara
5
5
6
-
ms.date: 06/16/2022
6
+
ms.date: 01/19/2023
7
7
ms.topic: how-to
8
8
ms.author: rogarana
9
9
ms.service: storage
@@ -14,13 +14,13 @@ ms.subservice: disks
14
14
15
15
**Applies to:**:heavy_check_mark: Linux VMs :heavy_check_mark: Windows VMs :heavy_check_mark:
16
16
17
-
Azure Disk Storage allows you to manage your own keys when using server-side encryption (SSE) for managed disks, if you choose. For conceptual information on SSE with customer managed keys, as well as other managed disk encryption types, see the **Customer-managed keys** section of our disk encryption article: [Customer-managed keys](disk-encryption.md#customer-managed-keys)
17
+
Azure Disk Storage allows you to manage your own keys when using server-side encryption (SSE) for managed disks, if you choose. For conceptual information on SSE with customer managed keys, and other managed disk encryption types, see the **Customer-managed keys** section of our disk encryption article: [Customer-managed keys](disk-encryption.md#customer-managed-keys)
18
18
19
19
## Restrictions
20
20
21
21
For now, customer-managed keys have the following restrictions:
22
22
23
-
- If this feature is enabled for your disk, you cannot disable it.
23
+
- If this feature is enabled for your disk, you can't disable it.
24
24
If you need to work around this, you must copy all the data to an entirely different managed disk that isn't using customer-managed keys:
25
25
26
26
- For Linux: [Copy a managed disk](./linux/disks-upload-vhd-to-managed-disk-cli.md#copy-a-managed-disk)
@@ -38,39 +38,38 @@ The following sections cover how to enable and use customer-managed keys for man
38
38
Now that you've created and set up your key vault and the disk encryption set, you can deploy a VM using the encryption.
39
39
The VM deployment process is similar to the standard deployment process, the only differences are that you need to deploy the VM in the same region as your other resources and you opt to use a customer managed key.
40
40
41
-
1. Search for **Virtual Machines** and select **+ Add** to create a VM.
42
-
1. On the **Basic**blade, select the same region as your disk encryption set and Azure Key Vault.
43
-
1. Fill in the other values on the **Basic**blade as you like.
41
+
1. Search for **Virtual Machines** and select **+ Create** to create a VM.
42
+
1. On the **Basic**pane, select the same region as your disk encryption set and Azure Key Vault.
43
+
1. Fill in the other values on the **Basic**pane as you like.
44
44
45
-

45
+
:::image type="content" source="media/virtual-machines-disk-encryption-portal/server-side-encryption-create-a-vm-region.png" alt-text="Screenshot of the VM creation experience, with the region value highlighted." lightbox="media/virtual-machines-disk-encryption-portal/server-side-encryption-create-a-vm-region.png":::
46
46
47
-
1. On the **Disks** blade, select **Encryption at rest with a customer-managed key**.
48
-
1. Select your disk encryption set in the **Disk encryption set** drop-down.
47
+
1. On the **Disks** pane, for **Key management** select your disk encryption set, key vault, and key in the drop-down.
49
48
1. Make the remaining selections as you like.
50
49
51
-

50
+
:::image type="content" source="media/virtual-machines-disk-encryption-portal/server-side-encryption-create-vm-customer-managed-key-disk-encryption-set.png" alt-text="Screenshot of the VM creation experience, the disks pane, customer-managed key selected." lightbox="media/virtual-machines-disk-encryption-portal/server-side-encryption-create-vm-customer-managed-key-disk-encryption-set.png":::
52
51
53
52
## Enable on an existing disk
54
53
55
54
> [!CAUTION]
56
-
> Enabling disk encryption on any disks attached to a VM will require that you stop the VM.
55
+
> Enabling disk encryption on any disks attached to a VM requires you to stop the VM.
57
56
58
57
1. Navigate to a VM that is in the same region as one of your disk encryption sets.
59
58
1. Open the VM and select **Stop**.
60
59
61
-

60
+
:::image type="content" source="media/virtual-machines-disk-encryption-portal/server-side-encryption-stop-vm-to-encrypt-disk-fix.png" alt-text="Screenshot of the main overlay for your example VM, with the Stop button highlighted." lightbox="media/virtual-machines-disk-encryption-portal/server-side-encryption-stop-vm-to-encrypt-disk-fix.png":::
62
61
63
-
1. After the VM has finished stopping, select **Disks** and then select the disk you want to encrypt.
62
+
1. After the VM has finished stopping, select **Disks**, and then select the disk you want to encrypt.
64
63
65
-

64
+
:::image type="content" source="media/virtual-machines-disk-encryption-portal/server-side-encryption-existing-disk-select.png" alt-text="Screenshot of your example VM, with the Disks pane open, the OS disk is highlighted, as an example disk for you to select." lightbox="media/virtual-machines-disk-encryption-portal/server-side-encryption-existing-disk-select.png":::
66
65
67
-
1. Select **Encryption** and select**Encryption at rest with a customer-managed key**and then select your disk encryption set in the drop-down list.
66
+
1. Select **Encryption** and under**Key management** select your key vault and key in the drop-down list, under **Customer-managed key**.
68
67
1. Select **Save**.
69
68
70
-

69
+
:::image type="content" source="media/virtual-machines-disk-encryption-portal/server-side-encryption-encrypt-existing-disk-customer-managed-key.png" alt-text="Screenshot of your example OS disk, the encryption pane is open, encryption at rest with a customer-managed key is selected, as well as your example Azure Key Vault." lightbox="media/virtual-machines-disk-encryption-portal/server-side-encryption-encrypt-existing-disk-customer-managed-key.png":::
71
70
72
71
1. Repeat this process for any other disks attached to the VM you'd like to encrypt.
73
-
1. When your disks finish switching over to customer-managed keys, if there are no there no other attached disks you'd like to encrypt, you may start your VM.
72
+
1. When your disks finish switching over to customer-managed keys, if there are no there no other attached disks you'd like to encrypt, start your VM.
74
73
75
74
> [!IMPORTANT]
76
75
> Customer-managed keys rely on managed identities for Azure resources, a feature of Azure Active Directory (Azure AD). When you configure customer-managed keys, a managed identity is automatically assigned to your resources under the covers. If you subsequently move the subscription, resource group, or managed disk from one Azure AD directory to another, the managed identity associated with the managed disks is not transferred to the new tenant, so customer-managed keys may no longer work. For more information, see [Transferring a subscription between Azure AD directories](../active-directory/managed-identities-azure-resources/known-issues.md#transferring-a-subscription-between-azure-ad-directories).
description: Enable double encryption at rest for your managed disk data using the Azure portal.
4
4
author: roygara
5
5
6
-
ms.date: 06/29/2021
6
+
ms.date: 01/19/2023
7
7
ms.topic: how-to
8
8
ms.author: rogarana
9
9
ms.service: storage
@@ -15,23 +15,16 @@ ms.custom: references_regions
15
15
16
16
**Applies to:**:heavy_check_mark: Linux VMs :heavy_check_mark: Windows VMs :heavy_check_mark:
17
17
18
-
Azure Disk Storage supports double encryption at rest for managed disks. For conceptual information on double encryption at rest, as well as other managed disk encryption types, see the [Double encryption at rest](disk-encryption.md#double-encryption-at-rest) section of our disk encryption article.
18
+
Azure Disk Storage supports double encryption at rest for managed disks. For conceptual information on double encryption at rest, and other managed disk encryption types, see the [Double encryption at rest](disk-encryption.md#double-encryption-at-rest) section of our disk encryption article.
19
19
20
20
## Getting started
21
21
22
-
1. Sign in to the [Azure portal](https://aka.ms/diskencryptionupdates).
23
-
24
-
> [!IMPORTANT]
25
-
> You must use the [provided link](https://aka.ms/diskencryptionupdates) to access the Azure portal. Double encryption at rest is not currently visible in the public Azure portal without using the link.
26
-
22
+
1. Sign in to the [Azure portal](https://portal.azure.com).
27
23
1. Search for and select **Disk Encryption Sets**.
28
24
29
-
:::image type="content" source="media/virtual-machines-disks-double-encryption-at-rest-portal/double-encryption-disk-encryption-sets-search.png" alt-text="Screenshot of the main Azure portal, disk encryption sets is highlighted in the search bar.":::
30
-
31
-
1. Select **+ Add**.
32
-
33
-
:::image type="content" source="media/virtual-machines-disks-double-encryption-at-rest-portal/double-encryption-add-disk-encryption-set.png" alt-text="Screenshot of the disk encryption set blade, + Add is highlighted.":::
25
+
:::image type="content" source="media/virtual-machines-disks-double-encryption-at-rest-portal/double-encryption-disk-encryption-sets-search.png" alt-text="Screenshot of the main Azure portal, disk encryption sets is highlighted in the search bar." lightbox="media/virtual-machines-disks-double-encryption-at-rest-portal/double-encryption-disk-encryption-sets-search.png":::
34
26
27
+
1. Select **+ Create**.
35
28
1. Select one of the supported regions.
36
29
1. For **Encryption type**, select **Double encryption with platform-managed and customer-managed keys**.
37
30
@@ -40,35 +33,33 @@ Azure Disk Storage supports double encryption at rest for managed disks. For con
40
33
41
34
1. Fill in the remaining info.
42
35
43
-
:::image type="content" source="media/virtual-machines-disks-double-encryption-at-rest-portal/double-encryption-create-disk-encryption-set-blade.png" alt-text="Screenshot of the disk encryption set creation blade, regions and double encryption with platform-managed and customer-managed keys are highlighted.":::
36
+
:::image type="content" source="media/virtual-machines-disks-double-encryption-at-rest-portal/double-encryption-create-disk-encryption-set-blade.png" alt-text="Screenshot of the disk encryption set creation blade, regions and double encryption with platform-managed and customer-managed keys are highlighted." lightbox="media/virtual-machines-disks-double-encryption-at-rest-portal/double-encryption-create-disk-encryption-set-blade.png":::
44
37
45
38
1. Select an Azure Key Vault and key, or create a new one if necessary.
46
39
47
40
> [!NOTE]
48
41
> If you create a Key Vault instance, you must enable soft delete and purge protection. These settings are mandatory when using a Key Vault for encrypting managed disks, and protect you from losing data due to accidental deletion.
49
42
50
-
:::image type="content" source="media/virtual-machines-disks-double-encryption-at-rest-portal/double-encryption-select-key-vault.png" alt-text="Screenshot of the Key Vault creation blade.":::
43
+
:::image type="content" source="media/virtual-machines-disks-double-encryption-at-rest-portal/double-encryption-select-key-vault.png" alt-text="Screenshot of the Key Vault creation blade." lightbox="media/virtual-machines-disks-double-encryption-at-rest-portal/double-encryption-select-key-vault.png":::
51
44
52
45
1. Select **Create**.
53
46
1. Navigate to the disk encryption set you created, and select the error that is displayed. This will configure your disk encryption set to work.
54
47
55
-
:::image type="content" source="media/virtual-machines-disks-double-encryption-at-rest-portal/double-encryption-disk-set-error.png" alt-text="Screenshot of the disk encryption set displayed error, the error text is: To associate a disk, image, or snapshot with this disk encryption set, you must grant permissions to the key vault.":::
48
+
:::image type="content" source="media/virtual-machines-disks-double-encryption-at-rest-portal/double-encryption-disk-set-error.png" alt-text="Screenshot of the disk encryption set displayed error, the error text is: To associate a disk, image, or snapshot with this disk encryption set, you must grant permissions to the key vault." lightbox="media/virtual-machines-disks-double-encryption-at-rest-portal/double-encryption-disk-set-error.png":::
56
49
57
50
A notification should pop up and succeed. Doing this will allow you to use the disk encryption set with your key vault.
58
51
59
-

52
+
:::image type="content" source="media/virtual-machines-disks-double-encryption-at-rest-portal/disk-encryption-notification-success.png" alt-text="Screenshot of successful permission and role assignment for your key vault." lightbox="media/virtual-machines-disks-double-encryption-at-rest-portal/disk-encryption-notification-success.png":::
60
53
61
54
1. Navigate to your disk.
62
55
1. Select **Encryption**.
63
-
1. For **Encryption type**, select **Double encryption with platform-managed and customer-managed keys**.
64
-
1. Select your disk encryption set.
56
+
1. For **Key management**, select one of the keys under **Platform-managed and customer-managed keys**.
65
57
1. select **Save**.
66
58
67
-
:::image type="content" source="media/virtual-machines-disks-double-encryption-at-rest-portal/double-encryption-enable-disk-blade.png" alt-text="Screenshot of the encryption blade for your managed disk, the aforementioned encryption type is highlighted.":::
59
+
:::image type="content" source="media/virtual-machines-disks-double-encryption-at-rest-portal/double-encryption-enable-disk-blade.png" alt-text="Screenshot of the encryption blade for your managed disk, the aforementioned encryption type is highlighted." lightbox="media/virtual-machines-disks-double-encryption-at-rest-portal/double-encryption-enable-disk-blade.png":::
68
60
69
61
You have now enabled double encryption at rest on your managed disk.
0 commit comments