azurerm_virtual_machine

Nivis Nix constructor for the azurerm_virtual_machine 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,
  location,
  network_interface_ids,
  resource_group_name,
  vm_size,
  availability_set_id ? null,
  delete_data_disks_on_termination ? null,
  delete_os_disk_on_termination ? null,
  id ? null,
  license_type ? null,
  cfg_name ? null,
  primary_network_interface_id ? null,
  proximity_placement_group_id ? null,
  tags ? null,
  zones ? null,
  additional_capabilities ? null,
  boot_diagnostics ? null,
  identity ? null,
  os_profile ? null,
  os_profile_linux_config ? null,
  os_profile_secrets ? null,
  os_profile_windows_config ? null,
  plan ? null,
  storage_data_disk ? null,
  storage_image_reference ? null,
  storage_os_disk ? null,
  timeouts ? null,
  overrides ? {}
}
Required arguments
  • location
  • network_interface_ids
  • resource_group_name
  • vm_size
Optional arguments
  • availability_set_id (defaults to null)
  • delete_data_disks_on_termination (defaults to null)
  • delete_os_disk_on_termination (defaults to null)
  • id (defaults to null)
  • license_type (defaults to null)
  • cfg_name (defaults to null)
  • primary_network_interface_id (defaults to null)
  • proximity_placement_group_id (defaults to null)
  • tags (defaults to null)
  • zones (defaults to null)
  • additional_capabilities (defaults to null)
  • boot_diagnostics (defaults to null)
  • identity (defaults to null)
  • os_profile (defaults to null)
  • os_profile_linux_config (defaults to null)
  • os_profile_secrets (defaults to null)
  • os_profile_windows_config (defaults to null)
  • plan (defaults to null)
  • storage_data_disk (defaults to null)
  • storage_image_reference (defaults to null)
  • storage_os_disk (defaults to null)
  • timeouts (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • (none)
Example
azurerm_virtual_machine {
  name = "virtual_machine";
  location = …;  # required
  network_interface_ids = …;  # required
  resource_group_name = …;  # required
  vm_size = …;  # required
}

The reference for every provider is generated from the provider's own schema, not copied from its documentation.