Deploying Microsoft SQL Server on Red Hat Enterprise Linux (RHEL) in Microsoft Azure is becoming more flexible and efficient.
Earlier this year, Red Hat and Microsoft announced support for the SQL Server IaaS Agent extension on RHEL-based Azure Virtual Machines (VMs), allowing greater licensing flexibility, improved visibility, and simplified management for SQL Server workloads.
Building on this integration, Microsoft has introduced a new script-based deployment experience (Public Preview) for provisioning SQL Server on RHEL Azure VMs. This approach simplifies deployment by automatically installing and configuring SQL Server during VM provisioning, while registering the VM with the SQL Server IaaS Agent extension.
For organizations running SQL Server on RHEL in Azure, this provides a more flexible and automated way to deploy and manage database workloads.
What's changing?
Previously, deploying SQL Server on RHEL in Azure relied on precreated SQL Server Marketplace images. These images have now been deprecated for new provisioning.
With the new script-based deployment model, users can select a supported RHEL base image and configure their preferred SQL Server version, edition, and licensing model directly during VM creation.
Azure then automatically installs and configures SQL Server as part of the provisioning process.
This approach offers several advantages:
- Greater flexibility and control: Choose your RHEL version, SQL Server version, edition, licensing model, and advanced configuration options.
- Faster access to supported releases: Newly supported RHEL and SQL Server versions can be made available without requiring a new preconfigured Marketplace image.
- Automated installation and configuration: SQL Server is installed and configured during VM provisioning, reducing the need for additional manual deployment steps.
- Automatic registration: Newly provisioned VMs are registered with the SQL Server IaaS Agent extension by default, allowing integrated licensing management and visibility.
- Simplified deployment experience: The Azure portal dynamically displays compatible configuration options based on the selected RHEL version, SQL Server version, and licensing model.
By combining the enterprise foundation of RHEL with Azure's automated provisioning capabilities, organizations can simplify the deployment of SQL Server workloads while retaining control over their configurations.
Support for Red Hat Enterprise Linux 9 and 10
The new script-based deployment experience supports RHEL versions 9 and 10. Support for additional RHEL versions can be incorporated as they become available through the deployment experience.
The Azure portal presents compatible combinations of RHEL and SQL Server versions, helping users select supported configurations. Available SQL Server versions include SQL Server 2022 and SQL Server 2025, subject to their respective RHEL compatibility requirements.
This guided approach makes it easier for organizations to deploy SQL Server on supported RHEL platforms without having to manage precreated database VM images.
Automatic registration with the SQL Server IaaS Agent extension
One of the key improvements in this new deployment experience is the automatic registration of SQL Server on RHEL Azure VMs with the SQL Server IaaS Agent extension.
Previously, customers could register their RHEL-based SQL Server deployments with the extension through a separate registration process.
With script-based provisioning, registration is integrated into the deployment workflow.
Once registered, Azure creates a SQL virtual machine resource, separate from the underlying Azure VM resource, enabling additional licensing and management capabilities.
These include:
Licensing flexibility
Customers can select between pay-as-you-go (PAYG) licensing and Azure Hybrid Benefit (AHB), depending on their licensing eligibility and requirements.
- PAYG: SQL Server licensing costs are incorporated into Azure's consumption-based billing model.
- AHB: Eligible customers can apply existing SQL Server licenses with Software Assurance to their Azure deployment.
Customers can also switch between supported licensing models after deployment without restarting the VM or SQL Server service.
Improved visibility and management
Registration creates a separate SQL virtual machine resource in Azure, providing visibility into the SQL Server licensing configuration and allowing supported licensing changes through Azure management tools.
Simplified compliance
Integrated licensing management helps organizations track their SQL Server licensing configurations and fulfil applicable licensing requirements.
By enabling these capabilities automatically during provisioning, the new experience reduces the manual effort previously associated with registering SQL Server on RHEL Azure VMs.
How script-based deployment works
The deployment process follows 4 main steps:
Step 1: Choose your RHEL base image
Select a supported RHEL 9 or RHEL 10 image and configure the Azure VM size, region, and infrastructure settings.
Step 2: Configure SQL Server
Specify your preferred SQL Server version, edition, licensing model, and advanced configuration options.
Step 3: Automated installation
Azure provisions the RHEL VM and uses an automated, script-based process to install and configure SQL Server according to the selected settings.
Step 4: Automatic registration
The VM is automatically registered with the SQL Server IaaS Agent extension, enabling integrated SQL Server licensing management and visibility in Azure.
Figure 1: Workflow showing how the script deployment works
This consolidated workflow reduces the number of separate steps required to deploy a new SQL Server environment on RHEL.
Deploying SQL Server on RHEL through the Azure portal
Customers can access the new experience through either the standard Azure VM creation workflow or the Azure SQL hub.
Option 1: Create a virtual machine
To provision SQL Server on RHEL using the Azure portal:
- Sign in to the Azure portal and navigate to Virtual machines > Create.
- On the Basics tab, select your Azure subscription, resource group, and VM name.
- Choose a supported RHEL 9 or RHEL 10 base image.
- Configure the VM size, administrator authentication, and networking settings.
- Navigate to the Advanced tab and select Install SQL Server.
- Open the newly available SQL Server settings tab to configure your deployment.
The SQL Server settings tab provides several configuration options:
- SQL Server version: Select an available version, such as SQL Server 2022 or SQL Server 2025.
- Edition: Choose from supported editions, including Enterprise, Standard, Developer, Express, and Evaluation, depending on the selected SQL Server version.
- Licensing model: Select PAYG or AHB.
- Advanced configuration: Configure SQL Server settings directly or upload a custom
mssql.conffile for additional customization.
Once the configuration is complete, select Review + create, review the deployment settings, and select Create.
Azure then provisions the RHEL VM, installs and configures SQL Server, and automatically registers the VM with the SQL Server IaaS Agent extension.
Option 2: Deploy through the Azure SQL hub
Alternatively, customers can begin the deployment from the Azure SQL hub.
Navigate to SQL Server on Azure Virtual Machines > Create.
Figure 2: Deploy through the Azure SQL hub
Choose Red Hat Enterprise Linux as the operating system. The selected settings are carried forward into the VM creation workflow, where customers can complete the remaining infrastructure, networking, licensing, and SQL Server configuration.
Figure 3: Selecting Red Hat Enterprise Linux (RHEL) as the operating system.
Both deployment paths provide the same automated SQL Server installation and registration experience.
Managing SQL Server licensing after deployment
Once SQL Server has been deployed on RHEL and registered with the SQL Server IaaS Agent extension, customers can manage their SQL Server licensing through the Azure portal, Azure CLI, or Azure PowerShell.
Azure portal
Navigate to the SQL virtual machine resource and select:
Settings > SQL Server configuration > Manage
From there, customers can update the SQL Server licensing model as needed.
Azure CLI
To switch the VM to Azure Hybrid Benefit, run:
az sql vm update -n <VM_NAME> -g <RESOURCE_GROUP> --license-type AHUBAzure PowerShell
Alternatively, use:
Set-AzSqlVM -Name <VM_NAME> -ResourceGroupName <RESOURCE_GROUP> -LicenseType AHUBSwitching between PAYG and AHB does not require restarting the VM or the SQL Server service.
This capability provides organizations with additional flexibility to adjust their licensing strategy as business requirements evolve.
Ready to get started?
Explore the new script-based deployment experience through the Microsoft Azure portal and follow the Microsoft quickstart guide to provision SQL Server on RHEL.
For more information, read our previous blog on SQL Server IaaS Agent extension support for RHEL in Azure.
Product trial
Red Hat Enterprise Linux | Product Trial
About the authors
Vivien Wang is a Senior Engineering Partner Manager. She works with Red Hat partners to co-build in the Red Hat ecosystem for Openshift, Virtualization and RHEL. Before joining Red Hat in 2019, she worked at SAP UKI, and as an in-house technical writer for ASUS and Mitsubishi Heavy Industries. She was awarded a master's degree from King's College London.
Arne Arnold is an offering Product Manager for Red Hat's solutions targeting SAP. He focuses on Red Hat Enterprise Linux (RHEL) for SAP Solutions, SAP certifications, and product roadmaps for Red Hat Virtualization, Automation and High Availability solutions. He also works on Red Hat OpenShift Container Platform in context of SAP workloads.
Browse by channel
Automation
The latest on IT automation for tech, teams, and environments
Artificial intelligence
Updates on the platforms that free customers to run AI workloads anywhere
Open hybrid cloud
Explore how we build a more flexible future with hybrid cloud
Security
The latest on how we reduce risks across environments and technologies
Edge computing
Updates on the platforms that simplify operations at the edge
Infrastructure
The latest on the world’s leading enterprise Linux platform
Applications
Inside our solutions to the toughest application challenges
Virtualization
The future of enterprise virtualization for your workloads on-premise or across clouds