You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Azure SQL Managed Instance is a fully managed deployment option for SQL Server that provides near-100% compatibility with the on-premises SQL Server engine. It is designed specifically for organisations that need to migrate existing SQL Server workloads to Azure without rewriting applications.
Azure SQL Database is excellent for new cloud-native applications, but some existing workloads rely on SQL Server features that Azure SQL Database does not support. SQL Managed Instance bridges this gap:
| Feature | Azure SQL Database | SQL Managed Instance |
|---|---|---|
| SQL Server Agent | Not available | Supported |
| Cross-database queries | Not available | Supported |
| CLR integration | Not available | Supported |
| Linked servers | Not available | Supported |
| Service Broker | Not available | Supported |
| Database mail | Not available | Supported |
| Native backup/restore | Not supported | Supported |
| VNet deployment | Firewall rules / Private Endpoint | Native VNet integration |
| Instance-scoped features | Limited | Full instance scope |
If your migration assessment identifies dependencies on any of these features, SQL Managed Instance is the recommended target.
SQL Managed Instance runs inside a managed virtual cluster within your Azure Virtual Network:
Your Virtual Network
|
|-- Managed Instance Subnet (dedicated, delegated to SQL MI)
|
|-- SQL Managed Instance
|-- Database A
|-- Database B
|-- Database C
|-- tempdb, master, msdb, model (system databases)
| Feature | Detail |
|---|---|
| Storage | Azure Premium Storage (remote) |
| Max storage | 16 TB |
| vCores | 4–80 |
| Availability | 99.99% SLA |
| Use case | Most business workloads |
| Feature | Detail |
|---|---|
| Storage | Local SSD |
| Max storage | 4 TB |
| vCores | 4–80 |
| Availability | 99.99% SLA |
| Built-in read replica | One free read-only replica |
| In-memory OLTP | Supported |
| Use case | Low-latency, high-throughput workloads |
The simplest migration path for many workloads:
-- Restore from Azure Blob Storage
RESTORE DATABASE MyDatabase
FROM URL = 'https://mystorageaccount.blob.core.windows.net/backups/MyDatabase.bak'
WITH MOVE 'MyDatabase' TO '/var/opt/mssql/data/MyDatabase.mdf',
MOVE 'MyDatabase_log' TO '/var/opt/mssql/data/MyDatabase_log.ldf';
For online migrations with minimal downtime:
An alternative for online migration:
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.