avm-res-compute-virtualmachine

Azure/avm-res-compute-virtualmachine/azurerm

Terraform Module HCL AZURERM ✓ Verified

Terraform Azure Verified Resource Module for Virtual Machine

Install
module "avm-res-compute-virtualmachine" {
source = "Azure/avm-res-compute-virtualmachine/azurerm"
version = "0.20.0"
}
plain text: /constructs/tfmod-azure-avm-res-compute-virtualmachine-azurerm/install.txt
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (50)
NameTypeDescriptionDefault
resource_group_namestringThe resource group name of the resource group where the vm resources will be dep required
locationstringThe Azure region where this and supporting resources should be deployed. required
network_interfacesmap(object({ name = stringA map of objects representing each network virtual machine network interface - required
availability_set_resource_idstring(Optional) Specifies the Azure Resource ID of the Availability Set in which the null
boot_diagnosticsbool(Optional) Enable or Disable boot diagnostics.false
dedicated_host_group_resource_idstring(Optional) The Azure Resource ID of the dedicated host group where this virtual null
patch_modestring(Optional) Specifies the mode of in-guest patching to this Linux Virtual Machinenull
planobject({ name = strinAn object variable that defines the Marketplace image this virtual machine shoulnull
data_disk_managed_disksmap(object({ caching This variable is a map of objects used to define one or more data disks for crea{}
dedicated_host_resource_idstring(Optional) The Azure Resource ID of the dedicated host where this virtual machinnull
platform_fault_domainnumber(Optional) Specifies the Platform Fault Domain in which this Virtual Machine shonull
tagsmap(string)Map of tags to be assigned to this resourcenull
custom_datastring(Optional) The Base64 encoded Custom Data for building this virtual machine. Chanull
os_typestringThe base OS type of the vm to be built. Valid answers are Windows or Linux"Windows"
role_assignments_system_managed_identitymap(object({ role_definitiA map of role definitions and scopes to be assigned as part of this resources im{}
admin_passwordstringDEPRECATED: This input has been moved to `account_credentials.admin_credentialsnull
disable_password_authenticationboolDEPRECATED: This input has been moved to `account_credentials.password_authentitrue
boot_diagnostics_storage_account_uristring(Optional) The Primary/Secondary Endpoint for the Azure Storage Account which shnull
computer_namestring(Optional) Specifies the Hostname which should be used for this Virtual Machine.null
enable_automatic_updatesbool(Optional) Specifies if Automatic Updates are Enabled for the Windows Virtual Matrue
eviction_policystring(Optional) Specifies what should happen when the Virtual Machine is evicted for null
sku_sizestringThe sku value to use for this virtual machine"Standard_D2ds_v5"
enable_telemetryboolThis variable controls whether or not telemetry is enabled for the module. For mtrue
… and 10 more inputs
Outputs (13)
network_interfaces — The full ARM object map associated with the deployed network interface(s). Exporting this in the eve
system_assigned_mi_principal_id — The principal id of the system managed identity assigned to the virtual machine
virtual_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 nul
admin_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 machine
virtual_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 i
name — The name used for the virtual machines name.
Resources (21)
azapi_resourceazurerm_dev_test_global_vm_shutdown_scheduleazurerm_key_vault_secretazurerm_linux_virtual_machineazurerm_managed_diskazurerm_management_lockazurerm_monitor_diagnostic_settingazurerm_network_interfaceazurerm_network_interface_application_gateway_backend_address_pool_associationazurerm_network_interface_application_security_group_associationazurerm_network_interface_backend_address_pool_associationazurerm_network_interface_nat_rule_associationazurerm_network_interface_security_group_associationazurerm_public_ipazurerm_role_assignmentazurerm_virtual_machine_data_disk_attachmentazurerm_windows_virtual_machinemodtm_telemetryrandom_passwordrandom_uuidtls_private_key
Details
FrameworkTerraform Module
LanguageHCL
Version0.20.0
Cloud AZURERM
★ Stars39
Forks43
Total downloads909.7k
Inputs50
Outputs13
Resources21
Examples16
Submodules2
LicenseMIT
NamespaceAzure
Updated