module "linux_virtual_machine" {
source = "sironite/linux_virtual_machine/azurerm"
version = "x.x.x"
vm_name = "myvm"
computer_name = "myvm"
resource_group_name = "myrg"
location = "westeurope"
size = "Standard_F2"
admin_ssh_key_username = "myuser"
network_interface_ids = [module.network_interface.network_interface_id]
availability_set_id = module.availability_set.availability_set_id
tags = {
environment = "dev"
}
}
Name | Version |
---|---|
azurerm | >=2.0.0 |
tls | n/a |
No modules.
Name | Type |
---|---|
azurerm_linux_virtual_machine.this | resource |
azurerm_ssh_public_key.this | resource |
tls_private_key.this | resource |
Name | Description | Type | Required |
---|---|---|---|
admin_ssh_key_username | The username of the administrator used for the Virtual Machine. Changing this forces a new resource to be created. | string |
yes |
computer_name | The computer name of the virtual machine. Changing this forces a new resource to be created. | string |
yes |
location | The Azure location where the virtual machine should exist. Changing this forces a new resource to be created. | string |
yes |
public_key_name | The name of the public key used to authenticate with the virtual machine. Changing this forces a new resource to be created. | string |
yes |
resource_group_name | The name of the resource group in which to create the virtual machine. Changing this forces a new resource to be created. | string |
yes |
size | The SKU which should be used for this Virtual Machine, such as Standard_F2. Changing this forces a new resource to be created. | string |
yes |
vm_name | The name of the virtual machine. Changing this forces a new resource to be created. | string |
yes |
availability_set_id | The ID of the availability set to place the virtual machine in. Changing this forces a new resource to be created. | string |
no |
identity_type | The type of identity used for the virtual machine. Possible values are SystemAssigned and UserAssigned. Changing this forces a new resource to be created. | string |
no |
network_interface_ids | A list of Network Interface ID's which should be applied to the Virtual Machine. Changing this forces a new resource to be created. | list(string) |
no |
os_disk_caching | The caching option which should be used for the OS Disk. Changing this forces a new resource to be created. | string |
no |
os_disk_disk_encryption_set_id | The ID of the Disk Encryption Set which should be used to encrypt this Managed Disk. Changing this forces a new resource to be created. | string |
no |
os_disk_disk_size_gb | The size of the OS Disk in GB. Changing this forces a new resource to be created. | number |
no |
os_disk_name | The name of the OS Disk. Changing this forces a new resource to be created. | string |
no |
os_disk_storage_account_type | The type of storage account which should back this Managed Disk. Changing this forces a new resource to be created. | string |
no |
os_disk_write_accelerator_enabled | Should the OS Disk be created as a UltraSSD_LRS Managed Disk? Defaults to false. Changing this forces a new resource to be created. | bool |
no |
provision_vm_agent | Should the Virtual Machine Agent be provisioned on the Virtual Machine? Defaults to true. Changing this forces a new resource to be created. | bool |
no |
proximity_placement_group_id | The ID of a proximity placement group to place the virtual machine in. Changing this forces a new resource to be created. | string |
no |
source_image_reference_offer | The offer of the image used to create the virtual machine. Changing this forces a new resource to be created. | string |
no |
source_image_reference_publisher | The publisher of the image used to create the virtual machine. Changing this forces a new resource to be created. | string |
no |
source_image_reference_sku | The SKU of the image used to create the virtual machine. Changing this forces a new resource to be created. | string |
no |
source_image_reference_version | The version of the image used to create the virtual machine. Changing this forces a new resource to be created. | string |
no |
tags | A mapping of tags to assign to the resource. Changing this forces a new resource to be created. | map(string) |
no |
Name | Description |
---|---|
vm_id | The ID of the virtual machine. |
vm_name | The name of the virtual machine. |
vm_ssh_private_key | The private key of the virtual machine. |
vm_ssh_public_key | The public key of the virtual machine. |