azurerm_virtual_machine_data_disk_attachment

Nivis 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
  • caching
  • lun
  • managed_disk_id
  • virtual_machine_id
Optional arguments
  • create_option (defaults to null)
  • id (defaults to null)
  • write_accelerator_enabled (defaults to null)
  • timeouts (defaults to null)
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.