Skip to content

Commit 13a21f6

Browse files
Merge pull request #34592 from MicrosoftDocs/main
Merged by Learn.Build PR Management system
2 parents 54099d5 + 8aa2632 commit 13a21f6

26 files changed

Lines changed: 453 additions & 290 deletions

azure-sql/database/auditing-analyze-audit-logs.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ If you chose to write audit logs to Log Analytics:
2626

2727
1. Use the [Azure portal](https://portal.azure.com).
2828
1. Go to the relevant database resource.
29-
1. At the top of the database's **Auditing** page, select **View audit logs**.
29+
1. At the top of the database's **Auditing** page, select **View audit logs** to display a sample of audit logs with a limited set of fields that cover activity from up to 2 hours prior to the selected **End Time** (which defaults to 'now'):
3030

3131
:::image type="content" source="media/auditing-analyze-audit-logs/view-audit-logs.png" alt-text="Screenshot of the Auditing menu in the Azure portal where you can select the View audit logs option." lightbox="media/auditing-analyze-audit-logs/view-audit-logs.png":::
32+
3233

3334
You have two ways to view the logs:
3435

azure-sql/database/convert-to-hyperscale.md

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: How to convert an Azure SQL Database to the Hyperscale tier.
44
author: WilliamDAssafMSFT
55
ms.author: wiassaf
66
ms.reviewer: dfurman, blakhani
7-
ms.date: 04/06/2025
7+
ms.date: 07/02/2025
88
ms.service: azure-sql-database
99
ms.topic: how-to
1010
ms.custom:
@@ -15,24 +15,35 @@ monikerRange: "=azuresql || =azuresql-db"
1515

1616
# Convert an existing database to Hyperscale
1717

18+
[!INCLUDE [appliesto-sqldb](../includes/appliesto-sqldb.md)]
19+
1820
You can convert an existing database in Azure SQL Database to Hyperscale using the Azure portal, the Azure CLI, PowerShell, or Transact-SQL.
1921

22+
## Prerequisites
23+
24+
- To convert a database that is a part of a [geo-replication](active-geo-replication-overview.md) relationship, either as the primary or as a secondary, to Hyperscale, you must first terminate geo-replication between the primary and secondary replica. Databases in a [failover group](failover-group-sql-db.md) must be removed from the group first. Once a database is converted to Hyperscale, you can create a new Hyperscale geo-replica for that database or add the database to a failover group.
25+
- The ability to [convert a geo-replicated non-Hyperscale database to Hyperscale](#convert-database-with-geo-replicas-preview) using T-SQL, REST API, PowerShell, or Azure CLI is currently a [preview feature](#convert-database-with-geo-replicas-preview).
26+
- Direct conversion from the Basic service tier to Hyperscale is not supported. To perform this conversion, first change the database to any service tier other than Basic (for example, General Purpose), and then proceed with the conversion to Hyperscale.
27+
- You can monitor the progress of the conversion with T-SQL. To run T-SQL commands on your Azure SQL Database, use [SQL Server Management Studio (SSMS)](https://aka.ms/ssms), the [MSSQL extension for Visual Studio Code](/sql/tools/visual-studio-code-extensions/mssql/mssql-extension-visual-studio-code), [sqlcmd](/sql/tools/sqlcmd/sqlcmd-utility), or your favorite T-SQL querying tool.
28+
29+
### Convert database with geo-replicas (preview)
30+
31+
The ability to convert a [geo-replicated](active-geo-replication-overview.md) non-Hyperscale database to Hyperscale using T-SQL, REST API, PowerShell, or Azure CLI is currently a preview feature. For more information, see [Blog: Hyperscale conversion support for geo-replicas](https://aka.ms/hs-conversion-geodr-preview).
32+
33+
- Conversion to Hyperscale must be initiated from the primary geo-replica.
34+
- The number of geo-secondary replicas should be reduced to one because Hyperscale doesn't support more than one geo-secondary.
35+
- Creating geo-replica of a geo-replica (also known as "geo-replica chaining") isn't supported in Hyperscale. If a chained geo-replication configuration exists, it must be removed before starting the conversion to Hyperscale.
36+
- A planned failover isn't possible while the conversion of the geo-primary database to Hyperscale is in progress. A forced failover to a geo-secondary replica is possible. However, depending on the state of the conversion when the forced failover occurs, the new geo-primary after failover might use either the Hyperscale service tier, or its original service tier.
37+
If a geo-primary database is in an elastic pool, it can be moved to an existing Hyperscale elastic pool as part of the conversion or can be made a standalone Hyperscale database. However, if a geo-secondary database is in an elastic pool, conversion to Hyperscale always moves it out of the pool. You can move the geo-secondary database to a Hyperscale elastic pool in a separate step once conversion completes.
38+
2039
## Cutover
2140

2241
The conversion process is divided into two stages - the conversion of database, which occurs while the existing database is online, and then a cutover to the new Hyperscale database.
2342

2443
- The time required to move an existing database to Hyperscale consists of the time to copy data and the time to replay the changes made in the source database while copying data. The data copy time is proportional to data size. We recommend converting to Hyperscale during a lower write activity period so that the time to replay accumulated changes is shorter.
2544
- You have the ability to choose when the cutover occurs - as soon as the database is ready, or manually at a time of your choosing. By default, the process to convert to Hyperscale will cutover automatically.
2645
- If you choose to manually cutover at a time of your choosing, you have 24 hours to initiate a manual cutover after the point when the database ready for cutover. You can initiate a manual cutover via the Azure portal, Azure CLI, PowerShell, or T-SQL.
27-
- During the final cutover to Hyperscale, your applications will only experience a short period of downtime, generally less than a minute.
28-
29-
## Prerequisites
30-
31-
To convert a database that is a part of a [geo-replication](active-geo-replication-overview.md) relationship, either as the primary or as a secondary, to Hyperscale, you need to first terminate geo-replication between the primary and secondary replica. Databases in a [failover group](failover-group-sql-db.md) must be removed from the group first.
32-
33-
Once a database has been moved to Hyperscale, you can create a new Hyperscale geo-replica for that database or add the database to a failover group.
34-
35-
Direct conversion from the Basic service tier to Hyperscale is not supported. To perform this conversion, first change the database to any service tier other than Basic (for example, General Purpose), and then proceed with the conversion to Hyperscale.
46+
- During the final cutover to Hyperscale, your applications only experience a short period of downtime, usually less than a minute.
3647

3748
## Convert a database to Hyperscale
3849

@@ -108,7 +119,7 @@ databaseName="mySampleDatabase"
108119
az sql db op list -g $resourceGroupName -s $serverName -n $databaseName
109120
```
110121

111-
Use `--perform-cutover` to initiate the cutover (within 3 days) once the Hyperscale database is ready:
122+
Use `--perform-cutover` to initiate the cutover (within 24 hours) once the Hyperscale database is ready:
112123

113124
```azurecli-interactive
114125
az sql db update -g $resourceGroupName -s $serverName -n $databaseName --perform-cutover
@@ -177,7 +188,7 @@ Set-AzSqlDatabase -ResourceGroupName $resourceGroupName `
177188

178189
# [Transact-SQL](#tab/t-sql)
179190

180-
To convert an existing Azure SQL Database to Hyperscale with Transact-SQL, first connect to the `master` database on your [logical SQL server](logical-servers.md) using the [Azure portal Query editor for Azure SQL Database](query-editor.md), [SQL Server Management Studio (SSMS)](/sql/ssms/download-sql-server-management-studio-ssms), or [the mssql extension for Visual Studio Code](/sql/tools/visual-studio-code-extensions/mssql/mssql-extension-visual-studio-code).
191+
To convert an existing Azure SQL Database to Hyperscale with Transact-SQL, first connect to the `master` database on your [logical SQL server](logical-servers.md) using [SQL Server Management Studio (SSMS)](/sql/ssms/download-sql-server-management-studio-ssms) or [the mssql extension for Visual Studio Code](/sql/tools/visual-studio-code-extensions/mssql/mssql-extension-visual-studio-code).
181192

182193
You must specify both the edition and service objective in the [ALTER DATABASE](/sql/t-sql/statements/alter-database-transact-sql?view=azuresqldb-current&preserve-view=true) statement.
183194

@@ -197,14 +208,15 @@ ALTER DATABASE [mySampleDatabase]
197208
WITH MANUAL_CUTOVER;
198209
```
199210

200-
To monitor operations for a Hyperscale database, connect to the `master` database of your [logical server](logical-servers.md) and query [sys.dm_operation_status](/sql/relational-databases/system-dynamic-management-views/sys-dm-operation-status-azure-sql-database?view=azuresqldb-current&preserve-view=true). The `sys.dm_operation_status` makes reports the progress of database operations including the conversion to Hyperscale. If you chose `MANUAL_CUTOVER`, the `sys.dm_operation_status` view includes additional information.
211+
To monitor all operations for a Hyperscale database, including the conversion to Hyperscale, connect to the `master` database of your geo-primary [logical server](logical-servers.md) and execute T-SQL queries on the [sys.dm_operation_status](/sql/relational-databases/system-dynamic-management-views/sys-dm-operation-status-azure-sql-database?view=azuresqldb-current&preserve-view=true) dynamic management view. The `sys.dm_operation_status` makes reports the progress of database operations including the conversion to Hyperscale. If you chose `MANUAL_CUTOVER`, the `sys.dm_operation_status` view includes additional information.
212+
213+
For example,
201214

202215
```sql
203216
SELECT *
204217
FROM sys.dm_operation_status
205218
WHERE major_resource_id = 'mySampleDatabase'
206219
ORDER BY start_time DESC;
207-
GO
208220
```
209221

210222
When ready for manual cutover, the `phase_desc` will be `WaitingForCutover`. Use the `PERFORM_CUTOVER` argument to initiate the cutover:
@@ -218,4 +230,4 @@ ALTER DATABASE [mySampleDatabase] PERFORM_CUTOVER;
218230
## Related content
219231

220232
- [How to manage a Hyperscale database](manage-hyperscale-database.md)
221-
- [How to reverse migrate a database from Hyperscale](reverse-migrate-from-hyperscale.md)
233+
- [Reverse migrate a database from Hyperscale](reverse-migrate-from-hyperscale.md)

azure-sql/database/doc-changes-updates-release-notes-whats-new.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn about the new features and documentation improvements for Azu
55
author: WilliamDAssafMSFT
66
ms.author: wiassaf
77
ms.reviewer: mathoma, randolphwest
8-
ms.date: 06/17/2025
8+
ms.date: 07/02/2025
99
ms.service: azure-sql-database
1010
ms.subservice: service-overview
1111
ms.topic: whats-new
@@ -43,6 +43,7 @@ The following table lists the features of Azure SQL Database that are currently
4343
| **ABORT_QUERY_EXECUTION** | The new `ABORT_QUERY_EXECUTION` [query hint](/sql/t-sql/queries/hints-transact-sql-query?view=azuresqldb-current&preserve-view=true#use_hint_abort_query_execution), currently in preview, can block future execution of known problematic queries, for example nonessential queries causing high resource consumption and impacting critical application workloads. For more information, see [Query Store hints: Block future execution of problematic queries](/sql/relational-databases/performance/query-store-hints-best-practices?view=azuresqldb-current&preserve-view=true#block-future-execution-of-problematic-queries).|
4444
| **Approximate or fuzzy string matching**| Check if two strings are similar, and calculate the difference between two strings. Use this capability to identify strings that might be different because of character corruption. [What is fuzzy string matching?](/sql/relational-databases/fuzzy-string-match/overview)|
4545
| **Availability metric**| Availability is now a metric in the Azure Monitor metrics. Driven by a variety of user connection failures, you can [monitor and configure alerts on Azure SQL Database Availability](monitoring-metrics-alerts.md#availability-metric). |
46+
| **Convert to Hyperscale with geo-replicas (preview)** |The ability to [convert a geo-replicated database non-Hyperscale database to Hyperscale](convert-to-hyperscale.md) using T-SQL, REST API, PowerShell, or Azure CLI is currently a preview feature. For more information, see [Blog: Hyperscale conversion support for geo-replicas](https://aka.ms/hs-conversion-geodr-preview). |
4647
| **DATEADD number allows bigint** | For `DATEADD (datepart , number , date )`, number can be expressed as a **bigint**. For more information, see [DATEADD (Transact-SQL)](/sql/t-sql/functions/dateadd-transact-sql).|
4748
| **Database watcher for Azure SQL** |[Database watcher](../database-watcher-overview.md) is a managed monitoring solution for database services in the Azure SQL family. Database watcher collects in-depth workload monitoring data to give you a detailed view of database performance, configuration, and health. Learn more about [database watcher](https://aka.ms/dbwatcher-preview-announcement). |
4849
| **Data Virtualization for Azure SQL Database** |Data virtualization, now in preview in Azure SQL Database, enables you to leverage all the power of Transact-SQL (T-SQL) and seamlessly query external data from Azure Data Lake Storage Gen2 or Azure Blob Storage. For more information, see [Data virtualization with Azure SQL Database (Preview)](data-virtualization-overview.md).|
@@ -96,6 +97,12 @@ The following table lists features of Azure SQL Database that have been made gen
9697

9798
Learn about significant changes to the Azure SQL Database documentation. For previous years, see the [What's new archive](doc-changes-updates-release-notes-whats-new-archive.md).
9899

100+
### July 2025
101+
102+
| Changes | Details |
103+
| --- | --- |
104+
| **Convert to Hyperscale with geo-replicas (preview)** |The ability to [convert a geo-replicated database non-Hyperscale database to Hyperscale](convert-to-hyperscale.md) using T-SQL, REST API, PowerShell, or Azure CLI is currently a preview feature. For more information, see [Blog: Hyperscale conversion support for geo-replicas](https://aka.ms/hs-conversion-geodr-preview). |
105+
99106
### June 2025
100107

101108
| Changes | Details |

azure-sql/database/firewall-configure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ When you create a new server in Azure SQL Database or Azure Synapse Analytics na
2626

2727
Connection attempts from the internet and Azure must pass through the firewall before they reach your server or database, as the following diagram shows.
2828

29-
![Firewall configuration diagram][1]
29+
:::image type="content" source="media/firewall-configure/sqldb-firewall-1.png" alt-text="Diagram of the Azure SQL Database firewall.":::
3030

3131
> [!IMPORTANT]
3232
> Azure Synapse only supports server-level IP firewall rules. It doesn't support database-level IP firewall rules.

azure-sql/database/migrate-dtu-to-vcore.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Migrate a database in Azure SQL Database from the DTU model to the
44
author: dimitri-furman
55
ms.author: dfurman
66
ms.reviewer: wiassaf, mathoma, moslake, randolphwest
7-
ms.date: 07/22/2024
7+
ms.date: 06/30/2025
88
ms.service: azure-sql-database
99
ms.subservice: service-overview
1010
ms.topic: upgrade-and-migration-article
@@ -17,7 +17,7 @@ This article describes how to migrate your database in Azure SQL Database from t
1717

1818
## Migrate a database
1919

20-
Migrating a database from the DTU-based purchasing model to the vCore-based purchasing model is similar to scaling between service objectives in the Basic, Standard, and Premium service tiers, with similar [duration](single-database-scale.md#latency) and a [minimal downtime](scale-resources.md) at the end of the migration process. A database migrated to the vCore-based purchasing model can be migrated back to the DTU-based purchasing model at any time using the same steps, except for databases migrated to the [Hyperscale](service-tier-hyperscale.md) service tier.
20+
Migrating a database from the DTU-based purchasing model to the vCore-based purchasing model is similar to scaling between service objectives in the Basic, Standard, and Premium service tiers, with similar [duration](single-database-scale.md#latency) and a [minimal downtime](scale-resources.md) at the end of the migration process. A database migrated to the vCore-based purchasing model can be migrated back to the DTU-based purchasing model at any time using the same steps, except for databases migrated to the [Hyperscale service tier](service-tier-hyperscale.md).
2121

2222
You can migrate your database to a different purchasing model by using the Azure portal, PowerShell, the Azure CLI, and Transact-SQL.
2323

@@ -67,7 +67,7 @@ ALTER DATABASE <database name> MODIFY (EDITION = '<service tier, such as Hypersc
6767

6868
## Choose the vCore service tier and service objective
6969

70-
For most DTU to vCore migration scenarios, databases and elastic pools in the Basic and Standard service tiers map to the [General Purpose](service-tiers-sql-database-vcore.md#general-purpose) service tier. Databases and elastic pools in the Premium service tier map to the [Business Critical](service-tiers-sql-database-vcore.md#business-critical) service tier. Depending on application scenario and requirements, the [Hyperscale](service-tier-hyperscale.md) service tier can often be used as the migration target for databases and elastic pools in all DTU service tiers.
70+
For most DTU to vCore migration scenarios, databases and elastic pools in the Basic and Standard service tiers map to the [General Purpose](service-tiers-sql-database-vcore.md#general-purpose) service tier. Databases and elastic pools in the Premium service tier map to the [Business Critical](service-tiers-sql-database-vcore.md#business-critical) service tier. Depending on application scenario and requirements, the [Hyperscale service tier](service-tier-hyperscale.md) can often be used as the migration target for databases and elastic pools in all DTU service tiers.
7171

7272
To choose the service objective, or compute size, for the migrated database in the vCore model, you can use a basic but approximate rule of thumb: every 100 DTUs in the Basic or Standard tiers require *at least* 1 vCore, and every 125 DTUs in the Premium tier require *at least* 1 vCore.
7373

@@ -188,7 +188,7 @@ The mapping query returns the following result (some columns not shown for brevi
188188
| --- | --- | --- | --- | --- | --- | --- |
189189
| 0.25 | 1.3 | 0.500 | 5.05 |
190190

191-
We see that the DTU database has the equivalent of 0.25 logical CPUs (vCores), with 1.3 GB of memory per vCore. The smallest vCore service objectives in the standard-series (Gen5) hardware configuration, **GP_Gen5_2**, provides more compute resources than the Standard S0 database, so a direct match isn't possible. The **GP_Gen5_2** option is preferred. Additionally, if the workload is well-suited for the [Serverless](serverless-tier-overview.md) compute tier, then **GP_S_Gen5_1** would be a closer match.
191+
We see that the DTU database has the equivalent of 0.25 logical CPUs (vCores), with 1.3 GB of memory per vCore. The smallest vCore service objectives in the standard-series (Gen5) hardware configuration, **GP_Gen5_2**, provides more compute resources than the Standard S0 database, so a direct match isn't possible. The **GP_Gen5_2** option is preferred. Additionally, if the workload is well-suited for the [Serverless compute tier](serverless-tier-overview.md), then **GP_S_Gen5_1** would be a closer match.
192192

193193
**Migrating a Premium P15 database**
194194

@@ -217,7 +217,7 @@ Migrating from the DTU-based model to the vCore-based purchasing model is simila
217217
- When upgrading, you must upgrade the secondary database first, and then upgrade the primary.
218218
- When downgrading, reverse the order: you must downgrade the primary database first, and then downgrade the secondary.
219219

220-
To convert a database to the Hyperscale service tier, geo-replication should be temporarily removed. For more information, see [Convert an existing database to Hyperscale](convert-to-hyperscale.md).
220+
To convert a database to the Hyperscale service tier, geo-replication should be temporarily removed. The ability to convert a geo-replicated database non-Hyperscale database to Hyperscale using T-SQL, REST API, PowerShell, or Azure CLI is currently a preview feature. For more information, see [Convert an existing database to Hyperscale](convert-to-hyperscale.md).
221221

222222
When you use geo-replication between two elastic pools, we recommend that you designate one pool as the primary and the other as the secondary. In that case, when you migrate elastic pools you should use the same sequencing guidance. However, if you have elastic pools that contain both primary and secondary databases, treat the pool with the higher utilization as the primary and follow the sequencing rules accordingly.
223223

0 commit comments

Comments
 (0)