Migrate Platform Managed Keys to Customer Managed keys

MS Techie 2,681 Reputation points
2023-01-30T11:29:47.1633333+00:00

Hi,

We have several windows and linux azure VMs with disk encyrption being Platform managed keys. Around 100 disks

  1. How to collectively migrate those disks from Platform Managed Keys to Customer Managed Keys.
  2. We plan to store those CMK keys in CyberArk ? Is it possible ? Does azure support having the CMK Keys in CyberArk ?
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,164 questions
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
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 33,626 Reputation points Microsoft Employee
    2023-01-30T21:24:41.5833333+00:00

    @MS Techie

    I understand you have some disks and you wish to migrate the server side encryption keys from platform managed keys to customer managed keys. Please correct me if I am misunderstanding the issue.

    CMKs must be stored in Azure Key Vault or Azure Key Vault Managed Hardware Security Module (HSM), as noted here. To convert from PMK to CMK on an attached disk, requires you to stop the VM. You can do this migration via portal, PowerShell, or CLI. Once you have the DiskEncryptionSet created you can go through a list of VMs, stop the VM, then enable CMK for the attached disks. It's best practice to create a backup before any change to encryption is performed.

    Hope this helps! Let me know if you still have questions or need further assistance.


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