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.
Hello Omkar Urankar,
Thank you for posting your query here!
The error you're encountering with Azure Disk Encryption seems to be related to the VM extension provisioning. This issue might be due to several factors, such as Key Vault access policies not being set correctly, custom group policy settings for BitLocker being incompatible, or issues with the VM's ability to establish outbound connections to Azure storage.
Here are some steps you can take to troubleshoot the issue:
· Please ensure that "Enable access to Azure Resource Manager for Template Deployment" is checked in your Key Vault access policies. https://stackoverflow.microsoft.com/questions/205616
· Confirm that the VM has a running VM agent and that it can establish outbound connections to Azure storage. If the VM agent or extensions are not reporting status, this could lead to provisioning errors. https://learn.microsoft.com/en-us/answers/questions/884131/encrypt-azure-disks-failed-with-error-code-2147942
· Also, confirm that the VM has a running VM agent and that it can establish outbound connections to Azure storage.
Additional points to check:
· Ensure that the disks attached to your VM are properly configured and meet the requirements for encryption. For example, if you're encrypting the OS disk, make sure it's a managed disk.
· Verify that the Azure Key Vault you specified for storing encryption keys has the necessary permissions for the VM to access it.
Do let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.