Generic module for creating a virtual machine (Windows or Linux) in Azure.
Using a unique count (machine_count) to prevent duplicates
Name | Version |
---|---|
terraform | >= 0.13.5 |
azurerm | >= 2.48.0 |
random | >= 3.1.0 |
Name | Version |
---|---|
azurerm | >= 2.48.0 |
random | >= 3.1.0 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
admin_password | Default Password - Random if left blank | string |
"" |
no |
admin_username | Default Username - Random if left blank | string |
"" |
no |
custom_image_id | Custom machine image ID | string |
null |
no |
kernel_type | Virtual machine kernel - windows or linux | string |
"linux" |
no |
linux_machine_name | Linux Virtual Machine Name - If left blank generated from metadata module | string |
"" |
no |
location | Azure region | string |
n/a | yes |
machine_count | Unique Identifier/Count - Random if left at 0 | number |
0 |
no |
names | names to be applied to resources | map(string) |
n/a | yes |
operating_system_disk_cache | Type of caching to use on the OS disk - Options: None, ReadOnly or ReadWrite | string |
"ReadWrite" |
no |
operating_system_disk_type | Type of storage account to use with the OS disk - Options: Standard_LRS, StandardSSD_LRS or Premium_LRS | string |
"StandardSSD_LRS" |
no |
operating_system_disk_write_accelerator | Should Write Accelerator be Enabled for this OS Disk? | bool |
false |
no |
public_ip_enabled | Create and attach a public interface? | bool |
false |
no |
public_ip_sku | SKU to be used with this public IP - Basic or Standard | string |
"Standard" |
no |
resource_group_name | Resource group name | string |
n/a | yes |
source_image_offer | Operating System Name | string |
null |
no |
source_image_publisher | Operating System Publisher | string |
null |
no |
source_image_sku | Operating System SKU | string |
null |
no |
source_image_version | Operating System Version | string |
"latest" |
no |
subnet_id | Virtual network subnet ID | string |
n/a | yes |
tags | tags to be applied to resources | map(string) |
n/a | yes |
virtual_machine_size | Instance size to be provisioned | string |
n/a | yes |
windows_machine_name | Windows Virtual Machine Name - Max 15 characters. If left blank randomly assigned | string |
"" |
no |
Name | Description |
---|---|
admin_password | n/a |
admin_username | Credentials |
virtual_machine_id | Virtal Machine Details |
virtual_machine_name | n/a |
virtual_machine_private_ip | n/a |