Edit

Overview of SQL Server on Linux Azure Virtual Machines

Applies to: SQL Server on Azure VM

SQL Server on Azure Virtual Machines enables you to use full versions of SQL Server in the cloud without having to manage any on-premises hardware. SQL Server VMs also simplify licensing costs when you pay as you go.

Azure virtual machines run in many different geographic regions around the world. They also offer a variety of machine sizes. When you create a Linux VM, you can choose the Linux distribution, SQL Server version, edition, and licensing model that fit your workload. This flexibility makes virtual machines a good option for many different SQL Server workloads.

If you're new to Azure SQL, check out the SQL Server on Azure VM Overview video from our in-depth Azure SQL video series:

Azure portal deployment

To create a SQL Server on Linux Azure VM, use the Azure portal virtual machine deployment experience. You start from a supported Linux base image, and Azure installs and configures SQL Server while it provisions the VM.

Note

The new script-based Azure portal virtual machine deployment for SQL Server on Linux Azure VMs is currently in preview.

Important

Precreated SQL Server on Linux Azure Marketplace images are deprecated. They're no longer available for new deployments through the Azure portal, the Azure SQL hub, the Azure CLI, or Azure PowerShell.

The script-based SQL Server on Azure VM portal deployment experience offers the following benefits:

  • Flexibility and control: Choose your Linux distribution, SQL Server version, edition, and features. You can also upload your own mssql.conf file to customize the SQL Server configuration.
  • Faster access to new versions: New Linux versions and Azure capabilities become available without waiting for a new Marketplace image.
  • Automatic registration: Azure registers every VM with the SQL Server IaaS Agent extension by default, which gives you licensing flexibility, compliance, and license visibility.
  • Guided configuration: The Azure portal only shows valid combinations of operating system, SQL Server version, and licensing options.

The deployment follows these stages:

  1. You choose a supported Linux base image and VM size.
  2. You enable and configure SQL Server, including the version, edition, features, and licensing model.
  3. Azure installs and configures SQL Server on the VM.
  4. Azure registers the VM with the SQL Server IaaS Agent extension, with either the pay-as-you-go or Azure Hybrid Benefit license type.

You can start a deployment from either the Create a virtual machine page in the Azure portal or from the Azure SQL hub. Both options lead to the same guided SQL Server configuration. For steps, see Provision a Linux virtual machine running SQL Server in the Azure portal.

Supported Linux distributions

Azure portal deployment supports the following Linux distributions. Azure automatically adds support for later versions as they become supported.

Distribution Supported versions
Red Hat Enterprise Linux (RHEL) RHEL 9, RHEL 10
Ubuntu Ubuntu 22.04, Ubuntu 24.04, Ubuntu 26.04

Azure portal deployment doesn't support SUSE Linux Enterprise Server (SLES). To run SQL Server on SLES, create a SLES VM and install SQL Server manually.

Install SQL Server manually

If you prefer to install SQL Server yourself, you can also:

  1. Provision a Linux VM on Azure.
  2. Install SQL Server on Linux.
  3. Register the VM with the SQL IaaS Agent extension to enable management features.

AI capabilities and features

Linux virtual machines

Storage

Networking

SQL