Azure / Azure/azure-quickstart-templates

VM has reported a failure when processing extension 'AzureDiskEncryptionForLinux'. Error message: \"Enable failed.\"."

Open
#2,808 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
Bicep
Stars
14.9k
Forks
16.2k
Avg merge
6d 21h
Merged PRs (30d)
6

Description

[101-vm-full-disk-encrypted-rhel](https://github.com/Azure/azure-quickstart-templates/tree/master/101-vm-full-disk-encrypted-rhel)

### Issue Details
I am trying to install the AzureDiskEncryptionForLinux extension on my vm. I have tried on both Ubuntu 16.04 and CentOs 7.2, both of which the docs say are compatible for encryption. While I am able to run all the steps successfully leading up to encryption, the encrypted step consistently fails with
```json

"status": "Failed",
"error": {
"code": "ResourceDeploymentFailure",
"message": "The resource operation completed with terminal provisioning state 'Failed'.",
"details": [
{
"code": "VMExtensionProvisioningError",
"message": "VM has reported a failure when processing extension 'AzureDiskEncryptionForLinux'. Error message: \"Enable failed.\"."
}
]
}
}
```
A few things of note:
1. I am using the Standard_DS2 vm size
2. I am using a key
3. I am testing on a Free trial subscription.

Can someone help/point me in the right direction? Even getting a more sensible error would help immensely.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked 101-vm-full-disk-encrypted-rhel template and its AzureDiskEncryptionForLinux deployment step. Reproduce the failure on the stated Ubuntu 16.04 or CentOS 7.2 setup, then determine whether the template or the reported error needs correction; the issue is complete only when the cause and an actionable repository change are established.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, linux
Domain
cloud, security
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.