Home › Studies › AZ-104 › Compute › Disk Encryption

Disk Encryption

SSE · Azure Disk Encryption · encryption at host · Key Vault · disk encryption sets · ADE retirement

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

The four options for managed disks

SSEEncryption at hostAzure Disk Encryption (ADE)Confidential disk encryption
Where it happensAzure Storage, always onOn the VM hostInside the guest: BitLocker (Windows), DM-Crypt (Linux)Binds disk keys to the VM TPM
Temp disk encryptedNoYes (platform-managed keys only)YesYes (opt-in)
Caches encryptedNoYesYesYes
Uses VM CPUNoNoYesYes
Custom imagesYesYesNot for custom Linux imagesYes
Customer key controlDisk encryption set (DES)Disk encryption set (DES)Key Vault, optional KEKDisk encryption set (DES)
HSM keysKey Vault Premium and Managed HSMKey Vault Premium and Managed HSMKey Vault Premium onlyKey Vault Premium and Managed HSM

Azure Disk Encryption

Key Vault for ADE

ADE order of operations

Encryption at host

Customer-managed keys with a disk encryption set

CLI and PowerShell

TaskAzure CLIPowerShell
Create a vault for ADEaz keyvault create --name <kv> -g <rg> --location eastus --enabled-for-disk-encryptionNew-AzKeyVault -Name <kv> -ResourceGroupName <rg> -Location EastUS -EnabledForDiskEncryption
Enable disk encryption on an existing vaultaz keyvault update --name <kv> -g <rg> --enabled-for-disk-encryption trueSet-AzKeyVaultAccessPolicy -VaultName <kv> -ResourceGroupName <rg> -EnabledForDiskEncryption
Create a KEKaz keyvault key create --name myKEK --vault-name <kv> --kty RSA --size 4096Add-AzKeyVaultKey -Name myKEK -VaultName <kv> -Destination HSM -Size 4096
Enable ADEaz vm encryption enable -g <rg> --name <vm> --disk-encryption-keyvault <kv> (add --key-encryption-key myKEK for a KEK)Set-AzVMDiskEncryptionExtension -ResourceGroupName <rg> -VMName <vm> -DiskEncryptionKeyVaultUrl $KeyVault.VaultUri -DiskEncryptionKeyVaultId $KeyVault.ResourceId (KEK: -KeyEncryptionKeyVaultId -KeyEncryptionKeyUrl)
Check ADE statusaz vm encryption show --name <vm> -g <rg>Get-AzVmDiskEncryptionStatus -VMName <vm> -ResourceGroupName <rg>
Disable ADEaz vm encryption disable --resource-group <rg> --name <vm> --volume-type allDisable-AzVMDiskEncryption -ResourceGroupName <rg> -VMName <vm> -VolumeType all
Register encryption at hostaz feature register --name EncryptionAtHost --namespace Microsoft.Compute, then az feature showRegister-AzProviderFeature -FeatureName EncryptionAtHost -ProviderNamespace Microsoft.Compute, then Get-AzProviderFeature
VM with encryption at hostaz vm create … --encryption-at-host true; existing VM: az vm update … --encryption-at-host trueSet-AzVMSecurityProfile -VM $vmConfig -EncryptionAtHost $true, then New-AzVM
Verify encryption at hostaz vm show -g <rg> -n <vm> --query "securityProfile.encryptionAtHost"(Get-AzVM …).SecurityProfile.EncryptionAtHost

Exam Tips

Tick each tip once you can answer it without looking.

“Encrypt OS and data disks of a Windows VM with a key you control in Key Vault” → Azure Disk Encryption (BitLocker). Trap: SSE with platform keys is already on and gives no in-guest or Key Vault control.

“ADE on a Linux VM” → DM-Crypt (Windows uses BitLocker). Trap: BitLocker on Linux.

“Where must the Key Vault for ADE be” → In the same region as the VM. Trap: any region, as long as it is reachable.

“az vm encryption enable fails; the vault was created with default options” → Enable the vault for disk encryption (--enabled-for-disk-encryption). Trap: enabling only “for deployment” or “for template deployment”.

“Existing Key Vault for ADE has soft delete off” → Enable soft delete: it is required for ADE. Trap: assuming the new-vault default applies to old vaults.

“Key Vault firewall is on and ADE fails” → Allow Microsoft Trusted Services. Trap: opening the vault to all networks.

“Add an extra key to wrap the ADE secrets” → Create an RSA key encryption key (KEK) and pass --key-encryption-key. Trap: an Elliptic Curve key (unsupported) or an unversioned key URL.

“Basic or A-series VM; enable ADE” → Not supported (also under 2 GB RAM, and v6, v7 or newer).

“Linux VM with 4 GB RAM and root usage of 3 GB; encrypt OS and data disks” → Not enough: 8 GB is needed when root usage is 4 GB or less. Trap: the 2 GB minimum applies only to data-only encryption.

“Encrypt the temp disk and caches without using VM CPU” → Encryption at host. Trap: ADE covers the temp disk but uses VM CPU; SSE does not cover the temp disk.

“Enabling encryption at host fails with a feature error” → Register EncryptionAtHost in Microsoft.Compute and wait for Registered. Trap: enabling it in Key Vault or through a VM extension.

“Enable or disable encryption at host on an existing VM” → Deallocate the VM first. Trap: flipping the setting while the VM runs.

“VM that had ADE before; now you want encryption at host” → Not possible on that VM or its disks: migrate to new disks and a new VM. Trap: disabling ADE and then enabling encryption at host on the same VM.

“Customer-managed keys for managed disks (SSE)” → Key Vault (soft delete and purge protection), RSA key, disk encryption set, grant the DES identity access, associate the disk. Trap: using ADE or a KEK.

“Created a DES with the wrong encryption type” → Create a new DES: the type cannot be changed. Trap: editing the DES.

“Customer-managed key is disabled or expired” → VMs using it shut down and will not boot until the key is enabled or replaced. Trap: Azure switching to a platform-managed key.

“Key Vault key auto-rotation on an ADE VM” → ADE keeps using the original key: do not disable the old key. Trap: assuming ADE follows rotation the way a DES with auto rotation does.

“Recommended option for new VMs (as of Nov 13, 2026)” → Encryption at host: ADE retires on Sep 15, 2028. Trap: ADE as the preferred option.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Virtual MachinesMoving Resources →