From 26e4890e47d60cd6ba49e62cc6398228a357d4ce Mon Sep 17 00:00:00 2001 From: anmolhuro Date: Wed, 29 Mar 2023 20:27:32 +0530 Subject: [PATCH] set disk encryption set id to os disk of vm --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index b13acd3..f4537dd 100644 --- a/main.tf +++ b/main.tf @@ -184,7 +184,7 @@ resource "azurerm_linux_virtual_machine" "default" { name = format("%s-storage-os-disk", module.labels.id) storage_account_type = var.os_disk_storage_account_type caching = var.caching - disk_encryption_set_id = var.enable_disk_encryption_set ? var.disk_encryption_set_id : null + disk_encryption_set_id = var.enable_disk_encryption_set ? azurerm_disk_encryption_set.example[0].id : null disk_size_gb = var.disk_size_gb write_accelerator_enabled = var.write_accelerator_enabled