compute

Azure/compute/azurerm

Terraform Module HCL AZURERM

Terraform Azure RM Compute Module

Install
module "compute" {
source = "Azure/compute/azurerm"
version = "5.3.1"
}
⭐ Source on GitHub 📦 Registry page
README

[DEPRECATED] terraform-azurerm-compute > NOTE: This terraform-azurerm-compute module is now deprecated. The module will no longer receive updates or support. Users are encouraged to transition to the avm-res-compute-virtualmachine module for future deployments. Notice on new alternative virtual machine module This module was designed and implemented for AzureRM Provider v2.x, It's impossible to refactor this module from azurerm_virtual_machine to the modern version azurerm_linux_virtual_machine and azurerm_windows_virtual_machine. For those who're maintaining infrastructure on brownfield, you're welcome to continue using this module; for those who're about to provision new infrastructure on greenfield, you're welcome to try our new alternative: terraform-azurerm-virtual-machine. Notice on

Inputs (50)
NameTypeDescriptionDefault
vnet_subnet_idstringThe subnet id of the virtual network where the virtual machines will reside. required
resource_group_namestringThe name of the resource group in which the resources will be created. required
availability_set_enabledbool(Optional) Enable or Disable availability set. Default is `true` (enabled).true
boot_diagnosticsbool(Optional) Enable or Disable boot diagnostics.false
managed_data_disk_encryption_set_idstring(Optional) The disk encryption set ID for the managed data disk attached using tnull
remote_portstringRemote tcp port to be used for access to the vms created via the nsg applied to ""
tracing_tags_enabledboolWhether enable tracing tags that generated by BridgeCrew Yor.false
boot_diagnostics_sa_typestring(Optional) Storage account type for boot diagnostics."Standard_LRS"
nb_data_disknumber(Optional) Number of the data disks attached to each virtual machine.0
nb_instancesnumberSpecify the number of vm instances.1
vm_os_skustringThe sku of the image that you want to deploy. This is ignored when vm_os_id or v""
name_template_network_security_groupstringThe name template for the network security group. The following replacements are"${vm_hostname}-nsg"
data_sa_typestringData Disk Storage Account type."Standard_LRS"
is_marketplace_imageboolBoolean flag to notify when the image comes from the marketplace.false
nb_public_ipnumberNumber of public IPs to assign corresponding to one IP per vm. Set to 0 to not a1
nested_data_disksbool(Optional) When `true`, use nested data disks directly attached to the VM. Whentrue
vm_os_simplestringSpecify UbuntuServer, WindowsServer, RHEL, openSUSE-Leap, CentOS, Debian, CoreOS""
admin_passwordstringThe admin password to be used on the VMSS that will be deployed. The password mu""
extra_ssh_keyslist(string)Same as ssh_key, but allows for setting multiple public keys. Set your first key[]
delete_os_disk_on_terminationboolDelete OS disk when machine is terminated.false
name_template_data_diskstringThe name template for the data disks. The following replacements are automatical"${vm_hostname}-datadisk-${host_number}-
admin_usernamestringThe admin username of the VM that will be deployed."azureuser"
… and 10 more inputs
Outputs (12)
availability_set_id — Id of the availability set where the vms are provisioned. If `var.zones` is set, this output will re
network_security_group_id — id of the security group provisioned
vm_zones — map with key `Virtual Machine Id`, value `list of the Availability Zone` which the Virtual Machine s
public_ip_address — The actual ip address allocated for the resource.
public_ip_dns_name — fqdn to connect to the first vm provisioned.
public_ip_id — id of the public ip address provisoned.
vm_identity — map with key `Virtual Machine Id`, value `list of identity` created for the Virtual Machine.
vm_ids — Virtual machine ids created.
network_interface_ids — ids of the vm nics provisoned.
network_interface_private_ip — private ip addresses of the vm nics
network_security_group_name — name of the security group provisioned, empty if no security group was created.
vm_names — Virtual machine names created.
Resources (12)
azurerm_availability_setazurerm_managed_diskazurerm_network_interfaceazurerm_network_interface_security_group_associationazurerm_network_security_groupazurerm_network_security_ruleazurerm_public_ipazurerm_storage_accountazurerm_virtual_machineazurerm_virtual_machine_data_disk_attachmentazurerm_virtual_machine_extensionrandom_id
Details
FrameworkTerraform Module
LanguageHCL
Version5.3.1
Cloud AZURERM
★ Stars182
Forks302
Total downloads306.3k
Inputs50
Outputs12
Resources12
Examples2
LicenseMIT
NamespaceAzure
Updated