I tried encrypting the os disk of my windows 2012 r2 vm but gives below error:
Set-AzVMDiskEncryptionExtension : Long running operation failed with status 'Failed'. Additional Info:'VM has reported a failure
when processing extension 'AzureDiskEncryption'. Error message: "[2.2.0.39] Failed to configure bitlocker as expected. Exception:
Item has already been added. Key in dictionary: '\\?\Volume{ed39b51f-cbc1-48b0-8633-9c6e59fe633c}\' Key being added:
'\\?\Volume{ed39b51f-cbc1-48b0-8633-9c6e59fe633c}\', InnerException: , stack trace: at System.Collections.Hashtable.Insert(Object
key, Object nvalue, Boolean add)
at Microsoft.Cis.Security.BitLocker.BitlockerIaasVMExtension.BitlockerOperations.GetMountPointsTable() in
X:\bt\1205850\repo\src\BitLocker\BitlockerIaasVMExtension\BitlockerOperations.cs:line 416
at Microsoft.Cis.Security.BitLocker.BitlockerIaasVMExtension.BitlockerOperations.InitializeMachineVolumes() in
X:\bt\1205850\repo\src\BitLocker\BitlockerIaasVMExtension\BitlockerOperations.cs:line 708
at Microsoft.Cis.Security.BitLocker.BitlockerIaasVMExtension.BitlockerExtension.HandleEncryptionOperations() in
X:\bt\1205850\repo\src\BitLocker\BitlockerIaasVMExtension\BitlockerExtension.cs:line 1693
at Microsoft.Cis.Security.BitLocker.BitlockerIaasVMExtension.BitlockerExtension.OnEnable() in
X:\bt\1205850\repo\src\BitLocker\BitlockerIaasVMExtension\BitlockerExtension.cs:line 1797"
More information on troubleshooting is available at https://aka.ms/VMExtensionADEWindowsTroubleshoo
