Azure VMs Bulk disk encryption for a resource group

Siva Sankararao Arudra 61 Reputation points
2022-01-02T15:00:14.603+00:00

Hi Team,

I've a requirement of enabling disk encryption of more than 80 VM's in a resource group. so there any possible way to enable disk encryption in bulk rather than going one by one. Like using PowerShell and key Vault KEK method.

Additionally, the below backup policy wasn't working for ASR migrated VM's but it's working for newly created VM's from the marketplace. Please can you assist me on these?

Configure backup on virtual machines without a given tag to an existing recovery services vault in the same location

Thank you!

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.
174 questions
0 comments No comments
{count} votes

Accepted answer
  1. deherman-MSFT 37,081 Reputation points Microsoft Employee
    2022-01-03T23:21:23.363+00:00

    @SivaSankaRao
    You can enable encryption of all VMs in the resource group by uncommenting line 211 of the Azure Disk Encryption prerequisites PowerShell script.

    The backup policy did not get attached to your question. I recommend posting this as a separate question as azure-backup is handled by a separate team. They should be able to provide assistance.

    Hope this helps! Let me know if you run into any issues or have more questions regarding encrypting your VMs.


    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.