Hi,
I'm trying to encrypt Azure VMs' disks. It is working well for some but I'm getting an error on some VM's. The command I run is
Set-AzureRmVMDiskEncryptionExtension
And the error I get is:
Set-AzureRmVMDiskEncryptionExtension : User encryption settings in the VM model are not supported. Please upgrade
Azure Disk Encryption extension version and clear encryption settings in the VM model.
ErrorCode: NotSupported
ErrorMessage: User encryption settings in the VM model are not supported. Please upgrade <g class="gr_ gr_22 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins replaceWithoutSep" data-gr-id="22" id="22">Azure</g>
Disk Encryption
extension version and clear encryption settings in the VM model.
StatusCode: 409
ReasonPhrase: Conflict
OperationID : e4777a0f-e25b-4d8a-8f11-acf188c0ff63
At line:3 char:1
+ Set-AzureRmVMDiskEncryptionExtension -ResourceGroupName $rgName `
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Set-AzureRmVMDiskEncryptionExtension], ComputeCloudException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Compute.Extension.AzureDiskEncryption.SetAzureDiskEncryptionExt
ensionCommand
In one environment, I removed those VM's and recreated them so I didn't get an error after that but it sounds not a good practice since all VM's are the same. Now it happened again in other environment and I would like to understand why this happens
for some VMs and it works for others.