Skip to content

Commit

Permalink
set disk encryption set id to os disk of vm
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgadgi committed Mar 29, 2023
1 parent 34bcf34 commit 26e4890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 26e4890

Please sign in to comment.