Created
October 26, 2018 13:30
-
-
Save straubt1/54b22faf852d049351276564ac2bbe78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_virtual_machine" "main" { | |
name = "myvm0" | |
...Some fields omitted... | |
dynamic "storage_data_disk" { | |
for_each = var.data_disks | |
content { | |
name = "datadisk${storage_data_disk.value.lun}" | |
lun = storage_data_disk.value.lun | |
disk_size_gb = storage_data_disk.value.size | |
create_option = "Empty" | |
managed_disk_type = "Standard_LRS" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment