How to encrypt a small Linux VM

Harry 21 Reputation points
2020-01-08T12:21:50.377+00:00

I am trying to encrypt a B1s VM running Linux. I followed the guides but when I run

az vm encryption enable ...

I get this error message:

Not enough memory for enabling encryption on OS volume. 8 GB memory is recommended.

Is there a way to get these small VMs encrypted?

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.
109 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
4,615 questions
{count} votes

1 answer

Sort by: Most helpful
  1. soumi-MSFT 11,611 Reputation points Microsoft Employee
    2020-01-08T12:40:47.453+00:00

    @Harry , Unfortunately we do not allow encryption on Basic VMs. Azure Disk Encryption is not available on Basic, A-series VMs, or on virtual machines that do not meet these minimum memory requirements.

    You can read more on this here: https://learn.microsoft.com/en-us/azure/virtual-machines/linux/disk-encryption-overview#supported-vm-sizes

    Hope this helps.

    ---------------------------------------------------------------------------------------------------------------------------------------

    Please take a moment to "Mark as Answer" and/or "Vote as Helpful" wherever applicable. Thanks!