You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generic module for creating a virtual machine (Windows or Linux) in Azure.
Using a unique count (machine_count) to prevent duplicates
Requirements
Name
Version
terraform
>= 0.15
azurerm
>= 2.70.0
random
>= 3.1.0
Providers
Name
Version
azurerm
>= 2.70.0
random
>= 3.1.0
Inputs
Name
Description
Type
Default
Required
accelerated_networking
Enable accelerated networking?
bool
false
no
admin_password
Default Password - Random if left blank
string
""
no
admin_username
Default Username - Random if left blank
string
""
no
custom_data
The Base64-Encoded Custom Data which should be used for this Virtual Machine
string
null
no
custom_image_id
Custom machine image ID
string
null
no
identity_ids
Specifies a list of user managed identity ids to be assigned to the VM
list(string)
[]
no
identity_type
The Managed Service Identity Type of this Virtual Machine. Possible values are SystemAssigned (where Azure will generate a Managed Identity for you), UserAssigned (where you can specify the Managed Identities ID).
string
"SystemAssigned"
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