Update policy in Azure SQL Managed Instance

Applies to: Azure SQL Managed Instance

This article describes the update policy for Azure SQL Managed Instance, and how to modify it. The update policy is an instance setting that controls access to the latest SQL engine features in Azure.

Azure SQL Managed Instance offers the following two update policies:

  • SQL Server 2025 update policy: The instance can only use SQL engine features available in SQL Server 2025 because the internal database format is aligned with SQL Server 2025.
  • SQL Server 2022 update policy: The instance can only use SQL engine features available in SQL Server 2022 because the internal database format is aligned with SQL Server 2022.

Important

  • Regardless of the configured update policy, all instances continue receiving updates and features that don't require changes to the SQL engine, such as the following features: zone redundancy, and instance stop and start.
  • The SQL Server 2022 update policy is the default update policy for all existing and newly deployed instances.

SQL Server 2025 update policy

Note

The SQL Server 2025 update policy is currently in preview.

The SQL Server 2025 update policy aligns your database format with SQL Server 2025 (17.x).

When you use the SQL Server 2025 update policy, consider the following points:

  • Your internal database format stays aligned with SQL Server 2025 (17.x).
  • You receive all the latest updates available for SQL Server 2025 (17.x).
  • You can restore your database to SQL Server 2025 (17.x) from Azure SQL Managed Instance.
  • You can configure a link for real-time data replication, bidirectional failover, and disaster recovery between SQL Server 2025 (17.x) and Azure SQL Managed Instance.
  • The SQL Server 2025 update policy is available until the end of mainstream support of SQL Server 2025 (17.x), at which point, the update policy for instances with the SQL Server 2025 update policy automatically updates to the update policy that corresponds to the latest major SQL Server release available at that time.

SQL Server 2022 update policy

The SQL Server 2022 update policy aligns your database format with SQL Server 2022.

When you use the SQL Server 2022 update policy, consider the following points:

  • The SQL Server 2022 update policy is the default update policy for all existing and newly deployed instances.
  • Your internal database format stays aligned with SQL Server 2022.
  • You receive all the latest updates available for SQL Server 2022.
  • You can restore your database to SQL Server 2022 from Azure SQL Managed Instance.
  • You can configure a link for real-time data replication, bidirectional failover, and disaster recovery between SQL Server 2022 and Azure SQL Managed Instance.
  • The SQL Server 2022 update policy is available until the end of mainstream support of SQL Server 2022, at which point, the update policy for instances with the SQL Server 2022 update policy automatically updates to the update policy that corresponds to the latest major SQL Server release available at that time.

Feature comparison

The following table lists all the features that are only available to instances with the designated update policy:

Update policy Features
SQL Server 2025 update policy - Restore database to SQL Server 2025
- Link with bidirectional failover and disaster recovery with SQL Server 2025
- JSON data type
- JSON_ARRAYAGG and JSON_OBJECTAGG aggregate functions
- Invoke an HTTPS REST endpoint SP
- Fuzzy string matching
- DATEADD (Transact-SQL).
- UNISTR (Transact-SQL)
- Regular expression functions
- || (String concatenation)
- ||= (Compound assignment)
- Optimized locking
SQL Server 2022 update policy - Restore database to SQL Server 2022
- Link with bidirectional failover and disaster recovery with SQL Server 2022

The following features are affected by the configured update policy:

  • Automated backups and copy-only backups:
    • You can restore database backups taken from instances configured with the SQL Server 2022 update policy to instances configured with the SQL Server 2022 update policy.
    • You can restore database backups taken from instances configured with the SQL Server 2025 update policy to instances configured with the SQL Server 2025 update policy.
  • Managed Instance link:
    • Only instances with the SQL Server 2022 update policy can establish a link from SQL Managed Instance to SQL Server 2022 or fail back from SQL Server 2022 to SQL Managed Instance.
    • Only instances with the SQL Server 2025 update policy can establish a link from SQL Managed Instance to SQL Server 2025 (17.x) or fail back from SQL Server 2025 (17.x) to SQL Managed Instance.
  • Database copy and move: You can only copy and move databases to instances with matching, or higher version, update policies. Copying or moving a database to an instance with a lower version update policy is not supported.
  • Failover groups: Instances in a failover group must have matching update policies.

Existing instances

For an existing instance, you can enable the SQL Server 2025 update policy by using the Azure portal, PowerShell, the Azure CLI, or REST API.

Caution

  • The SQL Server 2022 update policy is enabled by default for all existing and new instances. When you change the update policy to SQL Server 2025, the internal database format is upgraded permanently. You can't change the update policy back to SQL Server 2022 and you can no longer use the features and benefits that require the SQL Server 2022 update policy.

To change the update policy for an existing instance in the Azure portal, follow these steps:

  1. Go to your SQL managed instance resource in the Azure portal.

  2. Select Maintenance and updates under Settings.

  3. Select the bubble to enable the SQL Server 2025 update policy:

  4. Select Yes on the Confirm update policy change popup to save your changes. Once the SQL Server 2025 update policy is enabled, the SQL Server 2022 update policy is no longer available

New instances

Although the SQL Server 2022 update policy is enabled by default, you can choose the SQL Server 2025 policy when you create your instance by using the Azure portal, PowerShell, Azure CLI, or REST API.

Important

Make sure to add update policy configuration to your deployment templates, so that you don't rely on system defaults that might change over time.

To create a new SQL managed instance with the SQL Server 2025 policy in the Azure portal, follow these steps:

  1. Go to Azure SQL hub.

  2. In the pane for Azure SQL Managed Instance, select Show options.

  3. In the Azure SQL Managed Instance options window, select Create SQL Managed Instance.

    Screenshot from the Azure portal of the Azure SQL hub, showing the Show options button and the Create SQL Managed Instance button.

  4. On the Create Azure SQL Managed Instance page, fill out details for your instance. For complete steps to create a new SQL managed instance, see Quickstart: Create Azure SQL Managed Instance.

  5. On the Additional settings tab, under SQL engine updates, choose the SQL Server 2025 policy.

  6. Confirm the designated policy under Update policy on the Review + create tab before you create your new instance.

Check update policy

You can check the current update policy by using the Azure portal or Transact-SQL (T-SQL).

To check the current update policy in the Azure portal, go to your SQL managed instance resource. Check the Update policy field under Updates and maintenance in the resource menu.

You can also use the serverproperty T-SQL command:

select serverproperty('ProductUpdateType')

The following values for ProductUpdateType indicate the update policy for the current instance:

  • CU: Updates are deployed via cumulative updates (CUs) for the corresponding major SQL Server release (SQL Server 2022, or SQL Server 2025 update policy)