Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: Hyperconverged deployments of Azure Local
This article provides guidance on how to deploy SQL Server on Azure Local, version 23H2.
Solution overview
Azure Local provides a flexible platform to run SQL Server and Storage Spaces Direct. The platform is cost efficient and highly available. Azure Local can run:
- Online transaction processing (OLTP) workloads.
- Data warehouse and business intelligence.
- AI and advanced analytics over big data.
The platform's flexibility is especially important for mission-critical databases. You can run SQL Server on virtual machines (VMs) that use either Windows Server or Linux. You can consolidate multiple database workloads and add more VMs to your Azure Local environment as needed. You can also use Azure Local to integrate SQL Server with Azure Site Recovery. You gain a cloud-based solution that supports migration, restoration, and protection for your organization's data.
Deploy SQL Server
This section describes at a high level how to acquire hardware for SQL Server on Azure Local. Information is included on how to:
- Set up SQL Server.
- Perform monitoring and performance tuning.
- Use high availability (HA) and Azure hybrid services.
Step 1: Acquire hardware from the Azure Local catalog
First, you need to procure hardware. Locate your preferred Microsoft hardware partner in the Azure Local catalog. Then, purchase an integrated system or premium solution with the Azure Stack HCI operating system preinstalled. In the catalog, you can filter to see vendor hardware that's optimized for this type of workload.
Otherwise, use a validated system from the catalog and deploy it on that hardware.
For details on Azure Local deployment options, see Deploy the Azure Stack HCI operating system.
Next, deploy Azure Local, version 23H2, by using the Azure portal. You can also deploy Azure Local, version 23H2, by using an Azure Resource Manager deployment template.
Step 2: Install SQL Server on Azure Local
You can install SQL Server on VMs running either Windows Server or Linux depending on your requirements.
For instructions on how to install SQL Server, see:
For information on licensing and billing for SQL Server, see Manage licensing and billing of SQL Server.
Step 3: Monitor and performance tune SQL Server
Microsoft provides a comprehensive set of tools that you can use to monitor events in SQL Server and tune the physical database design. Tool choice depends on the type of monitoring or tuning that you want to perform.
To ensure the performance and health of your SQL Server instances on Azure Local, see Performance monitoring and tuning tools.
For tuning SQL Server 2017 and SQL Server 2016, see Recommended updates and configuration options for SQL Server 2017 and 2016 with high-performance workloads.
Step 4: Use SQL Server high-availability features
Azure Local uses Windows Server failover clustering with SQL Server to support SQL Server running in VMs if hardware fails. SQL Server also offers Always On availability groups to provide database-level HA to help with application and software faults. In addition to Windows Server failover clustering and availability groups, Azure Local can use Always On failover cluster instance. Failover cluster instance is based on Storage Spaces Direct technology for shared storage.
These options all work with the Azure Cloud witness for quorum control. We recommend that you use cluster AntiAffinity rules in Windows Server failover clustering for VMs that are placed on different physical nodes. These rules help to maintain uptime for SQL Server if the host fails when you configure Always On availability groups.
Step 5: Set up Azure hybrid services
Several Azure hybrid services help you keep your SQL Server data and applications secure. Azure Site Recovery is a disaster recovery solution. For more information about how to use this service to protect the SQL Server back end of an application to help keep workloads online, see Set up disaster recovery for SQL Server.
Azure Backup lets you define backup policies to protect enterprise workloads and supports backing up and restoring SQL Server consistency. For more information about how to back up your on-premises SQL data, see:
Alternatively, you can use SQL Server managed backup to Azure in SQL Server to manage Azure Blob Storage backups.
For more information about how to use this option for off-site archiving, see:
- Tutorial: Use Azure Blob Storage with SQL Server
- Quickstart: SQL backup and restore to Azure Blob Storage
In addition to these backup scenarios, you can set up other database services that SQL Server offers, including:
Deploy SQL Server on a Trusted launch VM
Trusted launch adds Secure Boot and a vTPM to the VM that hosts SQL Server. Secure Boot helps reduce the risk of boot-level malware, and Azure Local preserves the vTPM state when the VM migrates or fails over within the cluster.
To deploy SQL Server on a Trusted launch VM:
- Choose a Windows Server or Linux image that your SQL Server version supports and that's supported for Trusted launch.
- Create the Azure Local VM and set the security type to Trusted launch. On Azure Local 2509 and later, you can also enable guest attestation to verify that the VM started in a known good state. Guest attestation isn't available for custom images.
- As soon as you create the VM, back up its guest state protection key. Without this key, the VM can't start.
- Install SQL Server as described in Step 2: Install SQL Server on Azure Local.
Note
Trusted launch doesn't encrypt SQL Server databases or data volumes. Configure the encryption that your workload requires.
Deploy SQL Server on a confidential VM (Preview)
Confidential VMs (CVMs) use hardware-based memory encryption to help keep SQL Server data confidential while it's in use, even from the host, the hypervisor, and host administrators. Data on disk, in backups, and in transit still needs SQL Server's own protections.
To deploy SQL Server on a CVM:
- Deploy Azure Local 2607 or later with confidential VMs enabled on validated hardware.
- Use the Integrity-Protected CVM Image Builder to build an Ubuntu 24.04 image with SQL Server 2025. The root file system is read-only, so store databases, logs, and tempdb on a separate data disk. Windows Server guests aren't supported in this release.
- Create the CVM from your image with the data disk attached.
- Use guest attestation to verify the CVM before you connect applications to SQL Server.
Note
Guest management isn't supported, so apply SQL Server updates by building a new image. Live migration and failover between nodes aren't supported, so plan maintenance around each node's CVMs, build availability into the database design, and keep SQL Server backups outside the VM.
Related content
- For more information about working with SQL Server, see Tutorial: Get started with the Database Engine.