从共享库映像加密托管磁盘 - Terraform [英] Encrypt Managed Disk from Shared Gallery Image - Terraform
问题描述
您好
在Terraform ...
In Terraform...
我可以从共享图库图片创建一个虚拟机,但我想加密操作系统 磁盘也是。
I can create a VM from a shared gallery image but I'd like to encrypt the OS disk too.
我可以创建一个托管磁盘作为单独的资源并对其进行加密,然后将其附加到VM。
I can create a managed disk as a separate resource and encrypt that, then attach it to the VM.
但是,我找不到将共享库映像用于托管磁盘资源的方法。
However, I can't find a way to use a shared gallery image with a managed disk resource.
是否可以将共享库映像与托管磁盘一起使用并将该操作系统磁盘加密?
Is there a way to use a shared gallery image with a managed disk and have that OS disk encrypted?
推荐答案
您可以使用Azure磁盘加密来对从支持的Azure Gallery映像创建的新IaaS VM启用加密。
Azure磁盘加密仅限特定的基于Azure Gallery的Linux服务器发行版和版本支持。有关当前支持的版本列表,请参阅
Azure磁盘加密常见问题 。
Reference: https://docs.microsoft.com/en-us/azure/security/azure-security-disk-encryption-overview#encryption-scenarios
请检查您的共享图库图片是否受支持。
Please check if your shared gallery image is supported.
这篇关于从共享库映像加密托管磁盘 - Terraform的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!