Azure

Azure SQL Database vs Managed Instance vs SQL on VM: Complete Platform Selection Guide

2026-05-24
NicheeLab Editorial Team

Running SQL Server on Azure comes down to three platform options: Azure SQL Database, Azure SQL Managed Instance, and SQL Server on Azure VM. They differ sharply in SaaS-ness, compatibility, operational load, and cost — picking the wrong one can cost millions of yen in remediation or sink an entire migration project. This article compares the three options across multiple dimensions and gives you the framework to choose the right pattern for your requirements.

Side-by-Side Comparison of the Three Options

ItemSQL DatabaseManaged InstanceSQL on VM
CategoryPaaS (single DB)PaaS (instance-level)IaaS (full control)
SaaS-nessHighestMediumLowest
On-premises compatibility80% (many constraints)95% (near complete)100%
OS accessNoNoYes
SQL Server versionAlways latestAlways latestYour choice
SQL AgentNoYesYes
Cross-DB QueryLimitedYesYes
Linked ServerNoYesYes
SSIS / SSAS / SSRSSSIS only, separatelySSIS onlyAll supported
OS patch managementMicrosoftMicrosoftUser
Best fitNew SaaS web appsFull on-prem migrationFull control required

SQL Database Details

Azure SQL Database is a single-database PaaS — the most SaaS-like of the three. It's the best fit for greenfield web application and SaaS backend databases.

Deployment Options

  • Single Database: deploy a single database — the simplest option
  • Elastic Pool: multiple databases share resources (DTU / vCore) — ideal for SaaS multi-tenant

Feature Constraints

  • SQL Agent not supported (use Elastic Jobs instead)
  • Cross-database Query limited (partial support via Elastic Query)
  • CLR not supported
  • Linked Server not supported
  • SSAS / SSRS replaced by separate Azure services (Analysis Services, Power BI)

Managed Instance Details

Azure SQL Managed Instance is instance-level PaaS, with near-100% compatibility with on-premises SQL Server. It is the first-choice target when migrating from on-premises.

Key Supported Features

  • SQL Agent
  • SSIS Runtime
  • Cross-database Query
  • Linked Server
  • CLR
  • Service Broker
  • Distributed Transactions (MSDTC)
  • Database Mail

Constraints

  • No OS-level operations (xp_cmdshell restricted)
  • SSAS / SSRS not supported (use Azure Analysis Services / Power BI instead)
  • Filestream is limited
  • Some SQL Server Agent features (PowerShell steps, etc.) are constrained

SQL on VM Details

SQL Server on Azure VM is IaaS — full-feature SQL Server running on a VM. It offers maximum flexibility and full compatibility, but you own OS patching and SQL version upgrades.

When to Use

  • SSAS / SSRS or any full SQL Server feature is required
  • Apps validated only against a specific SQL Server version (e.g., 2016)
  • OS-level access is required (Windows / Linux auth integration, file operations)
  • Use the SQL Server VM Image from Azure Marketplace (Hybrid Benefit for cost optimization)

Service Tiers

TierBaseSLACostSupported Services
General Purpose (GP)Premium SSD99.99%CheapestSQL DB / MI
Business Critical (BC)Local SSD + Always On AG99.995%~2x GPSQL DB / MI
Hyperscale (HS)Log Service + Compute + Page Server99.99%Very large DBsSQL DB only

Decision: standard web apps -> GP; low-latency or production mission-critical workloads -> BC; very large databases (10 TB+) -> HS.

DTU Model vs vCore Model

ItemDTUvCore (recommended)
Billing unitAbstract unit bundling CPU + memory + I/OSpecify CPU cores directly
FlexibilityLowHigh (memory / storage / I/O are independent)
Reserved CapacityNot supportedSupported
Hybrid BenefitNot supportedSupported
HyperscaleNot supportedSupported

As of 2026, Microsoft recommends the vCore model, and new projects should default to vCore. The DTU model only survives for legacy maintenance.

HADR (High Availability and Disaster Recovery)

Shared by SQL DB / MI

  • Active Geo-replication: DB-level, up to 4 read secondaries, RPO 5 seconds
  • Auto-failover Group: Cross-region failover, RPO 5 seconds, RTO 1 hour, bulk failover of multiple databases
  • Zone Redundant configuration: AZ redundancy for BC / Premium, at no extra cost
  • Long-term Retention (LTR): up to 10 years of backup retention
  • Continuous Backup with PITR: 7-35 days of Point-in-Time Restore

Additional for SQL on VM

  • Always On Availability Groups (AG): the standard SQL Server HA feature
  • Failover Cluster Instance (FCI): based on Windows Failover Cluster

Standard mission-critical production setup: Auto-failover Group + Zone Redundant + LTR + PITR.

Cost Comparison

Estimated monthly cost for a mid-size production setup (4 vCore, 100 GB, GP tier, Tokyo region, pay-as-you-go, no Hybrid Benefit):

ServiceApprox. monthlyNotes
SQL Database (vCore GP)~70,000 JPYMinimal operations
Managed Instance (GP)~90,000 JPYPremium for operational simplicity
SQL on VM (D4s_v5 + Enterprise + Premium SSD)~220,000 JPYVM + Windows + SQL Server licenses
SQL on VM + Hybrid Benefit~120,000 JPYWindows + SQL licenses free

Reserved Capacity (1-3 years) cuts 15-55% off each service. Ranking: SQL DB ≤ SQL MI « SQL on VM.

Security Best Practices

  1. Microsoft Entra ID authentication: phase out SQL authentication
  2. Managed Identity: app authentication (never put passwords in connection strings)
  3. Transparent Data Encryption (TDE): on by default; integrate with Key Vault using Customer-Managed Keys (CMK)
  4. Always Encrypted: encrypt sensitive columns (data stays opaque even on the Azure side)
  5. Dynamic Data Masking: mask sensitive data
  6. Row-level Security: row-scoped access control
  7. Microsoft Defender for SQL: threat detection and Vulnerability Assessment
  8. Auditing: send to Log Analytics, Storage, or Event Hubs
  9. Network isolation: Private Endpoint or Service Endpoint, with Public Access disabled

Selection Flowchart

  1. Migrating from on-premises SQL Server? -> Yes (95%+ compatibility needed) -> Managed Instance
  2. New SaaS web app? -> SQL Database
  3. Need SSAS / SSRS or full feature set? -> SQL on VM
  4. Database larger than 10 TB? -> SQL Database Hyperscale
  5. Efficiently manage many DBs for multi-tenant SaaS? -> SQL Database Elastic Pool
  6. Low-latency requirement (sub-1 ms)? -> Business Critical tier (SQL DB or MI)
  7. Want to leverage Hybrid Benefit? -> vCore model required

Related Certifications

Frequently Asked Questions

What is the difference between Azure SQL Database, Managed Instance, and SQL on VM?

Azure SQL Database (SQL DB): single-database PaaS, the most SaaS-like option, minimal operational overhead, with feature constraints around SQL Agent and Cross-DB Query. Deploys as a Single Database or Elastic Pool. Azure SQL Managed Instance (SQL MI): instance-level PaaS, nearly 100% compatible with on-premises SQL Server, supporting SQL Agent, SSIS, Cross-DB Query, and Linked Server — the first-choice migration target. SQL Server on Azure VM (IaaS): full-feature SQL Server with OS-level access, your choice of SQL Server version, and Windows/Linux authentication, but you manage OS patches and SQL upgrades yourself. Decision: new SaaS web apps go to SQL DB, full lift-and-shift from on-premises SQL Server goes to SQL MI, and full control or SSAS-class features go to SQL on VM.

How does compatibility differ between SQL DB and SQL MI?

Compatibility with on-premises SQL Server ranks SQL on VM (100%) > SQL MI (95%) > SQL DB (80%). SQL on VM is fully compatible, including OS-level control. SQL MI offers instance-level compatibility and supports most SQL Server engine features (SQL Agent, SSIS Runtime, Cross-database Query, Linked Server, CLR, Service Broker; Filestream is limited), but OS-level operations are blocked and SSAS/SSRS are unsupported (you build those separately). SQL DB is single-database compatible, with many legacy features (SQL Agent, Cross-database Query) constrained. For migrations from on-premises SQL Server, MI is the default choice — code changes are minimal. For greenfield builds that can live within the feature constraints, SQL DB wins on cost and operational simplicity.

What is the difference between General Purpose, Business Critical, and Hyperscale tiers?

Service tiers shared by SQL DB and MI. General Purpose (GP): Premium SSD backed, general-purpose workloads, cheapest, 99.99% SLA. Business Critical (BC): Local SSD plus Always On AG, low latency and high availability, supports Zone Redundancy, 99.995% SLA, roughly 2x the cost of GP. Hyperscale (HS): handles 100 TB+ databases, uses a different architecture (Log Service + Compute + Page Server), up to 4 read replicas, 99.99% SLA, fast snapshot-based backups. Decision: standard web apps go to GP, low-latency mission-critical production goes to BC, and very large databases (10 TB+) go to HS. SQL MI supports GP and BC; SQL DB supports all three (GP / BC / HS).

What is the difference between the DTU and vCore pricing models?

Azure SQL DB billing units. DTU (Database Transaction Unit) model: an abstract unit bundling CPU, memory, and I/O — you pick a tier (Basic / Standard / Premium) and a DTU level (S0 to S12, P1 to P15). It's simple and budget-friendly, but the resource breakdown is opaque. vCore model (recommended): you specify CPU cores directly and tune memory, storage, and I/O independently — far more flexible, with Reserved Capacity and Hybrid Benefit support, and Hyperscale is vCore-only. As of 2026, Microsoft recommends the vCore model and new projects should use vCore. The DTU model survives only for legacy maintenance, and is rarely the right choice for new deployments.

How should you design HADR (high availability and disaster recovery)?

HADR features shared by SQL DB and MI: 1) Active Geo-replication (DB-level, up to 4 read secondaries, RPO 5 seconds); 2) Auto-failover Group (cross-region failover, RPO 5 seconds, RTO 1 hour, bulk failover of multiple databases — the recommended pattern); 3) Zone Redundant configuration (AZ redundancy for BC / Premium, no extra cost); 4) Long-term Retention (LTR, up to 10 years of backup retention); 5) Continuous Backup with Point-in-time Restore (PITR, 7-35 days). SQL on VM adds Always On Availability Groups (AG) and Failover Cluster Instance (FCI). The standard production mission-critical recipe is Auto-failover Group + Zone Redundant + LTR + PITR. Auto-failover Group is required to guarantee service continuity during a regional outage.

How do the costs compare for a mid-size production workload?

Approximate monthly cost for a typical mid-size production setup (4 vCores, 100 GB storage, GP tier, Tokyo region, pay-as-you-go, no Hybrid Benefit): SQL Database (vCore, GP, 4 vCore) around 70,000 JPY; Managed Instance (GP, 4 vCore) around 90,000 JPY (more than SQL DB because of the operational simplicity premium); SQL Server on Azure VM (D4s_v5 + Enterprise Edition + Premium SSD) around 220,000 JPY (VM + Windows + SQL Server licenses). Applying Hybrid Benefit drops SQL on VM to roughly 120,000 JPY. Reserved Capacity (1-3 years) gives 15-55% off across all services. The cost ranking is SQL DB <= SQL MI << SQL on VM (you pay extra for full features). Adding Auto-failover Group or Zone Redundant configurations pushes costs higher still, so right-sizing to actual requirements matters.

What are the security best practices?

Key controls: 1) Microsoft Entra ID authentication (phase out SQL authentication); 2) Managed Identity for app authentication (never put passwords in connection strings); 3) Transparent Data Encryption (TDE) on by default, with Customer-Managed Keys (CMK) via Key Vault; 4) Always Encrypted for sensitive columns (data stays opaque even on the Azure side); 5) Dynamic Data Masking to mask sensitive data; 6) Row-level Security for row-scoped access control; 7) Microsoft Defender for SQL (threat detection and Vulnerability Assessment); 8) Auditing enabled and shipped to Log Analytics, Storage, or Event Hubs; 9) Network isolation via Private Endpoint or Service Endpoint, with Public Access disabled; 10) Azure SQL Auditing retention of 365+ days for compliance. Production deployments need all of these controls in combination.

Which certifications cover this area?

DP-300 (Database Administrator Associate) is the headline exam — it covers SQL DB, MI, and SQL on VM in depth. AZ-104 (Administrator) Domain 3 covers SQL on VM basics, AZ-305 (Solutions Architect Expert) covers platform selection from an architect's lens, AZ-204 (Developer Associate, retiring 2026-07) covers Azure SQL DB from the application developer's perspective, DP-700 (Fabric Data Engineer) covers analytical data integration, SC-300 (Identity Admin) covers Entra ID authentication integration, and SC-100 (Cybersecurity Architect Expert) covers data protection architecture. See the Azure Data Engineer / Architect career roadmaps for the full path.

Related Articles and Deep Dives

DP-300 完全ガイド|Microsoft Azure Database Administrator Associate 出題範囲・学習リソース・合格戦略【2026 年版】

Microsoft Certified: Azure Database Administrator Associate (DP-300) の完全ガイド。7 ドメインの出題範囲、Azure SQL Database / Managed Instance / SQL on VM の使い分け、HADR / 自動化 / セキュリティ実装、3-4 ヶ月の合格ロードマップ、renewal assessment 更新法、DP-700 / AZ-305 への展開ルートを日本語で網羅。

Azure セキュリティエンジニア キャリアロードマップ|SC-900 → SC-200/300/400 → SC-100 シニアへの道【2026 年版】

Azure セキュリティエンジニアになるための認定取得ロードマップ完全版。SC-900 → SC-200/300/400 のいずれか → SC-100 / SC-500 の王道ルート、ロール別の優先順序、CISSP との二刀流戦略、SC-500 (旧 AZ-500 後継、2026-09 GA 予定) の動向、10-15 ヶ月の学習プラン、年収レンジまで日本語で網羅。

Azure Managed Identity vs Service Principal 完全比較|認証パターンの選定と実装ベストプラクティス【2026 年版】

Azure の認証エンティティ Managed Identity と Service Principal を完全比較。System-assigned / User-assigned の使い分け、Client Secret vs Certificate vs Workload Identity Federation の選定、AKS Workload Identity、Azure サービス対応状況、関連認定試験 (SC-300 / AZ-204 / AZ-400) を日本語で網羅。実装パターン集付き。

Azure SQL Database vCore モデル詳細設計|Compute Tier・Service Tier・Read Scale-out・Reserved Capacity【2026 年版】

Azure SQL Database の vCore モデルを詳細解説。Provisioned vs Serverless Compute Tier、General Purpose / Business Critical / Hyperscale の選定、Read Scale-out、Auto-failover Group、Reserved Capacity と Hybrid Benefit でのコスト最適化、Backup と Long-term Retention 戦略、関連認定試験 (DP-300 / AZ-305) を日本語で網羅。

Technical content in this article is based on the Azure SQL Documentation. This article is not an official Microsoft Corporation product and has no affiliation or sponsorship relationship with Microsoft. Microsoft, Azure, and SQL Server are trademarks of the Microsoft group of companies. Information reflects official sources as of May 24, 2026. Always verify the latest details on official pages.

Check what you learned with practice questions

Practice with certification-focused question sets

Visit the Azure exam prep hub
Author

NicheeLab Editorial Team

NicheeLab editorial team focused on data engineering and cloud certification learning. Content is structured around practical study needs and official exam domains.


Related articles
Azure

AZ-900 Azure Fundamentals: Complete Exam Guide (2026)

Pass AZ-900 — cloud concepts, Azure architecture, management...

Azure

Azure Certification Roadmap: Which Cert to Take Next (2026)

Choose your Azure certification path — Fundamentals, Associa...

Azure

AI-901 Azure AI Fundamentals (Beta): Complete Guide (2026)

Pass AI-901 — Microsoft Foundry, generative AI, responsible ...

Azure

Microsoft Entra ID Fundamentals for Azure Certs (2026)

Entra ID basics every cert candidate needs — tenants, identi...

Azure

DP-900 Azure Data Fundamentals: Complete Guide (2026)

Pass DP-900 — relational, non-relational, analytics, Power B...

Browse all Azure articles (104)
© 2026 NicheeLab All rights reserved.