azurerm_virtual_machine_data_disk_attachmentNivis Nix constructor for the azurerm_virtual_machine_data_disk_attachment resource (provider azurerm). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.
Constructor
{
name,
caching,
lun,
managed_disk_id,
virtual_machine_id,
create_option ? null,
id ? null,
write_accelerator_enabled ? null,
timeouts ? null,
overrides ? {}
}Required arguments
cachinglunmanaged_disk_idvirtual_machine_id
Optional arguments
create_option(defaults tonull)id(defaults tonull)write_accelerator_enabled(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
(none)
Example
azurerm_virtual_machine_data_disk_attachment {
name = "virtual_machine_data_disk_attachment";
caching = …; # required
lun = …; # required
managed_disk_id = …; # required
virtual_machine_id = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.