Azure SQL Managed Instance Design

Azure SQL Managed Instance Design

Watch the video to deepen your understanding.

Subscribe

Complete the full lesson to earn 25 points

Work through each section, then tap “Mark as Complete” on the last one.

Section 1 of 3

✦ Skip the page breaks and see fewer ads — read each lesson on a single page with Pro

Lesson: Azure SQL Managed Instance Design

1. Introduction: What and Why?

Azure SQL Managed Instance (SQL MI) is a fully managed, intelligent, and scalable database service that provides near 100% compatibility with the latest SQL Server (Enterprise Edition) database engine.

Why choose SQL Managed Instance? In many enterprise scenarios, moving to the cloud is hindered by "legacy" requirements. SQL MI is designed for organizations looking to migrate on-premises SQL Server workloads to the cloud with minimal application changes. It offers a "lift-and-shift" approach while providing the benefits of a Platform-as-a-Service (PaaS) model, such as automated patching, backups, and high availability, without the management overhead of a traditional Virtual Machine (VM).


2. Architectural Design Considerations

When designing a data storage solution using SQL MI, you must account for networking, storage performance, and instance configuration.

Virtual Network (VNet) Integration

Unlike Azure SQL Database, which is accessible via a public endpoint by default, SQL MI lives inside your own Virtual Network (VNet). This provides complete network isolation.

  • Subnet Requirements: The subnet must be dedicated to the Managed Instance and have no other resources.
  • Routing: You must configure User Defined Routes (UDR) to ensure the instance can communicate with Azure management services.

Storage Tiers and Performance

SQL MI offers two main hardware generations, Gen5 and Premium Series, with storage options ranging from general-purpose to business-critical:

  1. General Purpose: Designed for typical business workloads. It uses remote Azure Premium Storage.
  2. Business Critical: Designed for mission-critical applications with low latency and high transaction rates. It uses local SSD storage, providing significantly higher IOPS and lower latency.

Practical Example: Provisioning Logic

When designing your infrastructure as code (IaC) using Bicep or Terraform, you must define the storage size and compute tier accurately to balance cost and performance.

resource managedInstance 'Microsoft.Sql/managedInstances@2021-11-01' = {
  name: 'sql-mi-prod-001'
  location: 'eastus'
  sku: {
    name: 'GP_Gen5'
    tier: 'GeneralPurpose'
  }
  properties: {
    vCores: 8
    storageSizeInGB: 512
    subnetId: resourceId('Microsoft.Network/virtualNetworks/subnets', 'vnet-name', 'mi-subnet')
    licenseType: 'BasePrice'
  }
}

Section 1 of 3
PrevNext