Not able to enable EncryptionAtHost due to previous fail to encrypt VM disk

jazzspeed 25 Reputation points
2024-11-09T12:19:40.1766667+00:00

Hello,

I have just tried to encrypt Ubuntu VM disk but failed because of the minimum requirement RAM not met.

So then I tried to enable "EncryptionAtHost" instead. (I have done enabling EncryptionAtHost feature as per instruction in the following URL: https://learn.microsoft.com/en-us/azure/virtual-machines/linux/disks-enable-host-based-encryption-cli)

However, it kept giving me error message as follow:

Failed to update 'vmname***************'. Error: Encryption at host is not allowed for a VM having disks that were encrypted with Azure Disk Encryption.

I can confirm there is no encryption available in that VM. I have also tried few powershell command like:

Disable-AzVMDiskEncryption

Remove-AzVMDiskEncryptionExtension

And based on the Get-AzVMDiskEncryptionStatus command, the results also shown nothing encrypted:

OsVolumeEncrypted : NotEncrypted

DataVolumesEncrypted : NotEncrypted

OsVolumeEncryptionSettings :

ProgressMessage : No Encryption extension or metadata found on the VM

Similarly, on the "Overview" screen, it is showing:

Azure disk encryption: Not enabled

Anyone kindly share if ever had similar experience and how to resolve this issue please?

Thank you & Best regards,

Azure Disk Encryption
Azure Disk Encryption
An Azure service for virtual machines (VMs) that helps address organizational security and compliance requirements by encrypting the VM boot and data disks with keys and policies that are controlled in Azure Key Vault.
177 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Nehruji R 8,161 Reputation points Microsoft Vendor
    2024-11-11T05:24:19.1433333+00:00

    Hello jazzspeed,

    Greetings! Welcome to Microsoft Q&A Platform.

    Azure Disk Encryption and Encryption at Host are different features. Azure Disk Encryption uses the DM-Crypt feature of Linux to provide volume encryption, while Encryption at Host encrypts data at the host level before it is written to the disk. Encryption at Host can't be enabled on virtual machines (VMs) or virtual machine scale sets that currently or ever had Azure Disk Encryption enabled in past times. You will need to recreate the VM in order to enable Encryption at Host. Apologies for the inconvenience with this limitation.

    refer - https://learn.microsoft.com/en-us/azure/virtual-machines/disks-enable-host-based-encryption-portal?tabs=azure-powershell

    There are several options available for doing this, depending on the type of VM and the operating system it is running. One option is to use Azure Disk Encryption, which is a feature of Azure that enables you to encrypt the OS and data disks of your VMs using BitLocker on Windows VMs or DM-Crypt on Linux VMs. To enable Azure Disk Encryption on an existing VM, you will need to follow the steps outlined in the Azure documentation:

    Make sure that the VM meets the prerequisites for Azure Disk Encryption.

    1. Install the Azure Disk Encryption Extension on the VM.
    2. Create an Azure Key Vault and grant the required permissions to the VM.
    3. Use Azure PowerShell or Azure CLI to enable Azure Disk Encryption on the VM.

    Another option is to use Azure Confidential Computing, which is a feature of Azure that enables you to encrypt data in use on VMs using hardware-based trusted execution environments (TEEs). To enable Azure Confidential Computing on an existing VM, you will need to follow the steps outlined in the Azure documentation:

    1. Make sure that the VM meets the prerequisites for Azure Confidential Computing.
    2. Install the Azure Confidential Computing Extension on the VM.
    3. Use Azure PowerShell or Azure CLI to enable Azure Confidential Computing on the VM.

    Similar thread for reference - https://learn.microsoft.com/en-us/answers/questions/739983/how-to-encrypt-the-temp-disks-caches-and-data-flow,https://learn.microsoft.com/en-us/answers/questions/843946/has-anybody-enable-azure-encryption-at-host-what-i

    Hope this information helps! please let us know if you have any further queries. I’m happy to assist you further.


    Please "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.