Skip to content

Commit 6d8261d

Browse files
authored
Merge pull request #192037 from msmbaldwin/ade-misc
Ade misc
2 parents 654c6b8 + d49545f commit 6d8261d

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

includes/disk-encryption-key-vault.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ New-AzResourceGroup -Name "myResourceGroup" -Location "EastUS"
3434
Create a key vault using the [az keyvault create](/cli/azure/keyvault#az_keyvault_create) Azure CLI command, the [New-AzKeyvault](/powershell/module/az.keyvault/new-azkeyvault) Azure PowerShell command, the [Azure portal](https://portal.azure.com), or a [Resource Manager template](https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.keyvault/key-vault-create).
3535

3636
>[!WARNING]
37-
> Your key vault and VMs must be in the same subscription. Also, to ensure that encryption secrets don't cross regional boundaries, Azure Disk Encryption requires the Key Vault and the VMs to be co-located in the same region. Create and use a Key Vault that is in the same subscription and region as the VMs to be encrypted.
37+
> To ensure that encryption secrets don't cross regional boundaries, you must create and use a key vault that is in the **same region and tenant** as the VMs to be encrypted.
3838
3939
Each Key Vault must have a unique name. Replace \<your-unique-keyvault-name\> with the name of your key vault in the following examples.
4040

@@ -53,14 +53,14 @@ When creating a key vault using Azure PowerShell, add the "-EnabledForDiskEncryp
5353
```azurepowershell-interactive
5454
New-AzKeyvault -name "<your-unique-keyvault-name>" -ResourceGroupName "myResourceGroup" -Location "eastus" -EnabledForDiskEncryption
5555
```
56+
5657
### Resource Manager template
5758

5859
You can also create a key vault by using the [Resource Manager template](https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.keyvault/key-vault-create).
5960

6061
1. On the Azure quickstart template, click **Deploy to Azure**.
6162
2. Select the subscription, resource group, resource group location, Key Vault name, Object ID, legal terms, and agreement, and then click **Purchase**.
6263

63-
6464
## Set key vault advanced access policies
6565

6666
The Azure platform needs access to the encryption keys or secrets in your key vault to make them available to the VM for booting and decrypting the volumes.
@@ -81,7 +81,7 @@ Use [az keyvault update](/cli/azure/keyvault#az_keyvault_update) to enable disk
8181
8282
```azurecli-interactive
8383
az keyvault update --name "<your-unique-keyvault-name>" --resource-group "MyResourceGroup" --enabled-for-deployment "true"
84-
```
84+
```
8585
8686
- **Enable Key Vault for template deployment, if needed:** Allow Resource Manager to retrieve secrets from the vault.
8787
```azurecli-interactive
@@ -93,7 +93,7 @@ Use [az keyvault update](/cli/azure/keyvault#az_keyvault_update) to enable disk
9393
9494
- **Enable Key Vault for disk encryption:** EnabledForDiskEncryption is required for Azure Disk encryption.
9595
96-
```azurepowershell-interactive
96+
```azurepowershell-interactive
9797
Set-AzKeyVaultAccessPolicy -VaultName "<your-unique-keyvault-name>" -ResourceGroupName "MyResourceGroup" -EnabledForDiskEncryption
9898
```
9999
@@ -105,19 +105,24 @@ Use [az keyvault update](/cli/azure/keyvault#az_keyvault_update) to enable disk
105105
106106
- **Enable Key Vault for template deployment, if needed:** Enables Azure Resource Manager to get secrets from this key vault when this key vault is referenced in a template deployment.
107107
108-
```azurepowershell-interactive
108+
```azurepowershell-interactive
109109
Set-AzKeyVaultAccessPolicy -VaultName "<your-unique-keyvault-name>" -ResourceGroupName "MyResourceGroup" -EnabledForTemplateDeployment
110110
```
111111
112112
### Azure portal
113113
114114
1. Select your key vault and go to **Access Policies**.
115115
2. Under "Enable Access to", select the box labeled **Azure Disk Encryption for volume encryption**.
116-
3. Select **Azure Virtual Machines for deployment** and/or **Azure Resource Manager for template deployment**, if needed.
116+
3. Select **Azure Virtual Machines for deployment** and/or **Azure Resource Manager for template deployment**, if needed.
117117
4. Click **Save**.
118118
119119
![Azure key vault advanced access policies](../articles/virtual-machines/media/disk-encryption/keyvault-portal-fig4.png)
120120
121+
## Azure Disk Encryption and auto-rotation
122+
123+
Although Azure Key Vault now has [key auto-rotation in public preview](../articles/key-vault/keys/how-to-configure-key-rotation.md), it is not currently compatible with Azure Disk Encryption. Specifically, Azure Disk Encryption will continue to use the original encryption key, even after it has been auto-rotated.
124+
125+
Rotating an encryption key will not break Azure Disk Encryption, but disabling the "old" encryption key (in other words, the key Azure Disk Encryption is still using) will.
121126
122127
## Set up a key encryption key (KEK)
123128

0 commit comments

Comments
 (0)