Azure SQL & Open-Source Databases
SQL Server on Azure VMs · Azure SQL Managed Instance · Azure SQL Database · single database · elastic pool · Azure Database for MySQL · Azure Database for PostgreSQL
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
The Azure SQL family
Azure SQL is a collective term for a family of Microsoft SQL Server based database services in Azure. Three services belong to it.
| SQL Server on Azure VMs | Azure SQL Managed Instance | Azure SQL Database | |
|---|---|---|---|
| Type of cloud service | IaaS | PaaS | PaaS |
| SQL Server compatibility | Fully compatible with on-premises installations; lift and shift without change | Near-100% compatibility with SQL Server | Most core database-level capabilities; some features an on-premises application depends on might not be available |
| Management | You manage the operating system, SQL Server updates, configuration, backups and other maintenance | Fully automated updates, backups and recovery | Fully automated updates, backups and recovery |
| Architecture | SQL Server instances in a virtual machine; each instance can support multiple databases | Each managed instance can support multiple databases; instance pools share resources across smaller instances | A single database on a logical server, or an elastic pool shared by several databases |
| Typical use | Migrate or extend an on-premises SQL Server solution and keep full control of server and database configuration | Most cloud migrations, especially with minimal changes to existing applications | New cloud solutions, or applications with minimal instance-level dependencies |
Rule of thumb: need full control of the operating system and instance, choose a VM. Need near-100% SQL Server compatibility without managing the server, choose Managed Instance. Building something new or with few instance-level dependencies, choose SQL Database.
SQL Server on Azure Virtual Machines
- A virtual machine running in Azure with an installation of SQL Server. Because it uses a VM, it is an infrastructure-as-a-service (IaaS) solution.
- You have full administrative rights over the DBMS and operating system. Using a VM doesn't eliminate the need to administer your DBMS as carefully as you would on-premises.
- Suitable for migrations and for applications that need operating system features that might be unsupported at the PaaS level.
- Lift-and-shift ready for existing applications; also used to extend on-premises applications to the cloud in hybrid deployments.
- The availability SLA covers the VMs, not the SQL Server processes that run on them.
Azure SQL Managed Instance
- A PaaS option with near-100% compatibility with on-premises SQL Server instances. It abstracts the underlying hardware and operating system.
- It automates backups, software patching and database monitoring, but you control security and resource allocation for your databases.
- You can create multiple databases on the same instance and have instance-level control similar to an on-premises SQL Server instance.
- Higher compatibility with on-premises SQL Server than Azure SQL Database, so it is the better choice for a solution with advanced features that must move with minimal changes.
- Supports SQL Server Database engine logins and logins integrated with Microsoft Entra ID.
- To check compatibility, run an Azure SQL assessment by using Azure Migrate or SQL Server enabled by Azure Arc.
Azure SQL Database
A fully managed, highly scalable PaaS database service designed for the cloud. You create a logical server and deploy your databases on it. It is a low-cost option that requires minimal administration but isn't fully compatible with on-premises SQL Server installations.
| Option | What it is |
|---|---|
| Single database | One database on a logical server. By default resources are preallocated and billed per hour. |
| Serverless compute tier | Compute scales automatically within a range you configure, based on workload demand. In the General Purpose service tier the database can pause automatically when inactive. |
| Elastic pool | Several databases share the pool's resources (memory, storage, processing power). Useful when resource needs vary over time; can reduce costs. |
| Hyperscale service tier | Very large databases, up to 128 TB, with rapid on-demand scaling and fast backup and restore regardless of data size. |
| Free tier | Monthly limits of 100,000 vCore seconds of serverless compute and 32 GB of storage per database. |
- The logical server is the central administrative point for databases, logins, firewall rules, auditing rules, threat detection policies and failover groups.
- Updates and patches to the SQL Server software are applied automatically.
- Enterprise-class availability SLA that increases when you enable zone redundancy.
- Point-in-time restore recovers a database to the state it was in at any point in the past.
- Microsoft Defender for SQL provides vulnerability assessment and Advanced Threat Protection. Auditing writes database events to an audit log, for example in an Azure storage account.
- Encryption protects data at rest and in motion.
Azure services for open-source databases
Azure also offers PaaS services for MySQL and PostgreSQL. The primary reason is to let organizations that use them in on-premises apps move to Azure quickly, without significant application changes.
| Azure Database for MySQL | Azure Database for PostgreSQL | |
|---|---|---|
| Based on | MySQL Community Edition | PostgreSQL, an object-relational database |
| Engine traits | Popular open source relational database for LAMP stack apps | Relational tables plus custom data types with nonrelational properties; extensible; stores geometric data such as lines, circles and polygons; procedural language PL/pgSQL |
| Deployment option | Flexible Server: fully managed, more granular control and flexibility over management functions and configuration | Flexible Server: fully managed, a high level of control and server configuration customizations |
| Backups | Automatic; point-in-time restore up to 35 days (seven days by default) | Same availability, performance, scaling, security and administrative benefits as the MySQL service |
| Limits vs on-premises | Certain operations aren't available (mostly security and administration, which Azure manages) | Some features aren't available, mostly extensions; a supported set of extensions and modules exists |
Both services are managed and maintained by Microsoft, so some server-focused functionality, such as server backup and restore from tools like pgAdmin, isn't available to you.
Exam Tips
Tick each tip once you can answer it without looking.
“Azure SQL family: which service is IaaS?” → SQL Server on Azure Virtual Machines.. Trap: Managed Instance and SQL Database are both PaaS.
“Lift and shift an on-premises SQL Server with minimal changes, no server management” → Azure SQL Managed Instance (near-100% compatibility, PaaS).. Trap: SQL Server on VMs also lifts and shifts but you manage the OS and updates; SQL Database isn't fully compatible.
“Brand-new cloud application, minimal administration, low cost” → Azure SQL Database.. Trap: It isn't fully compatible with on-premises SQL Server, so don't pick it when an app needs instance-level features.
“Need full control of the operating system and SQL Server configuration” → SQL Server on Azure VMs.. Trap: PaaS options abstract the operating system.
“Who patches and backs up SQL Server on a VM?” → You do: all aspects, including OS and SQL Server updates, configuration and backups.. Trap: PaaS options automate updates, backups and recovery.
“Several databases with varying loads should share resources to cut cost” → Azure SQL Database elastic pool.. Trap: A single database has its own preallocated resources; it does not share them with other databases.
“SQL Database compute scales by workload and can pause when idle” → Serverless compute tier (pause in General Purpose).. Trap: The default is preallocated resources billed per hour.
“Very large database up to 128 TB with fast backup and restore” → Hyperscale service tier of Azure SQL Database.. Trap: Elastic pools share resources; they are not the large-database tier.
“The logical server in Azure SQL Database” → Central administrative point for databases, logins, firewall rules, auditing rules and failover groups.. Trap: It is a logical construct, not a VM you manage.
“Recover a SQL Database to any earlier moment” → Point-in-time restore.. Trap: Auditing records events; it does not restore data.
“Vulnerability assessment and Advanced Threat Protection for SQL” → Microsoft Defender for SQL.. Trap: Auditing tracks database events and writes them to an audit log.
“Which Azure service runs MySQL as PaaS?” → Azure Database for MySQL (based on MySQL Community Edition).. Trap: Azure SQL Database is for SQL Server based engines, not MySQL.
“Object-relational database with custom types, geometric data and PL/pgSQL” → PostgreSQL (Azure Database for PostgreSQL).. Trap: MySQL is the LAMP-stack relational database.
“MySQL point-in-time restore window” → Up to 35 days, seven days by default.. Trap: Seven days is the default, not the maximum.
“Why Azure offers MySQL and PostgreSQL services” → To move on-premises apps to Azure quickly without significant application changes.. Trap: The reason given is quick migration with minimal application change, not new engine features.
“Flexible Server deployment option (MySQL or PostgreSQL)” → Fully managed, with more granular control and configuration flexibility and cost optimization controls.. Trap: On SQL Server on Azure VMs, by contrast, you manage the server yourself.
Sources
Checked against Microsoft Learn on November 13, 2026.