Attach A Managed Disk and A Virtual Machine on Azure using a dedicated Terraform module.
- A Virtual Machine (ID)
- A Managed Disk (ID)
Name | Version |
---|---|
azurerm | n/a |
No modules.
Name | Type |
---|---|
azurerm_virtual_machine_data_disk_attachment.az_vm_disk_attachment | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
caching | Specifies the caching requirements for this Data Disk. Possible values include None, ReadOnly and ReadWrite. | string |
"ReadWrite" |
no |
create_option | The Create Option of the Data Disk, such as Empty or Attach. Defaults to Attach. | string |
null |
no |
lun | The Logical Unit Number of the Data Disk, which needs to be unique within the Virtual Machine. | string |
null |
no |
managed_disk_id | The ID of an existing Managed Disk which should be attached. | string |
null |
no |
virtual_machine_id | The ID of the Virtual Machine to which the Data Disk should be attached. | string |
null |
no |
write_accelerator_enabled | Specifies if Write Accelerator is enabled on the disk. This can only be enabled on Premium_LRS managed disks with no caching and M-Series VMs. Defaults to false. | bool |
false |
no |
No outputs.