Skip to main content

LinuxVirtualMachine



Resource Icon

Resource Overview

Azure Linux Virtual Machine is a virtual machine (VM) that runs a Linux operating system on Microsoft’s Azure cloud computing platform.
Server workloads can be executed by configuring the VM size (SKU), operating system image, authentication method (password/SSH key), disk configuration, network interface connections, and Cloud-init initialization scripts.

Associated Resources

Parent Resources

Connected Resources


Resource Configuration

  • included_vnet_name : Name of the Virtual Network to which the Virtual Machine belongs

  • linked_availability_set_name : Name of the Availability Set to apply to the Virtual Machine

  • size : Size configuration of the Virtual Machine for running workloads

Image Settings (source_image)

  • source_image.type : Whether to use a custom image ID - recommended, custom_id, custom_input

  • source_image.image_id : ID of the image used to create the VM

  • source_image.image : Image used to create the VM

  • source_image.publisher : Publisher of the image used to create the VM

  • source_image.offer : Offer of the image used to create the VM

  • source_image.sku : Pricing tier (SKU) of the image used to create the VM

Authentication Settings

  • enable_ssh_key_authentication : Whether to use SSH keys to authenticate the administrator account - true, false

  • admin_username : Administrator username for the VM - 1 ~ 64 characters

  • admin_password : Administrator password for the VM - 12 ~ 72 characters

  • ssh_public_key : Public SSH key for the VM - maximum 600 characters

OS Disk Settings

  • os_disk_caching : Caching type for the internal OS disk - ReadWrite, ReadOnly, None

  • storage_account_type : Storage type for backing up the internal OS disk - Standard_LRS, StandardSSD_LRS, Premium_LRS

  • disk_size_gb : Size of the internal OS disk (GB) - 32 ~ 32767

Additional Disk Attachments (disk_attachment)

  • disk_attachment.lun : Logical unit number of the disk

  • disk_attachment.host_caching : Disk caching configuration - None, ReadOnly, ReadWrite

Network Settings

  • linked_network_interface_names : List of Network Interface names

  • primary_network_interface_name : Name of the primary Network Interface connected to the Virtual Machine

Initialization Script

  • cloudinit_config : Script content to be automatically executed when the server is created

Tags

  • tag : Tags used to categorize resources - maximum 512 characters, key:value

References