Back to Databases

Azure SQL Database

azure

Intelligent, scalable relational database service built on the Microsoft SQL Server engine with serverless auto-pause and Always On availability.

DATABASES
Microsoft Azure

Intelligent, scalable relational database service built on the Microsoft SQL Server engine with serverless auto-pause and Always On availability.

Click any section above to jump directly to it
GCP ➔ Azure Bridge
Fast-Track Mental Model Translation

Coming from Google Cloud?

Compare with Google Cloud SQL (for SQL Server)

Both offer managed relational databases with automated backups, regional HA, and read replicas, but Azure SQL Database provides a true PaaS architecture with Serverless auto-pause, Elastic Pools, and Hyperscale.

What's Conceptually Identical
  • Fully managed relational database engines with automatic patching, backups, and point-in-time recovery.
  • High availability across availability zones with synchronous replication.
  • Private network integration and customer-managed encryption keys.
Key Architectural Shifts in Azure
  • Architecture: Cloud SQL provisions a dedicated VM instance; Azure SQL offers true PaaS deployment models including Elastic Pools and Serverless.
  • Maximum Size: Cloud SQL for SQL Server caps at 64 TB; Azure SQL Hyperscale scales past 100 TB+ with sub-2-minute compute scaling.
  • Licensing: Azure SQL offers Azure Hybrid Benefit saving up to 55% with existing Windows/SQL licenses; GCP requires BYOL or hourly license inclusion.
Syntax & Command Translator
Create Database
GCP:gcloud sql instances create prod-sql --database-version=SQLSERVER_2022_STANDARD
Azure:az sql db create --resource-group rg-data --server sql-srv --name db-prod --edition GeneralPurpose --capacity 4
Trigger Failover
GCP:gcloud sql instances failover prod-sql
Azure:az sql failover-group set-primary --name fog-prod --server sql-srv

What is Azure SQL Database?

Azure SQL Database is a fully managed Platform-as-a-Service (PaaS) database engine that handles patching, backups, replication, and performance tuning automatically. Powered by the latest stable SQL Server Enterprise Edition engine, it offers independent compute and storage scaling, Serverless auto-pause with per-second billing, and up to 100 TB+ capacity in the Hyperscale tier.

Decision Guide: When to Choose This Service

When to Use Azure SQL Database

Use Azure SQL Database when developing new cloud-native applications requiring enterprise relational ACID transactions, multi-tenant SaaS applications using Elastic Pools, or when migrating existing SQL Server workloads with Azure Hybrid Benefit licensing.

When NOT to Use (Recommended Alternatives)

Do NOT use Azure SQL Database if you need full operating system access, SQL Server Agent jobs, cross-database queries with DTC (use Azure SQL Managed Instance instead), or unstructured JSON document stores at massive global scale (use Azure Cosmos DB).

Core Architectural Pillars

Elastic Pools

Consolidates vCore compute across up to 500 multi-tenant databases, reducing SaaS hosting costs by up to 70%.

Always On 4-Node Quorum

Business Critical tier guarantees synchronous replication across availability zones with RPO = 0 and sub-5s failover.

Serverless Compute Tier

Automatically scales vCores based on active load and auto-pauses during idle windows, reducing compute cost to $0.

Always Encrypted with Secure Enclaves

Hardware-isolated Intel SGX CPU enclaves query sensitive data without exposing plaintext to OS memory or DBAs.

Accelerated Database Recovery (ADR)

Constant-time O(1) rollback for massive transactions and near-instant crash recovery.