Microsoft Docs

SQL Server on Azure Virtual Machines

Deploy and manage SQL Server instances running on Azure VMs for maximum flexibility and control.

Overview

Azure Virtual Machines (VMs) provide a highly scalable and flexible cloud computing solution. Running SQL Server on Azure VMs offers the full benefits of SQL Server with the added advantages of cloud scalability, reliability, and cost-effectiveness. This allows you to migrate existing SQL Server workloads to the cloud or build new, high-performance applications.

Key Benefits

Getting Started

Deploying SQL Server on an Azure VM

You can deploy SQL Server on Azure VMs in several ways:

Recommendation: For quick and easy deployments, start with the Azure Marketplace images. They come with SQL Server pre-installed and configured.

Creating a SQL Server VM from Azure Marketplace

  1. Sign in to the Azure portal.
  2. Navigate to "Create a resource".
  3. Search for "SQL Server" and select the desired SQL Server image (e.g., "SQL Server 2019 Enterprise on Windows Server 2019").
  4. Click "Create".
  5. Follow the prompts to configure your VM, including resource group, VM name, region, administrator account, size, storage, and networking.
  6. Review and create your virtual machine.
Azure Portal SQL Server VM Creation Example

Conceptual image of the Azure portal VM creation wizard.

Managing SQL Server on Azure VMs

Connectivity

Once deployed, you can connect to your SQL Server instance using SQL Server Management Studio (SSMS) or other client tools:

Performance Tuning and Optimization

Azure provides various services and configurations to optimize SQL Server performance:

High Availability and Disaster Recovery

Implement robust HA/DR solutions:

Pricing and Licensing

Understand the costs associated with running SQL Server on Azure VMs:

Refer to the Azure pricing calculator for detailed cost estimations.

Resources

Explore further resources:

Configure a firewall for SQL Server on Azure VMs High availability and disaster recovery for SQL Server on Azure VMs Performance best practices for SQL Server on Azure VMs SQL Server licensing on Azure VMs