Azure Encryption at host

Mahavir Saroj 201 Reputation points
2022-12-18T21:01:03.077+00:00

I have configured Encryption (SSE with CMK) on Azure disk. Now I'm getting a Microsoft defender recommendation, saying that "Virtual machines and virtual machine scale sets should have encryption at host enabled"

How to enable encryption at host on existing vms in azure?

Is it possible to configure encryption at host on existing VMs

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.
162 questions
{count} votes

2 answers

Sort by: Most helpful
  1. TP 82,736 Reputation points
    2022-12-21T04:29:42.72+00:00

    Hi,

    Yes, you can enable Encryption at host for your existing VMs. They need to be Deallocated to make the change.

    First you need to register the feature in your subscription if you haven't already. You can do this via Cloud Shell (PowerShell):

    Register-AzProviderFeature -FeatureName "EncryptionAtHost" -ProviderNamespace "Microsoft.Compute"  
    

    After running above command, wait about 15 minutes for the feature to finish registering. Refresh the portal page.

    Second, in the portal, with your VM Deallocated, navigate to the VM's Disks blade, then click Additional settings button.

    272692-encryption-at-host-additional-settings.jpg

    Option to enable Encryption at host will be there, as shown:

    272693-encryption-at-host-enable.jpg

    Please see this article for restrictions:

    https://video2.skills-academy.com/en-us/azure/virtual-machines/disk-encryption#encryption-at-host---end-to-end-encryption-for-your-vm-data

    272530-encryption-at-host-comparison.jpg

    Thanks.

    -TP

    1 person found this answer helpful.

  2. Ali AlEnezi 1,061 Reputation points
    2022-12-20T18:02:12.297+00:00

    Hello

    It is possible to enable encryption at host on existing virtual machines (VMs) in Azure. 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.

    Good luck!

    0 comments No comments