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: Azure Storage protects your data by encrypting it at rest before persisting it to Storage clusters. You can rely on Microsoft-managed keys for the encryption of your managed disks, or you can use customer-managed keys to manage encryption with your own keys.
4
4
author: roygara
5
5
6
-
ms.date: 12/13/2019
6
+
ms.date: 01/10/2020
7
7
ms.topic: conceptual
8
8
ms.author: rogarana
9
9
ms.service: virtual-machines-linux
@@ -20,15 +20,15 @@ For more information about the cryptographic modules underlying Azure managed di
20
20
21
21
## About encryption key management
22
22
23
-
You can rely on platform-managed keys for the encryption of your managed disk, or you can manage encryption using your own keys (public preview). If you choose to manage encryption with your own keys, you can specify a *customer-managed key* to use for encrypting and decrypting all data in managed disks.
23
+
You can rely on platform-managed keys for the encryption of your managed disk, or you can manage encryption 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 and decrypting all data in managed disks.
24
24
25
25
The following sections describe each of the options for key management in greater detail.
26
26
27
27
## Platform-managed keys
28
28
29
29
By default, managed disks use platform-managed encryption keys. As of June 10, 2017, all new managed disks, snapshots, images, and new data written to existing managed disks are automatically encrypted-at-rest with platform-managed keys.
30
30
31
-
## Customer-managed keys (public preview)
31
+
## Customer-managed keys
32
32
33
33
You can choose to manage encryption at the level of each managed disk, with your own keys. Server-side encryption for managed disks with customer-managed keys offers an integrated experience with Azure Key Vault. You can either import [your RSA keys](../../key-vault/key-vault-hsm-protected-keys.md) to your Key Vault or generate new RSA keys in Azure Key Vault. Azure managed disks handles the encryption and decryption in a fully transparent fashion using [envelope encryption](../../storage/common/storage-client-side-encryption.md#encryption-and-decryption-via-the-envelope-technique). It encrypts data using an [AES](https://en.wikipedia.org/wiki/Advanced_Encryption_Standard) 256 based data encryption key (DEK), which is, in turn, protected using your keys. You have to grant access to managed disks in your Key Vault to use your keys for encrypting and decrypting the DEK. This allows you full control of your data and keys. You can disable your keys or revoke access to managed disks at any time. You can also audit the encryption key usage with Azure Key Vault monitoring to ensure that only managed disks or other trusted Azure services are accessing your keys.
34
34
@@ -52,25 +52,27 @@ To revoke access to customer-managed keys, see [Azure Key Vault PowerShell](http
52
52
53
53
### Supported scenarios and restrictions
54
54
55
-
During the preview, only the following scenarios are supported:
55
+
For now, only the following scenarios are supported:
56
56
57
57
- Create a virtual machine (VM) from an Azure Marketplace image and encrypt the OS disk with server-side encryption using customer-managed keys.
58
58
- Create a custom image encrypted with server-side encryption and customer-managed keys.
59
59
- Create a VM from a custom image and encrypt the OS disk using server-side encryption and customer-managed keys.
60
60
- Create data disks encrypted using server-side encryption and customer-managed keys.
61
-
- Create snapshots that are encrypted using server-side encryption and customer-managed keys.
61
+
-(CLI/PowerShell only) Create snapshots that are encrypted using server-side encryption and customer-managed keys.
62
62
- Create virtual machine scale sets that are encrypted with server-side encryption and customer-managed keys.
63
63
64
-
The preview also has the following restrictions:
64
+
For now, we also have the following restrictions:
65
65
66
-
-**Only available in West Central US, Canada Central, North Europe**.
66
+
-**Only available in West Central US, South Central US, East US 2, East US, West US 2, Central Canada, and North Europe.**
67
67
- Disks created from custom images that are encrypted using server-side encryption and customer-managed keys must be encrypted using the same customer-managed keys and must be in the same subscription.
68
68
- Snapshots created from disks that are encrypted with server-side encryption and customer-managed keys must be encrypted with the same customer-managed keys.
69
69
- Custom images encrypted using server-side encryption and customer-managed keys cannot be used in the shared image gallery.
70
-
-Your Key Vault must be in the same subscription and region as your customer-managed keys.
70
+
-All resources related to your customer-managed keys (Azure Key Vaults, disk encryption sets, VMs, disks, and snapshots) must be in the same subscription and region.
71
71
- Disks, snapshots, and images encrypted with customer-managed keys cannot move to another subscription.
72
+
- If you use the Azure Portal to create your disk encryption set, you cannot use snapshots for now.
72
73
73
-
### Setting up your Azure Key Vault and DiskEncryptionSet
74
+
### CLI
75
+
#### Setting up your Azure Key Vault and DiskEncryptionSet
74
76
75
77
1. Make sure that you have installed the latest [Azure CLI](/cli/azure/install-az-cli2) and logged to an Azure account in with [az login](/cli/azure/reference-index).
76
78
@@ -117,7 +119,7 @@ The preview also has the following restrictions:
117
119
az role assignment create --assignee $desIdentity --role Reader --scope $keyVaultId
118
120
```
119
121
120
-
### Create a VM using a Marketplace image, encrypting the OS and data disks with customer-managed keys
122
+
#### Create a VM using a Marketplace image, encrypting the OS and data disks with customer-managed keys
121
123
122
124
```azurecli
123
125
rgName=yourResourceGroupName
@@ -134,7 +136,7 @@ az vm create -g $rgName -n $vmName -l $location --image $image --size $vmSize --
134
136
135
137
```
136
138
137
-
### Create an empty disk encrypted using server-side encryption with customer-managed keys and attach it to a VM
139
+
####Create an empty disk encrypted using server-side encryption with customer-managed keys and attach it to a VM
138
140
139
141
```azurecli
140
142
vmName=yourVMName
@@ -160,6 +162,11 @@ az vm disk attach --vm-name $vmName --lun $diskLUN --ids $diskId
160
162
> [!IMPORTANT]
161
163
> 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 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).
> 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 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).
169
+
163
170
## Server-side encryption versus Azure disk encryption
164
171
165
172
[Azure Disk Encryption for virtual machines and virtual machine scale sets](../../security/fundamentals/azure-disk-encryption-vms-vmss.md) leverages the [BitLocker](https://docs.microsoft.com/windows/security/information-protection/bitlocker/bitlocker-overview) feature of Windows and the [DM-Crypt](https://en.wikipedia.org/wiki/Dm-crypt) feature of Linux to encrypt managed disks with customer-managed keys within the guest VM. Server-side encryption with customer-managed keys improves on ADE by enabling you to use any OS types and images for your VMs by encrypting data in the Storage service.
description: Azure Storage protects your data by encrypting it at rest before persisting it to Storage clusters. You can rely on Microsoft-managed keys for the encryption of your managed disks, or you can use customer-managed keys to manage encryption with your own keys.
4
4
author: roygara
5
5
6
-
ms.date: 12/13/2019
6
+
ms.date: 01/10/2020
7
7
ms.topic: conceptual
8
8
ms.author: rogarana
9
9
ms.service: virtual-machines-windows
@@ -20,15 +20,15 @@ For more information about the cryptographic modules underlying Azure managed di
20
20
21
21
## About encryption key management
22
22
23
-
You can rely on platform-managed keys for the encryption of your managed disk, or you can manage encryption using your own keys (public preview). If you choose to manage encryption with your own keys, you can specify a *customer-managed key* to use for encrypting and decrypting all data in managed disks.
23
+
You can rely on platform-managed keys for the encryption of your managed disk, or you can manage encryption 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 and decrypting all data in managed disks.
24
24
25
25
The following sections describe each of the options for key management in greater detail.
26
26
27
27
## Platform-managed keys
28
28
29
29
By default, managed disks use platform-managed encryption keys. As of June 10, 2017, all new managed disks, snapshots, images, and new data written to existing managed disks are automatically encrypted-at-rest with platform-managed keys.
30
30
31
-
## Customer-managed keys (public preview)
31
+
## Customer-managed keys
32
32
33
33
You can choose to manage encryption at the level of each managed disk, with your own keys. Server-side encryption for managed disks with customer-managed keys offers an integrated experience with Azure Key Vault. You can either import [your RSA keys](../../key-vault/key-vault-hsm-protected-keys.md) to your Key Vault or generate new RSA keys in Azure Key Vault. Azure managed disks handles the encryption and decryption in a fully transparent fashion using [envelope encryption](../../storage/common/storage-client-side-encryption.md#encryption-and-decryption-via-the-envelope-technique). It encrypts data using an [AES](https://en.wikipedia.org/wiki/Advanced_Encryption_Standard) 256 based data encryption key (DEK), which is, in turn, protected using your keys. You have to grant access to managed disks in your Key Vault to use your keys for encrypting and decrypting the DEK. This allows you full control of your data and keys. You can disable your keys or revoke access to managed disks at any time. You can also audit the encryption key usage with Azure Key Vault monitoring to ensure that only managed disks or other trusted Azure services are accessing your keys.
34
34
@@ -52,25 +52,30 @@ To revoke access to customer-managed keys, see [Azure Key Vault PowerShell](http
52
52
53
53
### Supported scenarios and restrictions
54
54
55
-
During the preview, only the following scenarios are supported:
55
+
For now, only the following scenarios are supported:
56
56
57
57
- Create a virtual machine (VM) from an Azure Marketplace image and encrypt the OS disk with server-side encryption using customer-managed keys.
58
58
- Create a custom image encrypted with server-side encryption and customer-managed keys.
59
59
- Create a VM from a custom image and encrypt the OS disk using server-side encryption and customer-managed keys.
60
60
- Create data disks encrypted using server-side encryption and customer-managed keys.
61
-
- Create snapshots that are encrypted using server-side encryption and customer-managed keys.
61
+
-(CLI/PowerShell only) Create snapshots that are encrypted using server-side encryption and customer-managed keys.
62
62
- Create virtual machine scale sets that are encrypted with server-side encryption and customer-managed keys.
63
+
-["Soft" and "Hard" RSA keys](../../key-vault/about-keys-secrets-and-certificates.md#keys-and-key-types) of size 2080 are supported.
63
64
64
-
The preview also has the following restrictions:
65
+
For now, we also have the following restrictions:
65
66
66
-
-**Only available in West Central US, US East 2, Canada Central, North Europe.**
67
+
-**Only available in West Central US, South Central US, East US 2, East US, West US 2, Central Canada, and North Europe.**
67
68
- Disks created from custom images that are encrypted using server-side encryption and customer-managed keys must be encrypted using the same customer-managed keys and must be in the same subscription.
68
69
- Snapshots created from disks that are encrypted with server-side encryption and customer-managed keys must be encrypted with the same customer-managed keys.
69
70
- Custom images encrypted using server-side encryption and customer-managed keys cannot be used in the shared image gallery.
70
-
-Your Key Vault must be in the same subscription and region as your customer-managed keys.
71
+
-All resources related to your customer-managed keys (Azure Key Vaults, disk encryption sets, VMs, disks, and snapshots) must be in the same subscription and region.
71
72
- Disks, snapshots, and images encrypted with customer-managed keys cannot move to another subscription.
73
+
- If you use the Azure Portal to create your disk encryption set, you cannot use snapshots for now.
74
+
- Only ["soft" and "hard" RSA keys](../../key-vault/about-keys-secrets-and-certificates.md#keys-and-key-types) of size 2080 are supported, no other keys or sizes.
72
75
73
-
### Setting up your Azure Key Vault and DiskEncryptionSet
76
+
### PowerShell
77
+
78
+
#### Setting up your Azure Key Vault and DiskEncryptionSet
74
79
75
80
1. Make sure that you have installed latest [Azure PowerShell version](/powershell/azure/install-az-ps), and you are signed in to an Azure account in with Connect-AzAccount
76
81
@@ -112,7 +117,7 @@ The preview also has the following restrictions:
> 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 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).
> 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 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).
0 commit comments