Apparently, this doc states several steps to proceed with a pre-encryption of disks for both linux and windows but in the end i cannot manage to enable the encryption.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@marioanton Thanks for the feedback. We are investigating this and will provide an update shortly.
@marioanton I have assigned this to the author to validate the steps and provide an update acccordingly.
@marioanton I am looking into this for you. I will let you know what I find.
Hey @marioanton. I spoke to one of the developers about your issue. Below is the response:
"I think the key to understanding is that the customer managed secret is stored in KeyVault, but it is the platform that will be retrieving that secret and attaching it to the VM as the BEK volume. If the platform cannot do this operation, then the key will not be provided to the VM at time of boot. To make that work there are two main things that need to be accomplished. First, the URL that points to that secret needs to be associated with the VM model. This is why the $secretUrl part of the documentation is so important to get right.
Second, to ensure that when platform starts the VM it will be able to retrieve the key, the permissions on the KeyVault need to have been enabled for disk encryption, so the platform will have permission to retrieve that key and attach it to the VM. The $secretUrl value is described in the code section of the following part of the documentation after the secret has been uploaded to key vault:
https://docs.microsoft.com/en-us/azure/security/azure-security-disk-encryption-appendix#bkmk_UploadSecret "
Hopefully this helps you out.
Ok, thanks. Looks like the confusion has been sorted out. Still wondering whether is possible to get a pre-encrypted img somehow to do this work, that would make much EASIER the deployment of the vm.
@marioanton glad you got it sorted! Thanks for taking the time to provide feedback on Azure Disk Encryption. This is an interesting feature idea, and I want to make sure it gets directly into the hands of the engineering team. Fortunately, we've got dedicated channels for that very purpose. :) See the Product feedback page. I think it’s important that you submit it directly, because that allows you to receive notifications and more closely monitor the progress. I'm closing this issue as there's nothing actionable for the Azure Security docs team at this time.
@marioanton We will now close this issue. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.