WVD disk encryption

Copper Contributor

Set-AzVMDiskEncryptionExtension : Long running operation failed with status 'Failed'. Additional Info:'VM has reported a failure when processing extension 'AzureDiskEncryption'. Error

message: "Failed to configure bitlocker as expected. Exception: Encrypt failed with 2147942487, InnerException: , stack trace:    at

Microsoft.Cis.Security.BitLocker.BitlockerIaasVMExtension.BitlockerWmi.Win32EncryptableVolumeWrap.Encrypt() in

X:\bt\1084354\repo\src\BitLocker\BitlockerIaasVMExtension\BitlockerWMI\Win32EncryptableVolumeWrap.cs:line 423

   at Microsoft.Cis.Security.BitLocker.BitlockerIaasVMExtension.BitlockerOperations.StartEncryptionOnVolume(EncryptableVolume vol) in

X:\bt\1084354\repo\src\BitLocker\BitlockerIaasVMExtension\BitlockerOperations.cs:line 893

   at Microsoft.Cis.Security.BitLocker.BitlockerIaasVMExtension.BitlockerExtension.EnableEncryption() in X:\bt\1084354\repo\src\BitLocker\BitlockerIaasVMExtension\BitlockerExtension.cs:line

1460

   at Microsoft.Cis.Security.BitLocker.BitlockerIaasVMExtension.BitlockerExtension.HandleEncryptionOperations() in

X:\bt\1084354\repo\src\BitLocker\BitlockerIaasVMExtension\BitlockerExtension.cs:line 1695

   at Microsoft.Cis.Security.BitLocker.BitlockerIaasVMExtension.BitlockerExtension.OnEnable() in X:\bt\1084354\repo\src\BitLocker\BitlockerIaasVMExtension\BitlockerExtension.cs:line 1785"

More information on troubleshooting is available at https://aka.ms/vmextensionwindowstroubleshoot '

ErrorCode: VMExtensionProvisioningError

ErrorMessage: VM has reported a failure when processing extension 'AzureDiskEncryption'. Error message: "Failed to configure bitlocker as expected. Exception: Encrypt failed with

2147942487, InnerException: , stack trace:    at Microsoft.Cis.Security.BitLocker.BitlockerIaasVMExtension.BitlockerWmi.Win32EncryptableVolumeWrap.Encrypt() in

X:\bt\1084354\repo\src\BitLocker\BitlockerIaasVMExtension\BitlockerWMI\Win32EncryptableVolumeWrap.cs:line 423

   at Microsoft.Cis.Security.BitLocker.BitlockerIaasVMExtension.BitlockerOperations.StartEncryptionOnVolume(EncryptableVolume vol) in

X:\bt\1084354\repo\src\BitLocker\BitlockerIaasVMExtension\BitlockerOperations.cs:line 893

   at Microsoft.Cis.Security.BitLocker.BitlockerIaasVMExtension.BitlockerExtension.EnableEncryption() in X:\bt\1084354\repo\src\BitLocker\BitlockerIaasVMExtension\BitlockerExtension.cs:line

1460

   at Microsoft.Cis.Security.BitLocker.BitlockerIaasVMExtension.BitlockerExtension.HandleEncryptionOperations() in

X:\bt\1084354\repo\src\BitLocker\BitlockerIaasVMExtension\BitlockerExtension.cs:line 1695

   at Microsoft.Cis.Security.BitLocker.BitlockerIaasVMExtension.BitlockerExtension.OnEnable() in X:\bt\1084354\repo\src\BitLocker\BitlockerIaasVMExtension\BitlockerExtension.cs:line 1785"

More information on troubleshooting is available at https://aka.ms/vmextensionwindowstroubleshoot

ErrorTarget:

StartTime: 3/13/2020 11:58:01 AM

EndTime: 3/13/2020 11:58:01 AM

OperationID: e240c127-49e5-47c7-b0ce-c5b02736ce8f

Status: Failed

At line:11 char:1

+ Set-AzVMDiskEncryptionExtension -ResourceGroupName SNOW_POC -VMName W ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : CloseError: (:) [Set-AzVMDiskEncryptionExtension], ComputeCloudException

    + FullyQualifiedErrorId : Microsoft.Azure.Commands.Compute.Extension.AzureDiskEncryption.SetAzureDiskEncryptionExtensionCommand

2 Replies

@Alexander Larkin same problem here

@dikkekip20We found that the error does not show the correct information and the Disk Encryption does take place.