From 3343845dee3c365768fd1ad3c5539eaf46c75fc5 Mon Sep 17 00:00:00 2001 From: Jiri Cincura Date: Fri, 4 Apr 2025 11:59:46 +0200 Subject: [PATCH] Add note (from #4899). --- .../core/providers/sql-server/azure-sql-database.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/entity-framework/core/providers/sql-server/azure-sql-database.md b/entity-framework/core/providers/sql-server/azure-sql-database.md index b514459ed8..aeb9548403 100644 --- a/entity-framework/core/providers/sql-server/azure-sql-database.md +++ b/entity-framework/core/providers/sql-server/azure-sql-database.md @@ -7,6 +7,9 @@ uid: core/providers/sql-server/azure-sql-database --- # Specifying Azure SQL Database Options +> [!NOTE] +> You should [use `UseAzureSql` method](xref:core/providers/sql-server/index#usage) instead of `UseSqlServer` when connecting to Azure SQL. + Azure SQL Database provides [a variety of pricing options](https://azure.microsoft.com/pricing/details/sql-database/single/) that are usually configured through the Azure Portal. However if you are managing the schema using [EF Core migrations](xref:core/managing-schemas/migrations/index) you can specify the desired options in the model itself. You can specify the service tier of the database (EDITION) using [HasServiceTier](/dotnet/api/Microsoft.EntityFrameworkCore.SqlServerModelBuilderExtensions.HasServiceTier):