Azure SQL Managed Instance frequently asked questions (FAQ)

APPLIES TO: Azure SQL Managed Instance

This article contains the most common questions about Azure SQL Managed Instance.

Supported features

Where can I find a list of features supported on SQL Managed Instance?

For a list of supported features in SQL Managed Instance, see Azure SQL Managed Instance features.

For differences in syntax and behavior between Azure SQL Managed Instance and SQL Server, see T-SQL differences from SQL Server.

Technical specification, resource limits and other limitations

Where can I find technical characteristics and resource limits for SQL Managed Instance?

For available hardware generation characteristics, see Technical differences in hardware generations. For available service tiers and their characteristics, see Technical differences between service tiers.

What service tier am I eligible for?

Any customer is eligible for any service tier. However, if you want to exchange your existing licenses for discounted rates on Azure SQL Managed Instance by using Azure Hybrid Benefit, bear in mind that SQL Server Enterprise Edition customers with Software Assurance are eligible for the General Purpose or Business Critical performance tiers and SQL Server Standard Edition customers with Software Assurance are eligible for the General Purpose performance tier only. For more details, see Specific rights of the AHB.

What subscription types are supported for SQL Managed Instance?

For the list of supported subscription types, see Supported subscription types.

Which Azure regions are supported?

Managed instances can be created in most of the Azure regions; see Supported regions for SQL Managed Instance. If you need managed instance in a region that is currently not supported, send a support request via the Azure portal.

Are there any quota limitations for SQL Managed Instance deployments?

Managed instance has two default limits: limit on the number of subnets you can use and a limit on the number of vCores you can provision. Limits vary across the subscription types and regions. For the list of regional resource limitations by subscription type, see table from Regional resource limitation. These are soft limits that can be increased on demand. If you need to provision more managed instances in your current regions, send a support request to increase the quota using the Azure portal. For more information, see Request quota increases for Azure SQL Database.

Can I increase the number of databases limit (100) on my managed instance on demand?

No, and currently there are no committed plans to increase the number of databases on SQL Managed Instance.

Where can I migrate if I have more than 8TB of data?

You can consider migrating to other Azure flavors that suit your workload: Azure SQL Database Hyperscale or SQL Server on Azure Virtual Machines.

Where can I migrate if I have specific hardware requirements such as larger RAM to vCore ratio or more CPUs?

You can consider migrating to SQL Server on Azure Virtual Machines or Azure SQL Database memory/cpu optimized.

Known issues and defects

Where can I find known issues and defects?

For product defects and known issues, see Known issues.

New features

Where can I find latest features and the features in public preview?

For new and preview features, see Release notes.

Create, update, delete or move SQL Managed Instance

How can I provision SQL Managed Instance?

You can provision an instance from Azure portal, PowerShell, Azure CLI and ARM templates.

Can I provision Managed Instances in an existing subscription?

Yes, you can provision a Managed Instance in an existing subscription if that subscription belongs to the Supported subscription types.

Why couldn't I provision a Managed Instance in the subnet which name starts with a digit?

This is a current limitation on underlying component that verifies subnet name against the regex ^[a-zA-Z_][^\/:*?"<>|`'^]*(?<![.\s])$. All names that pass the regex and are valid subnet names are currently supported.

How can I scale my managed instance?

You can scale your managed instance from Azure portal, PowerShell, Azure CLI or ARM templates.

Can I move my Managed Instance from one region to another?

Yes, you can. For instructions, see Move resources across regions.

How can I delete my Managed Instance?

You can delete Managed Instances via Azure portal, PowerShell, Azure CLI or Resource Manager REST APIs.

How much time does it take to create or update an instance, or to restore a database?

Expected time to create a new managed instance or to change service tiers (vCores, storage), depends on several factors. See Management operations.

Naming conventions

Can a managed instance have the same name as a SQL Server on-premises instance?

Changing a managed instance name is not supported.

Can I change DNS zone prefix?

Yes, Managed Instance default DNS zone can be changed.

To use another DNS zone instead of the default, for example,

  • Use CliConfig to define an alias. The tool is just a registry settings wrapper, so it can be done using group policy or a script as well.
  • Use CNAME with the TrustServerCertificate=true option.

Migration options

How can I migrate from Azure SQL Database single or elastic pool to SQL Managed Instance?

Managed instance offers the same performance levels per compute and storage size as other deployment options of Azure SQL Database. If you want to consolidate data on a single instance, or you simply need a feature supported exclusively in managed instance, you can migrate your data by using export/import (BACPAC) functionality. Here are other ways to consider for SQL Database migration to SQL Managed Instance:

How can I migrate my instance database to a single Azure SQL Database?

One option is to export a database to BACPAC and then import the BACPAC file. This is the recommended approach if your database is smaller than 100 GB.

Transactional replication can be used if all tables in the database have primary keys and there are no In-memory OLTP objects in the database.

Native COPY_ONLY backups taken from managed instance cannot be restored to SQL Server because managed instance has a higher database version compared to SQL Server. For more details, see Copy-only backup.

How can I migrate my SQL Server instance to SQL Managed Instance?

To migrate your SQL Server instance, see SQL Server to Azure SQL Managed Instance Guide.

How can I migrate from other platforms to SQL Managed Instance?

For migration information about migrating from other platforms, see Azure Database Migration Guide.

Switch hardware generation

Can I switch my managed instance hardware generation between Gen 4 and Gen 5 online?

Automated online switching from Gen4 to Gen5 is possible if Gen5 hardware is available in the region where your managed instance is provisioned. In this case, you can check vCore model overview page explaining how to switch between hardware generations.

This is a long-running operation as a new managed instance will be provisioned in the background and databases automatically transferred between the old and new instance with a quick failover at the end of the process.

Note: Gen4 hardware is being phased out and is no longer available for new deployments. All new databases must be deployed on Gen5 hardware. Switching from Gen5 to Gen4 is also not available.


How can I compare Managed Instance performance to SQL Server performance?

For a performance comparison between managed instance and SQL Server, a good starting point is Best practices for performance comparison between Azure SQL managed instance and SQL Server article.

What causes performance differences between Managed Instance and SQL Server?

See Key causes of performance differences between SQL managed instance and SQL Server. For more information about the log file size impact on General Purpose Managed Instance performance , see Impact of log file size on General Purpose.

How do I tune performance of my managed instance?

You can optimize the performance of your managed instance by:

How can I further tune performance of my General Purpose managed instance?

To improve performance on a General Purpose instance, consider increasing data file size. To optimize storage performance on a General Purpose instance, see Storage best practice guidelines for General Purpose tier.

My query duration is too long. How can I analyze wait statistics on my managed instance?

See Analyzing wait statistics on SQL Managed Instance. Wait statistics are information that might help you understand why the query duration is long and identify the queries that are waiting for something in database engine.

Monitoring, Metrics and Alerts

What are the options for monitoring and alerting for my managed instance?

For all possible options to monitor and alert on SQL Managed Instance consumption and performance, see Azure SQL Managed Instance monitoring options blog post. For the real-time performance monitoring for SQL MI, see Real-time performance monitoring for Azure SQL DB Managed Instance.

How can I monitor performance of my managed instance?

See Monitor your SQL deployments with SQL insights.

How can I monitor the real-time performance of my managed instance?

See Real-time performance monitoring for Azure SQL DB Managed Instance.

Can I use SQL Profiler for performance tracking?

Yes, SQL Profiler is supported or SQL Managed Instance. For more details, see SQL Profiler.

Are Database Advisor and Query Performance Insight supported for Managed Instance databases?

No, they are not supported. You can use DMVs and Query Store together with SQL Profiler and XEvents to monitor your databases.

How can I monitor CPU usage on my managed instance?

See Monitor CPU usage on your SQL Server and Azure SQL.

Can I create metric alerts on SQL Managed Instance?

Yes. For instructions, see Create alerts for SQL Managed Instance. For more tips and tricks, see the blog.

Can I create metric alerts on a database in managed instance?

You cannot, alerting metrics are available for managed instance only. Alerting metrics for individual databases in managed instance are not available.

Storage size

What is the maximum storage size for SQL Managed Instance?

Storage size for SQL Managed Instance depends on the selected service tier (General Purpose or Business Critical). For storage limitations of these service tiers, see Service tier characteristics.

What is the minimum storage size available for a managed instance?

The minimum amount of storage available in an instance is 32 GB. Storage can be added in increments of 32 GB up to the maximum storage size. First 32GB are free of charge.

Can I increase storage space assigned to an instance, independently from compute resources?

Yes, you can purchase add-on storage, independently from compute, to some extent. See Max instance reserved storage in the Table.

How can I optimize my storage performance in General Purpose service tier?

To optimize storage performance, see Storage best practices in General Purpose.

Backup and restore

Is the backup storage deducted from my managed instance storage?

No, backup storage is not deducted from your managed instance storage space. The backup storage is independent from the instance storage space and it is not limited in size. Backup storage is limited by the time period to retain the backup of your instance databases, configurable up to 35 days. For details, see Automated backups.

How can I see when automated backups are made on my managed instance?

To track when automated backups have been performed on Managed Instance, see How to track the automated backup for an Azure SQL Managed Instance.

Is on-demand backup supported?

Yes, you can create a copy-only full backup in their Azure Blob Storage, but it will only be restorable in Managed Instance. For details, see Copy-only backup. However, copy-only backup is impossible if the database is encrypted by service-managed TDE since the certificate used for encryption is inaccessible. In such case, use point-in-time-restore feature to move the database to another SQL Managed Instance, or switch to customer-managed key.

Is native restore (from .bak files) to Managed Instance supported?

Yes, it is supported and available for SQL Server 2005+ versions. To use native restore, upload your .bak file to Azure blob storage and execute T-SQL commands. For more details, see Native restore from URL.

Business continuity

Are my system databases replicated to the secondary instance in a failover group?

System databases are not replicated to the secondary instance in a failover group. Therefore, scenarios that depend on objects from the system databases will be impossible on the secondary instance unless the objects are manually created on the secondary. For workaround, see Enable scenarios dependent on the object from the system databases.  

Networking requirements

What are the current inbound/outbound NSG constraints on the Managed Instance subnet?

The required NSG and UDR rules are documented here, and automatically set by the service. Please keep in mind that these rules are just the ones we need for maintaining the service. To connect to managed instance and use different features you will need to set additional, feature specific rules, that you need to maintain.

How can I set inbound NSG rules on management ports?

SQL Managed Instance is responsible for setting rules on management ports. This is achieved through functionality named service-aided subnet configuration. This is to ensure uninterrupted flow of management traffic in order to fulfill an SLA.

Can I get the source IP ranges that are used for the inbound management traffic?

Yes. You could analyze traffic coming through your networks security group by configuring Network Watcher flow logs.

Can I set NSG to control access to the data endpoint (port 1433)?

Yes. After a Managed Instance is provisioned you can set NSG that controls inbound access to the port 1433. It is advised to narrow its IP range as much as possible.

Can I set the NVA or on-premises firewall to filter the outbound management traffic based on FQDNs?

No. This is not supported for several reasons:

  • Routing traffic that represent response to inbound management request would be asymmetric and could not work.
  • Routing traffic that goes to storage would be affected by throughput constraints and latency so this way we won't be able to provide expected service quality and availability.
  • Based on experience, these configurations are error prone and not supportable.

Can I set the NVA or firewall for the outbound non-management traffic?

Yes. The simplest way to achieve this is to add 0/0 rule to a UDR associated with managed instance subnet to route traffic through NVA.

How many IP addresses do I need for a Managed Instance?

Subnet must have sufficient number of available IP addresses. To determine VNet subnet size for SQL Managed Instance, see Determine required subnet size and range for Managed Instance.

What if there are not enough IP addresses for performing instance update operation?

In case there are not enough IP addresses in the subnet where your managed instance is provisioned, you will have to create a new subnet and a new managed instance inside it. We also suggest that the new subnet is created with more IP addresses allocated so future update operations will avoid similar situations. After the new instance is provisioned, you can manually back up and restore data between the old and new instances or perform cross-instance point-in-time restore.

Do I need an empty subnet to create a Managed Instance?

No. You can use either an empty subnet or a subnet that already contains Managed Instance(s).

Can I change the subnet address range?

Not if there are Managed Instances inside. This is an Azure networking infrastructure limitation. You are only allowed to add additional address space to an empty subnet.

Can I move my managed instance to another subnet?

No. This is a current Managed Instance design limitation. However, you can provision a new instance in another subnet and manually back up and restore data between the old and the new instance or perform cross-instance point-in-time restore.

Do I need an empty virtual network to create a Managed Instance?

This is not required. You can either Create a virtual network for Azure SQL Managed Instance or Configure an existing virtual network for Azure SQL Managed Instance.

Can I place a Managed Instance with other services in a subnet?

No. Currently we do not support placing Managed Instance in a subnet that already contains other resource types.


Can I connect to my managed instance using IP address?

No, this is not supported. A Managed Instance's host name maps to the load balancer in front of the Managed Instance's virtual cluster. As one virtual cluster can host multiple Managed Instances, a connection cannot be routed to the proper Managed Instance without specifying its name. For more information on SQL Managed Instance virtual cluster architecture, see Virtual cluster connectivity architecture.

Can my managed instance have a static IP address?

This is currently not supported.

In rare but necessary situations, we might need to do an online migration of a managed instance to a new virtual cluster. If needed, this migration is because of changes in our technology stack aimed to improve security and reliability of the service. Migrating to a new virtual cluster results in changing the IP address that is mapped to the managed instance host name. The managed instance service doesn't claim static IP address support and reserves the right to change it without notice as a part of regular maintenance cycles.

For this reason, we strongly discourage relying on immutability of the IP address as it could cause unnecessary downtime.

Does Managed Instance have a public endpoint?

Yes. Managed Instance has a public endpoint that is by default used only for Service Management, but a customer may enable it for data access as well. For more details, see Use SQL Managed Instance with public endpoints. To configure public endpoint, go to Configure public endpoint in SQL Managed Instance.

How does Managed Instance control access to the public endpoint?

Managed Instance controls access to the public endpoint at both the network and application level.

Management and deployment services connect to a managed instance by using a management endpoint that maps to an external load balancer. Traffic is routed to the nodes only if it's received on a predefined set of ports that only the managed instance's management components use. A built-in firewall on the nodes is set up to allow traffic only from Microsoft IP ranges. Certificates mutually authenticate all communication between management components and the management plane. For more details, see Connectivity architecture for SQL Managed Instance.

Could I use the public endpoint to access the data in Managed Instance databases?

Yes. The customer will need to enable public endpoint data access from Azure portal / PowerShell / ARM and configure NSG to lock down access to the data port (port number 3342). For more information, see Configure public endpoint in Azure SQL Managed Instance and Use Azure SQL Managed Instance securely with public endpoint.

Can I specify a custom port for SQL data endpoint(s)?

No, this option is not available. For private data endpoint, Managed Instance uses default port number 1433 and for public data endpoint, Managed Instance uses default port number 3342.

Express Route circuit peering is the preferred way to do that. Global virtual network peering is supported with the limitation described in the note below.


On 9/22/2020 we announced global virtual network peering for newly created virtual clusters. That means that global virtual network peering is supported for SQL Managed Instances created in empty subnets after the announcement date, as well for all the subsequent managed instances created in those subnets. For all the other SQL Managed Instances peering support is limited to the networks in the same region due to the constraints of global virtual network peering. See also the relevant section of the Azure Virtual Networks frequently asked questions article for more details.

If Express Route circuit peering and global virtual network peering is not possible, the only other option is to create Site-to-Site VPN connection (Azure portal, PowerShell, Azure CLI).

Mitigate data exfiltration risks

How can I mitigate data exfiltration risks?

To mitigate any data exfiltration risks, customers are recommended to apply a set of security settings and controls:

  • Turn on Transparent Data Encryption (TDE) on all databases.
  • Turn off Common Language Runtime (CLR). This is recommended on-premises as well.
  • Use Azure Active Directory (Azure AD) authentication only.
  • Access the instance with a low-privileged DBA account.
  • Configure JIT jumpbox access for the sysadmin account.
  • Turn on SQL auditing, and integrate it with alerting mechanisms.
  • Turn on Threat Detection from the Azure Defender for SQL suite.


Can I configure a custom DNS for SQL Managed Instance?

Yes. See How to configure a Custom DNS for Azure SQL Managed Instance.

Can I do DNS refresh?

Yes. See Synchronize virtual network DNS servers setting on SQL Managed Instance virtual cluster.

Change time zone

Can I change the time zone for an existing managed instance?

Time zone configuration can be set when a managed instance is provisioned for the first time. Changing the time zone of an existing managed instance isn't supported. For details, see Time zone limitations.

Workarounds include creating a new managed instance with the proper time zone and then either performing a manual backup and restore, or what we recommend, performing a cross-instance point-in-time restore.

Security and database encryption

Is the sysadmin server role available for SQL Managed Instance?

Yes, customers can create logins that are members of the sysadmin role. Customers who assume the sysadmin privilege are also assuming responsibility for operating the instance, which can negatively impact the SLA commitment. To add login to sysadmin server role, see Azure AD authentication.

Is Transparent Data Encryption supported for SQL Managed Instance?

Yes, Transparent Data Encryption is supported for SQL Managed Instance. For details, see Transparent Data Encryption for SQL Managed Instance.

Can I leverage the "bring your own key" model for TDE?

Yes, Azure Key Vault for BYOK scenario is available for Azure SQL Managed Instance. For details, see Transparent Data Encryption with customer-managed key.

Can I migrate an encrypted SQL Server database?

Yes, you can. To migrate an encrypted SQL Server database, you need to export and import your existing certificates into Managed Instance, then take a full database backup and restore it in Managed Instance.

You can also use Azure Database Migration Service to migrate the TDE encrypted databases.

How can I configure TDE protector rotation for SQL Managed Instance?

You can rotate TDE protector for Managed Instance using Azure Cloud Shell. For instructions, see Transparent Data Encryption in SQL Managed Instance using your own key from Azure Key Vault.

Can I restore my encrypted database to SQL Managed Instance?

Yes, you don't need to decrypt your database to restore it to SQL Managed Instance. You do need to provide a certificate/key used as the encryption key protector on the source system to SQL Managed Instance to be able to read data from the encrypted backup file. There are two possible ways to do it:

  • Upload certificate-protector to SQL Managed Instance. It can be done using PowerShell only. The sample script describes the whole process.
  • Upload asymmetric key-protector to Azure Key Vault and point SQL Managed Instance to it. This approach resembles bring-your-own-key (BYOK) TDE use case that also uses Key Vault integration to store the encryption key. If you don't want to use the key as an encryption key protector, and just want to make the key available for SQL Managed Instance to restore encrypted database(s), follow instructions for setting up BYOK TDE, and don't check the checkbox Make the selected key the default TDE protector.

Once you make the encryption protector available to SQL Managed Instance, you can proceed with the standard database restore procedure.

Purchasing models and benefits

What purchasing models are available for SQL Managed Instance?

SQL Managed Instance offers vCore-based purchasing model.

What cost benefits are available for SQL Managed Instance?

You can save costs with the Azure SQL benefits in the following ways:

  • Maximize existing investments in on-premises licenses and save up to 55 percent with Azure Hybrid Benefit.
  • Commit to a reservation for compute resources and save up to 33 percent with Reserved Instance Benefit. Combine this with Azure Hybrid benefit for savings up to 82 percent.
  • Save up to 55 percent versus list prices with Azure Dev/Test Pricing Benefit that offers discounted rates for your ongoing development and testing workloads.

Who is eligible for Reserved Instance benefit?

To be eligible for reserved Instance benefit, your subscription type must be an enterprise agreement (offer numbers: MS-AZR-0017P or MS-AZR-0148P) or an individual agreement with pay-as-you-go pricing (offer numbers: MS-AZR-0003P or MS-AZR-0023P). For more information about reservations, see Reserved Instance Benefit.

Is it possible to cancel, exchange or refund reservations?

You can cancel, exchange or refund reservations with certain limitations. For more information, see Self-service exchanges and refunds for Azure Reservations.

Billing for Managed Instance and backup storage

What are the SQL Managed Instance pricing options?

To explore Managed Instance pricing options, see Pricing page.

How can I track billing cost for my managed instance?

You can do so using the Azure Cost Management solution. Navigate to Subscriptions in the Azure portal and select Cost Analysis.

Use the Accumulated costs option and then filter by the Resource type as microsoft.sql/managedinstances.

How much automated backups cost?

You get the equal amount of free backup storage space as the reserved data storage space purchased, regardless of the backup retention period set. If your backup storage consumption is within the allocated free backup storage space, automated backups on managed instance will have no additional cost for you, therefore will be free of charge. Exceeding the use of backup storage above the free space will result in costs of about $0.20 - $0.24 per GB/month in US regions, or see the pricing page for details for your region. For more details, see Backup storage consumption explained.

How can I monitor billing cost for my backup storage consumption?

You can monitor cost for backup storage via Azure portal. For instructions, see Monitor costs for automated backups.

How can I optimize my backup storage costs on the managed instance?

To optimize your backup storage costs, see Fine backup tuning on SQL Managed Instance.

Cost-saving use cases

Where can I find use cases and resulting cost savings with SQL Managed Instance?

SQL Managed Instance case studies:

To get a better understanding of the benefits, costs, and risks associated with deploying Azure SQL Managed Instance, there's also a Forrester study: The Total Economic Impact of Microsoft Azure SQL Database Managed Instance.

Password policy

What password policies are applied for SQL Managed Instance SQL logins?

SQL Managed Instance password policy for SQL logins inherits Azure platform policies that are applied to the VMs forming virtual cluster holding the managed instance. At the moment it is not possible to change any of these settings as these settings are defined by Azure and inherited by managed instance.


Azure platform can change policy requirements without notifying services relying on that policies.

What are current Azure platform policies?

Each login must set its password upon login and change its password after it reaches maximum age.

Policy Security Setting
Maximum password age 42 days
Minimum password age 1 day
Minimum password length 10 characters
Password must meet complexity requirements Enabled

Is it possible to disable password complexity and expiration in SQL Managed Instance on login level?

Yes, it is possible to control CHECK_POLICY and CHECK_EXPIRATION fields on login level. You can check current settings by executing following T-SQL command:

FROM sys.sql_logins

After that, you can modify specified login settings by executing :


(replace 'test' with desired login name and adjust policy and expiration values)

Service updates

What is the Root CA change for Azure SQL Database & SQL Managed Instance?

See Certificate rotation for Azure SQL Database & SQL Managed Instance.

What is a planned maintenance event for SQL Managed Instance?

See Plan for Azure maintenance events in SQL Managed Instance.

Azure feedback and support

Where can I leave my ideas for SQL Managed Instance improvements?

You can vote for a new Managed Instance feature or put a new improvement idea on voting on SQL Managed Instance Feedback Forum. This way you can contribute to the product development and help us prioritize our potential improvements.

How can I create Azure support request?

To learn how to create Azure support request, see How to create Azure support request.