avm-res-compute-virtualmachine
Azure/avm-res-compute-virtualmachine/azurerm
Terraform Azure Verified Resource Module for Virtual Machine
terraform-azurerm-avm-res-compute-virtualmachine NOTE: This module follows the semantic versioning and versions prior to 1.0.0 should be considered pre-release versions. This v0.19.0 version contains a number of breaking changes and is intended to be the final signficant release prior to the v1.0.0 release. Please review the release notes prior to updating previous deployments to use this version. This is the virtual machine resource module for the Azure Verified Modules library. This module deploys a Windows and/or Linux virtual machine along with common associated resources. It leverages the AzureRM provider and sets a number of initial defaults to minimize the overall inputs for simple configurations. Requirements The following requirements are needed by this module: - terraform (>= 1.1
| Name | Type | Description | Default |
|---|---|---|---|
| resource_group_name | string | The resource group name of the resource group where the vm resources will be dep | required |
| location | string | The Azure region where this and supporting resources should be deployed. | required |
| network_interfaces | map(object({ name = string | A map of objects representing each network virtual machine network interface - | required |
| availability_set_resource_id | string | (Optional) Specifies the Azure Resource ID of the Availability Set in which the | null |
| boot_diagnostics | bool | (Optional) Enable or Disable boot diagnostics. | false |
| dedicated_host_group_resource_id | string | (Optional) The Azure Resource ID of the dedicated host group where this virtual | null |
| patch_mode | string | (Optional) Specifies the mode of in-guest patching to this Linux Virtual Machine | null |
| plan | object({ name = strin | An object variable that defines the Marketplace image this virtual machine shoul | null |
| data_disk_managed_disks | map(object({ caching | This variable is a map of objects used to define one or more data disks for crea | {} |
| dedicated_host_resource_id | string | (Optional) The Azure Resource ID of the dedicated host where this virtual machin | null |
| platform_fault_domain | number | (Optional) Specifies the Platform Fault Domain in which this Virtual Machine sho | null |
| tags | map(string) | Map of tags to be assigned to this resource | null |
| custom_data | string | (Optional) The Base64 encoded Custom Data for building this virtual machine. Cha | null |
| os_type | string | The base OS type of the vm to be built. Valid answers are Windows or Linux | "Windows" |
| role_assignments_system_managed_identity | map(object({ role_definiti | A map of role definitions and scopes to be assigned as part of this resources im | {} |
| admin_password | string | DEPRECATED: This input has been moved to `account_credentials.admin_credentials | null |
| disable_password_authentication | bool | DEPRECATED: This input has been moved to `account_credentials.password_authenti | true |
| boot_diagnostics_storage_account_uri | string | (Optional) The Primary/Secondary Endpoint for the Azure Storage Account which sh | null |
| computer_name | string | (Optional) Specifies the Hostname which should be used for this Virtual Machine. | null |
| enable_automatic_updates | bool | (Optional) Specifies if Automatic Updates are Enabled for the Windows Virtual Ma | true |
| eviction_policy | string | (Optional) Specifies what should happen when the Virtual Machine is evicted for | null |
| sku_size | string | The sku value to use for this virtual machine | "Standard_D2ds_v5" |
| enable_telemetry | bool | This variable controls whether or not telemetry is enabled for the module. For m | true |
| … and 10 more inputs | |||
network_interfaces — The full ARM object map associated with the deployed network interface(s). Exporting this in the evesystem_assigned_mi_principal_id — The principal id of the system managed identity assigned to the virtual machinevirtual_machine — The full object for the deployed virtual machine. This is marked sensitive as it contains specific admin_password — Returns the admin password if installation is configured to use the password. Otherwise returns nuladmin_ssh_keys — Returns a list containing all of the provided or generated public ssh keys. This is a single key if admin_username — The admin username used when creating this virtual machine.data_disks — The full ARM object map associated with any deployed data disk(s). Exporting this in the event that public_ips — The full ARM object map associated with any deployed public ip(s). Exporting this in the event that resource — The full object for the deployed virtual machine. This is marked sensitive as it contains specific resource_id — The Azure resource id for the deployed virtual machinevirtual_machine_azurerm — The default attributes exported by the azurerm provider. These are defined as a map containing admin_generated_ssh_private_key — Returns the private key for the generated ssh key. This is only available if the generation option iname — The name used for the virtual machines name.