Skip to content

Latest commit

 

History

History
159 lines (115 loc) · 14.7 KB

File metadata and controls

159 lines (115 loc) · 14.7 KB
title Checklist: Best practices & guidelines
description Provides a quick checklist to review your best practices and guidelines to optimize the performance of your SQL Server on Azure Virtual Machines (VM).
author dplessMSFT
ms.author dpless
ms.reviewer mathoma, randolphwest
ms.date 03/20/2025
ms.service azure-vm-sql-server
ms.subservice performance
ms.topic best-practice
tags azure-service-management

Checklist: Best practices for SQL Server on Azure VMs

[!INCLUDE appliesto-sqlvm]

This article provides checklists as part of a series of best practices and guidelines to optimize performance of your SQL Server on Azure Virtual Machines (VMs). Use this guide to improve your VM configuration, storage setup, security posture, and troubleshoot common performance issues.

The checklists in this article provide a brief overview of the more comprehensive details found in the following articles of this series:

Enable SQL Assessment for SQL Server on Azure VMs and your SQL Server will be evaluated against known best practices with results on the SQL VM management page of the Azure portal.

For videos about the latest features to optimize SQL Server VM performance and automate management, review the following Data Exposed videos:

Overview

While running SQL Server on Azure Virtual Machines, continue using the same database performance tuning options that are applicable to SQL Server in on-premises server environments. However, the performance of a relational database in a public cloud depends on many factors, such as the size of a virtual machine, and the configuration of the data disks.

There's typically a trade-off between optimizing for costs and optimizing for performance. This performance best practices series is focused on getting the best performance for SQL Server on Azure Virtual Machines.

Next steps: Start with the first VM size recommendations section, then proceed through Storage, Security, and SQL Server features sections for a complete optimization approach.

If your workload is less demanding, you might not require every recommended optimization. Consider your performance needs, costs, and workload patterns as you evaluate these recommendations.

Manually install SQL Server to an Azure VM

If you plan to manually install SQL Server on an Azure VM, follow these essential steps to avoid common configuration issues:

  • Make sure you have a product key ready for your installation.
  • Avoid unsupported configurations such as:
    • More than 64 vCores per NUMA node.
    • Storage with 8-KB sector size.
    • Azure Virtual Machine Scale Sets.
  • If they don't already exist, create the folders for your SQL Server installation and data files prior to launching the installation media.
  • Copy the installation media to a local drive instead of installing directly from the mounted ISO.
  • After installation, register your SQL Server VM with the SQL Server IaaS Agent Extension to automate management tasks.
  • Place the tempdb database on the local SSD ephemeral storage when possible.

VM size

[!INCLUDE sql-vm-deployment-failure]

The checklist in this section covers the VM size best practices for SQL Server on Azure VMs.

[!INCLUDE vm size best practices]

Storage

The checklist in this section covers the storage best practices for SQL Server on Azure VMs.

[!INCLUDE storage best practices]

Security

The checklist in this section covers the security best practices for SQL Server on Azure VMs.

[!INCLUDE security best practices]

SQL Server features

The following is a quick checklist of best practices for SQL Server configuration settings when running your SQL Server instances in an Azure virtual machine in production:

Azure features

The following is a quick checklist of best practices for Azure-specific guidance when running your SQL Server on Azure VM:

HADR configuration

The checklist in this section covers the HADR best practices for SQL Server on Azure VMs.

[!INCLUDE HADR best practices]

Performance troubleshooting

When you encounter SQL Server performance issues, use these diagnostic resources to identify and resolve specific problems:

Related content

For detailed guidance on each optimization area:

  • VM size - Choose the right VM series and configuration
  • Storage - Optimize disk configuration and performance
  • Security - Implement security best practices
  • HADR settings - Configure high availability and disaster recovery
  • Collect baseline - Establish performance baselines

Recommended tool: Enable SQL Assessment for SQL Server on Azure VMs to automatically evaluate your configuration against these best practices.

Review other SQL Server Virtual Machine articles at SQL Server on Azure Virtual Machines Overview. If you have questions about SQL Server virtual machines, see the Frequently Asked Questions.