Cloud service · Azure · Updated

Linux Virtual Machines - Azure Linux Virtual Machines provides on-demand Linux compute instances with configurable processors, memory, storage, and networking.

In short

Run Linux applications on Azure infrastructure using supported distribution images or custom images while retaining control over the guest operating system and installed software. The service supports individual servers and distributed deployments, with options for specialized hardware, automated provisioning, availability, and integration with Azure management services.

Cloud Services Hub →

8 key features of Linux Virtual Machines

01
Linux distribution and image choice

Provision supported Marketplace images or deploy custom images with your organization's packages and hardening settings. Verify image architecture, support lifecycle, and licensing terms before standardizing a production image.

02
Workload-specific compute sizes

Choose VM families for general-purpose services, memory-heavy applications, GPU workloads, or HPC. Benchmark the actual application and check regional availability, quotas, and per-VM storage and networking limits.

03
Persistent and temporary storage

Attach managed data disks independently of the OS disk and select disk performance appropriate to the workload. Use local temporary storage only for disposable data, and account for both disk-level and VM-level throughput limits.

04
Private networking and controlled access

Place VMs in virtual network subnets and restrict traffic with network security groups and Linux firewalls. Use private management paths and configure explicit outbound access where required.

05
Automated provisioning

Define infrastructure with deployment templates or infrastructure-as-code tools, then initialize supported images with cloud-init. Use VM extensions for tasks such as installing monitoring agents or running configuration scripts.

06
Availability and fleet scaling

Deploy redundant instances across availability zones where supported, or use availability sets when appropriate. Virtual Machine Scale Sets adds fleet management and autoscaling, but applications still require suitable health checks and state management.

07
Identity and boot protection

Assign managed identities so applications can authenticate to compatible Azure services without stored credentials. For supported VM sizes and images, Trusted Launch provides Secure Boot, a virtual TPM, and boot integrity monitoring.

08
Operational management

Integrate guest telemetry, patch scheduling, backup, and security assessment with Azure management services. Guest agents, extensions, policies, and service configuration must be deployed as required; these capabilities are not all enabled automatically.

Where Linux Virtual Machines is used

  1. 01
    Web applications and APIs

    Run NGINX, Apache, Java, Node.js, or other Linux application stacks when you need operating-system control. Deploy multiple instances behind a load balancer or application gateway and keep durable state outside disposable application instances.

  2. 02
    Migration of existing Linux servers

    Move applications that depend on specific Linux packages, system services, or filesystem layouts without first redesigning them for a managed application platform. Validate kernel compatibility, licensing, network dependencies, and recovery requirements during migration.

  3. 03
    Self-managed databases

    Host databases that require engine versions, extensions, or administrative control unavailable in a managed service. Engineer disk performance, database replication, backups, patching, and failover explicitly.

  4. 04
    Batch processing and scientific computing

    Run parallel simulations, rendering jobs, or data-processing workers on appropriately sized compute, GPU, or HPC instances. Use checkpointing and retryable tasks if selecting Spot capacity.

  5. 05
    Development and build environments

    Create reproducible Linux test machines and build agents from approved images. Automate provisioning and teardown, and deallocate idle machines when retained disks are still needed.

How Linux Virtual Machines is priced

Pay-as-you-go

Pay for allocated VM compute without a long-term commitment, with rates depending on size, region, and software image. A guest shutdown does not necessarily release the allocation; deallocate the VM to stop its compute charges.

Azure Reserved Virtual Machine Instances

Commit to a one-year or three-year reservation to receive a discount on matching eligible VM usage. Reservations are billing benefits rather than guarantees of physical capacity, and unused benefits can reduce the value of the commitment.

Azure savings plan for compute

Commit to an hourly spend for one or three years to receive reduced rates on eligible compute usage. This can suit workloads whose VM families or regions change, but usage beyond the commitment and unused committed spend require separate consideration.

Azure Spot Virtual Machines

Use available spare capacity at variable discounted rates for interruption-tolerant workloads. Azure can evict instances because of capacity needs or configured price limits, and Spot VMs have no availability SLA.

Software licensing and supporting resources

Some Linux images include commercial subscription or software charges; eligible Red Hat and SUSE subscriptions may support Azure Hybrid Benefit under applicable terms. Managed disks, snapshots, backup, monitoring, networking, and data transfer can add charges independently of VM compute.

Services Linux Virtual Machines works with

A common Linux VM architecture places application instances in private Virtual Network subnets and distributes service traffic through Azure Load Balancer. Network security groups restrict communication between tiers, while Azure Bastion provides administrative SSH access without public IP addresses on the target VMs. Virtual Machine Scale Sets can manage replaceable application instances, provided the application separates durable state from local compute.

Applications can authenticate to Azure Key Vault using managed identities, avoiding credentials embedded in machine images or initialization scripts. Scope permissions to the secrets each workload needs and validate connectivity when private endpoints or restrictive network rules are used.

Operational integrations require deliberate configuration. Azure Monitor collects platform metrics and, with Azure Monitor Agent and data collection rules, Linux guest logs and performance data. Azure Update Manager coordinates supported guest patching, while Azure Backup protects supported VM configurations with retention and recovery policies. For example, a production deployment can alert on filesystem exhaustion, patch redundant application instances in controlled maintenance windows, and restore a damaged server from backup. Availability, backup, and patch management address different failure modes and should be tested independently.

Azure Virtual Network

Virtual Network provides the private network in which VM network interfaces and subnets reside. For example, place application servers in a dedicated subnet and permit database traffic only to the database subnet through network security groups. Configure routing, DNS, and outbound connectivity explicitly for the deployment.

Azure Load Balancer

Azure Load Balancer distributes TCP or UDP traffic across healthy VM backends. For example, expose a private TCP service through an internal load balancer backed by Linux instances in multiple availability zones. Configure health probes to reflect service readiness and ensure security rules permit probe traffic.

Azure Bastion

Azure Bastion provides SSH connectivity to VMs over their private IP addresses without requiring public IP addresses on the target machines. For example, administrators can access a private Ubuntu server through a Bastion deployment instead of opening internet-facing port 22. Check the selected Bastion SKU for required connection features.

Azure Monitor

Azure Monitor combines platform metrics with guest telemetry collected through Azure Monitor Agent and data collection rules. For example, collect Linux Syslog and filesystem utilization, then alert when disk usage exceeds an operational threshold. Guest memory and filesystem metrics require collection configuration rather than relying solely on default VM platform metrics.

Azure Key Vault

Applications on a VM can use its managed identity to retrieve authorized secrets, keys, or certificates from Key Vault. For example, a system service can obtain a database password at startup instead of storing it in an image or deployment script. Grant only the required data-plane permissions and ensure network access to the vault is available.

Azure Backup

Azure Backup protects supported Linux VM configurations through policies managed in a Recovery Services vault. For example, schedule daily backups and restore a VM or its disks after an unsuccessful application change. Verify workload-specific consistency requirements, configure application-aware procedures where needed, and regularly test restoration.

API Management

A Linux VM can host the API Management self-hosted gateway in Docker. The gateway receives its configuration from the Azure API Management instance and applies API policies close to the backends it serves.

App Service

A service listening on a Linux VM can be the host-and-port endpoint of an App Service Hybrid Connection. This lets an App Service app reach a private backend without opening a public inbound port on the VM.

Automation

Azure Automation runbooks can perform scheduled management tasks on Linux VMs, such as starting or stopping them. A Linux VM can also host an extension-based Hybrid Runbook Worker to run jobs that need access to its private network.

Azure Adaptive Virtual Patching

Supported Linux VMs can receive virtual patching protection against covered vulnerabilities while the underlying software update is pending. The virtual mitigation does not replace installing the vendor's patch.

Alternatives to Linux Virtual Machines in other clouds

AWS

Amazon EC2Amazon EC2

Amazon EC2 and Azure Linux Virtual Machines provide configurable cloud servers with on-demand pricing and autoscaling. EC2 stops compute billing when an instance enters the stopped state; Azure requires deallocation, since shutting down Linux alone can leave compute charges running.

Compare fact by fact
Linux Virtual MachinesAmazon EC2
What stops compute billingVM deallocationInstance enters stopped state
Compute quota scopeAzure subscription quotaPer AWS Region
Compared Nov 2026
Amazon LightsailAmazon Lightsail

Amazon Lightsail and Azure Linux Virtual Machines both provide virtual servers for web applications and development environments. Lightsail bundles compute, SSD storage, and a data transfer allowance into fixed monthly plans and offers Linux and Windows, while Azure Linux Virtual Machines offers Linux with pay-as-you-go compute and separate charges for supporting resources.

Compare fact by fact
Linux Virtual MachinesAmazon Lightsail
Base pricingPay-as-you-go compute; separate extrasMonthly compute, SSD and transfer bundle
Guest operating systemsLinuxLinux or Windows
Application setupCustom images or cloud-initOne-click application stacks

What is Linux Virtual Machines

2 min read

Azure Linux Virtual Machines is an infrastructure-as-a-service offering for running Linux operating systems on Azure-managed compute infrastructure. You select a region, VM size, operating system image, disks, and network configuration, then administer the guest operating system and applications. Microsoft operates the underlying infrastructure, while your team remains responsible for guest configuration, application security, updates, and data protection.

Deploy from Azure Marketplace images such as Ubuntu, Red Hat Enterprise Linux, and SUSE Linux Enterprise Server, or create standardized custom images. Check the distribution version, processor architecture, support arrangements, and any Marketplace software charges before deployment. Use Azure CLI, Bicep, ARM templates, or Terraform to make infrastructure reproducible. For images that support it, cloud-init can create users, install packages, and configure services during initial provisioning. VM extensions provide additional post-deployment configuration and management capabilities.

Select VM sizes using measured CPU utilization, memory demand, disk throughput, IOPS, and network requirements. Azure offers general-purpose, compute-optimized, memory-optimized, storage-optimized, GPU, and high-performance computing families. Availability depends on region, subscription quota, and capacity. Resizing can require a restart or deallocation, so validate operational impact before changing production instances.

Use managed OS and data disks for persistent storage. Treat a VM's local temporary disk, when present, as disposable because its contents can be lost during host maintenance or other lifecycle events. Keep databases, durable application files, and recovery data off temporary storage. Configure Linux mounts using stable device identifiers and test reboot behavior. Size both the VM and its disks appropriately because either can limit storage performance.

Each VM connects to an Azure virtual network through one or more network interfaces. Apply network security groups and guest firewall rules to restrict traffic. Prefer private administration through Azure Bastion, VPN, or ExpressRoute rather than exposing SSH directly to the internet. Configure explicit outbound connectivity when the workload needs access to package repositories or external APIs. Use SSH keys, and consider Microsoft Entra-based SSH authentication for supported configurations.

A single VM is not an application high-availability design. Distribute redundant application instances across availability zones where supported, use load balancing and health probes, and design state replication separately. Virtual Machine Scale Sets can manage groups of instances and support autoscaling. Use Azure Monitor for telemetry, Azure Update Manager for patch orchestration, and Azure Backup for supported VM backup scenarios. Test recovery procedures rather than assuming disk persistence provides sufficient protection.

Track compute and dependent-resource charges separately. Shutting down Linux inside the guest can leave the VM allocated and compute charges continuing; deallocate the VM when you intend to release its compute allocation. Disks and other retained resources can remain billable after deallocation. Apply tags, budgets, and utilization reviews to identify idle instances and choose suitable purchasing options.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.