Skip to content

Garrukh/azure-vm-with-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

azure-vm-with-backup

Requirements

No requirements.

Providers

Name Version
azurerm n/a
random n/a

Modules

No modules.

Resources

Name Type
azurerm_key_vault_secret.admin_password resource
azurerm_linux_virtual_machine.vm resource
azurerm_network_interface.nic resource
azurerm_public_ip.public_ip resource
random_password.admin_password resource
azurerm_image.custom_image data source
azurerm_key_vault.keyvault data source

Inputs

Name Description Type Default Required
admin_password (Optional) The Password which should be used for the local-administrator on this Virtual Machine. Changing this forces a new resource to be created. string null no
admin_username (Required) The username of the local administrator used for the Virtual Machine. Changing this forces a new resource to be created. string n/a yes
allow_extension_operations (Optional) Should Extension Operations be allowed on this Virtual Machine? string null no
availability_set_id (Optional) Specifies the ID of the Availability Set in which the Virtual Machine should exist. Changing this forces a new resource to be created. string null no
computer_name (Optional) Specifies the Hostname which should be used for this Virtual Machine. If unspecified this defaults to the value for the name field. If the value of the name field is not a valid computer_name, then you must specify computer_name. Changing this forces a new resource to be created. string null no
create_public_ip Do you want to create a public ip for this VM? bool n/a yes
custom_data (Optional) The Base64-Encoded Custom Data which should be used for this Virtual Machine. Changing this forces a new resource to be created. string null no
dedicated_host_id (Optional) The ID of a Dedicated Host where this machine should be run on. string null no
disable_password_authentication (Optional) Should Password Authentication be disabled on this Virtual Machine? Defaults to true. Changing this forces a new resource to be created. bool true no
disk_encryption_set_id (Optional) The ID of the Disk Encryption Set which should be used to Encrypt this OS Disk. string null no
disk_size_gb (Optional) The Size of the Internal OS Disk in GB, if you wish to vary from the size used in the image this Virtual Machine is sourced from. number null no
dns_servers (Optional) A list of IP Addresses defining the DNS Servers which should be used for this Network Interface. list(string) null no
domain_name_label (Optional) Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system. string null no
enable_accelerated_networking (Optional) Should Accelerated Networking be enabled? Defaults to false. bool null no
enable_ip_forwarding (Optional) Should IP Forwarding be enabled? Defaults to false. bool null no
encryption_at_host_enabled (Optional) Should all of the disks (including the temp disk) attached to this Virtual Machine be encrypted by enabling Encryption at Host? bool null no
eviction_policy (Optional) Specifies what should happen when the Virtual Machine is evicted for price reasons when using a Spot instance. At this time the only supported value is Deallocate. Changing this forces a new resource to be created. string null no
extensions_time_budget (Optional) Specifies the duration allocated for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. Defaults to 90 minutes (PT1H30M). string null no
identity_ids (Optional) A list of User Managed Identity ID's which should be assigned to the Linux Virtual Machine. list(string) null no
identity_type (Required) The type of Managed Identity which should be assigned to the Linux Virtual Machine. Possible values are SystemAssigned, UserAssigned and SystemAssigned, UserAssigned. string null no
idle_timeout_in_minutes (Optional) Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. number null no
image_name The NAME of the image used for VM creation string null no
image_offer (Optional) Specifies the offer of the image used to create the virtual machines. string null no
image_publisher (Optional) Specifies the publisher of the image used to create the virtual machines. string null no
image_resource_group_name (Optional) The name of the REsource Group where the image is created string null no
image_sku (Optional) Specifies the SKU of the image used to create the virtual machines. string null no
image_version (Optional) Specifies the version of the image used to create the virtual machines. string null no
internal_dns_name_label (Optional) The (relative) DNS Name used for internal communications between Virtual Machines in the same Virtual Network. string null no
ip_configuration_name (Required) A name used for this IP Configuration. string null no
key_vault_id (Required) The ID of the Key Vault from which all Secrets should be sourced. string null no
keyvault_name Name of the keyvault in which the admin password will be stored string n/a yes
keyvault_rg_name Resource group name in which the keyvault for admin password is located string n/a yes
license_type (Optional) Specifies the BYOL Type for this Virtual Machine. Possible values are RHEL_BYOS and SLES_BYOS. string null no
location Azure Region in which to create resources string n/a yes
max_bid_price (Optional) The maximum price you're willing to pay for this Virtual Machine, in US Dollars; which must be greater than the current spot price. If this bid price falls below the current spot price the Virtual Machine will be evicted using the eviction_policy. Defaults to -1, which means that the Virtual Machine should not be evicted for price reasons. string null no
nic_name (Required) The name of the Network Interface. Changing this forces a new resource to be created. string "dev-nic" no
nic_tags Tags configuration map map(string) {} no
option (Required) Specifies the Ephemeral Disk Settings for the OS Disk. At this time the only possible value is Local. Changing this forces a new resource to be created. string null no
os_disk_caching (Required) The Type of Caching which should be used for the Internal OS Disk. Possible values are None, ReadOnly and ReadWrite. string null no
os_disk_name (Optional) The name which should be used for the Internal OS Disk. Changing this forces a new resource to be created. string null no
os_disk_storage_account_type (Required) The Type of Storage Account which should back this the Internal OS Disk. Possible values are Standard_LRS, StandardSSD_LRS and Premium_LRS. Changing this forces a new resource to be created. string n/a yes
plan_name (Required) Specifies the Name of the Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created. string null no
plan_product (Required) Specifies the Product of the Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created. string null no
plan_publisher (Required) Specifies the Publisher of the Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created. string null no
platform_fault_domain (Optional) Specifies the Platform Fault Domain in which this Linux Virtual Machine should be created. Defaults to -1, which means this will be automatically assigned to a fault domain that best maintains balance across the available fault domains. Changing this forces a new Linux Virtual Machine to be created. string null no
primary (Optional) Is this the Primary IP Configuration? Must be true for the first ip_configuration when multiple are specified. Defaults to false. bool null no
priority (Optional) Specifies the priority of this Virtual Machine. Possible values are Regular and Spot. Defaults to Regular. Changing this forces a new resource to be created. string null no
private_ip_address (Optional) The Static IP Address which should be used. string null no
private_ip_address_version (Optional) The IP Version to use. Possible values are IPv4 or IPv6. Defaults to IPv4. string null no
private_ip_allocation_method (Required) The allocation method used for the Private IP Address. Possible values are Dynamic and Static. string null no
provision_vm_agent (Optional) Should the Azure VM Agent be provisioned on this Virtual Machine? Defaults to true. Changing this forces a new resource to be created. bool null no
proximity_placement_group_id (Optional) The ID of the Proximity Placement Group which the Virtual Machine should be assigned to. string null no
public_ip_address_version (Optional) The IP Version to use, IPv6 or IPv4. string null no
public_ip_allocation_method (Required) Defines the allocation method for this IP address. Possible values are Static or Dynamic. string null no
public_ip_name Name of the Public IP resource string "public_ip" no
public_ip_prefix_id (Optional) If specified then public IP address allocated will be provided from the public IP prefix resource. string null no
public_ip_sku (Optional) The SKU of the Public IP. Accepted values are Basic and Standard. Defaults to Basic. string "Basic" no
public_ip_sku_tier (Optional) The SKU Tier that should be used for the Public IP. Possible values are Regional and Global. Defaults to Regional. string null no
public_ip_tags Tags configuration map map(string) {} no
public_ip_zones (Optional) The availability zone to allocate the Public IP in. Possible values are Zone-Redundant, 1, 2, 3, and No-Zone. Defaults to Zone-Redundant. list(string) null no
public_ssh_key (Required) The Public Key which should be used for authentication, which needs to be at least 2048-bit and in ssh-rsa format. Changing this forces a new resource to be created. string null no
resource_group_name Resource group name for resources created by this module string n/a yes
reverse_fqdn (Optional) A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN. string null no
secret_name Name of the secret in which the admin password will be stored string n/a yes
storage_account_uri (Optional) The Primary/Secondary Endpoint for the Azure Storage Account which should be used to store Boot Diagnostics, including Console Output and Screenshots from the Hypervisor. string null no
subnet_id (Required) The NAME of the Subnet where this public Network Interface should be located in. string n/a yes
tags Tags configuration map map(string) {} no
ultra_ssd_enabled (Optional) Should the capacity to enable Data Disks of the UltraSSD_LRS storage account type be supported on this Virtual Machine? Defaults to false. bool null no
url (Required) The Secret URL of a Key Vault Certificate. string null no
virtual_machine_scale_set_id (Optional) Specifies the Orchestrated Virtual Machine Scale Set that this Virtual Machine should be created within. Changing this forces a new resource to be created. string null no
vm_name (Required) The name of the Linux Virtual Machine. Changing this forces a new resource to be created. string n/a yes
vm_size (Required) The SKU which should be used for this Virtual Machine, such as Standard_F2. string null no
vm_tags Tags configuration map map(string) {} no
write_accelerator_enabled (Optional) Should Write Accelerator be Enabled for this OS Disk? Defaults to false. bool null no
zone (Optional) The Zone in which this Virtual Machine should be created. Changing this forces a new resource to be created. string null no

Outputs

Name Description
applied_dns_servers If the Virtual Machine using this Network Interface is part of an Availability Set, then this list will have the union of all DNS servers from all Network Interfaces that are part of the Availability Set.
fqdn Fully qualified domain name of the A DNS record associated with the public IP. domain_name_label must be specified to get the fqdn. This is the concatenation of the domain_name_label and the regionalized DNS zone
internal_domain_name_suffix Even if internal_dns_name_label is not specified, a DNS entry is created for the primary NIC of the VM. This DNS name can be constructed by concatenating the VM name with the value of internal_domain_name_suffix.
mac_address The Media Access Control (MAC) Address of the Network Interface.
nic_id The ID of the Network Interface.
principal_id The ID of the System Managed Service Principal.
private_ip_address The Primary Private IP Address assigned to this Virtual Machine.
private_ip_addresses A list of Private IP Addresses assigned to this Virtual Machine.
public_ip_address The Primary Public IP Address assigned to this Virtual Machine.
public_ip_addresses A list of the Public IP Addresses assigned to this Virtual Machine.
public_ip_id The Public IP ID.
tenant_id The ID of the Tenant the System Managed Service Principal is assigned in.
virtual_machine_id A 128-bit identifier which uniquely identifies this Virtual Machine.
vm_id The ID of the Linux Virtual Machine.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages