Encrypt Azure disks failed with error code 2147942487

Ray Fu (Inspur Worldwide Services Ltd) 21 Reputation points Microsoft Vendor
2022-06-10T03:12:58.253+00:00

Azure Cli command line:
az vm encryption enable --resource-group "GenDox_Labs" --name "GenDoxDM2" --disk-encryption-keyvault "/subscriptions/963c56be-5368-4fd1-9477-f7d214f9888a/resourceGroups/GenDox_Labs/providers/Microsoft.KeyVault/vaults/ESRPIntegration" --volume-type All

Error:
(VMExtensionProvisioningError) VM has reported a failure when processing extension 'AzureDiskEncryption'. Error message: "[2.2.0.43] Failed to configure bitlocker as expected. Exception: Encrypt failed with 2147942487, InnerException: , stack trace: at Microsoft.Cis.Security.BitLocker.BitlockerIaasVMExtension.BitlockerWmi.Win32EncryptableVolumeWrap.Encrypt() in C:__w\1\s\src\BitLocker\BitlockerIaasVMExtension\BitlockerWMI\Win32EncryptableVolumeWrap.cs:line 423
at Microsoft.Cis.Security.BitLocker.BitlockerIaasVMExtension.BitlockerOperations.StartEncryptionOnVolume(EncryptableVolume vol) in C:__w\1\s\src\BitLocker\BitlockerIaasVMExtension\BitlockerOperations.cs:line 1335
at Microsoft.Cis.Security.BitLocker.BitlockerIaasVMExtension.BitlockerExtension.EnableEncryption() in C:__w\1\s\src\BitLocker\BitlockerIaasVMExtension\BitlockerExtension.cs:line 1427
at Microsoft.Cis.Security.BitLocker.BitlockerIaasVMExtension.BitlockerExtension.HandleEncryptionOperations() in C:__w\1\s\src\BitLocker\BitlockerIaasVMExtension\BitlockerExtension.cs:line 1701
at Microsoft.Cis.Security.BitLocker.BitlockerIaasVMExtension.BitlockerExtension.OnEnable() in C:__w\1\s\src\BitLocker\BitlockerIaasVMExtension\BitlockerExtension.cs:line 1797"

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. JamesTran-MSFT 36,631 Reputation points Microsoft Employee
    2022-06-10T23:11:20.51+00:00

    @Ray Fu (Inspur Worldwide Services Ltd)
    Thank you for your post!

    From your error message - Exception: Encrypt failed with 2147942487, can you make sure that your VM meets the Group Policy requirements?

    Azure Disk Encryption will fail when a custom group policy setting for BitLocker is incompatible - for example, if the OS doesn't support the given encryption method (i.e. AES_128_WITH_DIFFUSER). If your VM didn't have the correct policy setting, you'll have to apply the new policy, and force the new policy to update (gpupdate.exe /force). Restarting your VM may also be required for the policy to take affect.

    For more info:
    Group Policy requirements
    BitLocker group policy settings

    If you have any other questions, please let me know.
    Thank you for your time and patience throughout this issue.

    1 person found this answer helpful.

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.