Skip to content

Commit 914fa96

Browse files
20250617 freshness pass
1 parent 974d81e commit 914fa96

File tree

5 files changed

+34
-38
lines changed

5 files changed

+34
-38
lines changed

azure-sql/database/azure-sql-passwordless-migration-nodejs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Complete the following steps in the Azure portal to associate the user-assigned
166166
167167
1. Search for the **MigrationIdentity** by name and select it from the search results.
168168
169-
1) Select **Add** to associate the identity with your app.
169+
1. Select **Add** to associate the identity with your app.
170170
171171
:::image type="content" source="media/azure-sql-passwordless-migration-nodejs/assign-managed-identity-small.png" lightbox="media/azure-sql-passwordless-migration-nodejs/assign-managed-identity.png" alt-text="Screenshot showing how to assign a managed identity.":::
172172

azure-sql/database/connect-query-nodejs.md

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ In this quickstart, you use Node.js to connect to a database and query data.
2626

2727
To complete this quickstart, you need:
2828

29-
- An Azure account with an active subscription and a database in Azure SQL Database, Azure SQL Managed Instance, or SQL Server on Azure VM. [Create an account for free](https://azure.microsoft.com/pricing/purchase-options/azure-account?icid=azurefreeaccount?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio).
29+
- An Azure account with an active subscription and a database in Azure SQL Database, Azure SQL Managed Instance, or SQL Server on Azure VM. [Create an account for free](https://azure.microsoft.com/pricing/purchase-options/azure-account?icid=azurefreeaccount?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio). The scripts in this article are written to use the `AdventureWorksLT` sample database.
3030

3131
| Action | SQL Database | SQL Managed Instance | SQL Server on Azure VM |
3232
|:--- |:--- |:---|:---|
@@ -36,28 +36,25 @@ To complete this quickstart, you need:
3636
| Configure | [Server-level IP firewall rule](firewall-create-server-level-portal-quickstart.md)| [Connectivity from a VM](../managed-instance/connect-vm-instance-configure.md)|
3737
|||[Connectivity from on-premises](../managed-instance/point-to-site-p2s-configure.md) | [Connect to a SQL Server instance](../virtual-machines/windows/sql-vm-create-portal-quickstart.md)
3838
|Load data|Wide World Importers loaded per quickstart|[Restore Wide World Importers](../managed-instance/restore-sample-database-quickstart.md) | [Restore Wide World Importers](../managed-instance/restore-sample-database-quickstart.md) |
39-
|||Restore or import AdventureWorks from a [BACPAC](database-import.md) file from [GitHub](https://github.com/Microsoft/sql-server-samples/tree/master/samples/databases/adventure-works)| Restore or import AdventureWorks from a [BACPAC](database-import.md) file from [GitHub](https://github.com/Microsoft/sql-server-samples/tree/master/samples/databases/adventure-works)|
40-
41-
42-
43-
- [Node.js](https://nodejs.org)-related software
44-
45-
# [macOS](#tab/macos)
46-
47-
Install Node.js and then install the ODBC driver using the steps on [Install the Microsoft ODBC driver for SQL Server (macOS)](/sql/connect/odbc/linux-mac/install-microsoft-odbc-driver-sql-server-macos).
48-
49-
# [Ubuntu](#tab/ubuntu)
50-
51-
Install Node.js and then install the ODBC driver using the steps on [Install the Microsoft ODBC driver for SQL Server (Linux)](/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server).
52-
53-
# [Windows](#tab/windows)
54-
55-
Install Node.js and then install the ODBC driver using the steps on [Download ODBC Driver for SQL Server](/sql/connect/odbc/download-odbc-driver-for-sql-server).
56-
57-
---
58-
59-
> [!IMPORTANT]
60-
> The scripts in this article are written to use the **AdventureWorks** database.
39+
|||Restore or import `AdventureWorksLT` from a [BACPAC](database-import.md) file from [GitHub](https://github.com/Microsoft/sql-server-samples/tree/master/samples/databases/adventure-works)| Restore or import `AdventureWorksLT` from a [BACPAC](database-import.md) file from [GitHub](https://github.com/Microsoft/sql-server-samples/tree/master/samples/databases/adventure-works)|
40+
41+
42+
- Install [Node.js](https://nodejs.org) software.
43+
- Install the ODBC driver relevant to your operating system.
44+
45+
# [macOS](#tab/macos)
46+
47+
Install Node.js and then install the ODBC driver using the steps on [Install the Microsoft ODBC driver for SQL Server (macOS)](/sql/connect/odbc/linux-mac/install-microsoft-odbc-driver-sql-server-macos).
48+
49+
# [Ubuntu](#tab/ubuntu)
50+
51+
Install Node.js and then install the ODBC driver using the steps on [Install the Microsoft ODBC driver for SQL Server (Linux)](/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server).
52+
53+
# [Windows](#tab/windows)
54+
55+
Install Node.js and then install the ODBC driver using the steps on [Download ODBC Driver for SQL Server](/sql/connect/odbc/download-odbc-driver-for-sql-server).
56+
57+
---
6158

6259
## Get server connection information
6360

@@ -74,7 +71,7 @@ Get the connection information you need to connect to the database. You'll need
7471
7572
## Create the project
7673

77-
Open a command prompt and create a folder named *sqltest*. Open the folder you created and run the following command:
74+
Open a command prompt and create a folder named `sqltest`. Open the folder you created and run the following command:
7875

7976
```bash
8077
npm init -y
@@ -83,7 +80,7 @@ Open a command prompt and create a folder named *sqltest*. Open the folder you c
8380

8481
## Add code to query the database
8582

86-
1. In your favorite text editor, create a new file, *sqltest.js*, in the folder where you created the project (*sqltest*).
83+
1. In your favorite text editor, create a new file, `sqltest.js`, in the folder where you created the project (`sqltest`).
8784

8885
1. Replace its contents with the following code. Then add the appropriate values for your server, database, user, and password.
8986

azure-sql/database/cost-management.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ First, you use the Azure pricing calculator to add Azure resources, and review t
2525

2626
Cost analysis supports most Azure account types, but not all of them. To view the full list of supported account types, see [Understand Cost Management data](/azure/cost-management-billing/costs/understand-cost-mgt-data?WT.mc_id=costmanagementcontent_docsacmhorizontal_-inproduct-learn). To view cost data, you need at least read access for an Azure account.
2727

28-
For information about assigning access to Azure Cost Management data, see [Assign access to data](/azure/cost-management-billing/costs/assign-access-acm-data?WT.mc_id=costmanagementcontent_docsacmhorizontal_-inproduct-learn).
28+
For information about assigning access to Microsoft Cost Management data, see [Assign access to data](/azure/cost-management-billing/costs/assign-access-acm-data?WT.mc_id=costmanagementcontent_docsacmhorizontal_-inproduct-learn).
2929

3030
## SQL Database initial cost considerations
3131

@@ -110,7 +110,7 @@ The following table shows the most common billing meters and their possible SKUs
110110

111111
### Use Monetary Credit with Azure SQL Database
112112

113-
You can pay for Azure SQL Database charges with your Azure Prepayment (previously called monetary commitment) credit. However, you can't use Azure Prepayment credit to pay for charges for third-party products and services including those from the Azure Marketplace.
113+
You can pay for Azure SQL Database charges with your Azure Prepayment (previously called monetary commitment) credit. However, you can't use Azure Prepayment credit to pay for charges for third-party products and services including those from Azure Marketplace.
114114

115115
## Review estimated costs in the Azure portal
116116

@@ -150,7 +150,7 @@ Azure SQL Database also enables you to scale resources up or down to control cos
150150

151151
## Related content
152152

153-
- Learn [how to optimize your cloud investment with Azure Cost Management](/azure/cost-management-billing/costs/cost-mgt-best-practices?WT.mc_id=costmanagementcontent_docsacmhorizontal_-inproduct-learn).
153+
- Learn [how to optimize your cloud investment with Cost Management](/azure/cost-management-billing/costs/cost-mgt-best-practices?WT.mc_id=costmanagementcontent_docsacmhorizontal_-inproduct-learn).
154154
- Learn more about managing costs with [cost analysis](/azure/cost-management-billing/costs/quick-acm-cost-analysis?WT.mc_id=costmanagementcontent_docsacmhorizontal_-inproduct-learn).
155155
- Learn about how to [prevent unexpected costs](/azure/cost-management-billing/cost-management-billing-overview?WT.mc_id=costmanagementcontent_docsacmhorizontal_-inproduct-learn).
156156
- Take the [Cost Management](/training/paths/control-spending-manage-bills?WT.mc_id=costmanagementcontent_docsacmhorizontal_-inproduct-learn) guided learning course.

azure-sql/database/elastic-convert-to-use-elastic-tools.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ For a single-tenant model, create a **list mapping** shard map. The single-tenan
6969

7070
:::image type="content" source="media/elastic-convert-to-use-elastic-tools/listmapping.png" alt-text="Diagram of list mapping.":::
7171

72-
The multi-tenant model assigns several tenants to an individual database (and you can distribute groups of tenants across multiple databases). Use this model when you expect each tenant to have small data needs. In this model, assign a range of tenants to a database using **range mapping**.
72+
The multitenant model assigns several tenants to an individual database (and you can distribute groups of tenants across multiple databases). Use this model when you expect each tenant to have small data needs. In this model, assign a range of tenants to a database using **range mapping**.
7373

7474
:::image type="content" source="media/elastic-convert-to-use-elastic-tools/rangemapping.png" alt-text="Diagram of range mapping.":::
7575

76-
Or you can implement a multi-tenant database model using a *list mapping* to assign multiple tenants to an individual database. For example, DB1 is used to store information about tenant ID 1 and 5, and DB2 stores data for tenant 7 and tenant 10.
76+
Or you can implement a multitenant database model using a *list mapping* to assign multiple tenants to an individual database. For example, DB1 is used to store information about tenant ID 1 and 5, and DB2 stores data for tenant 7 and tenant 10.
7777

7878
:::image type="content" source="media/elastic-convert-to-use-elastic-tools/multipleonsingledb.png" alt-text="Diagram of multiple tenants on single DB.":::
7979

@@ -90,7 +90,7 @@ $ShardMap = New-ListShardMap -KeyType $([int]) -ListShardMapName 'ListShardMap'
9090

9191
### Option 2: Create a shard map for a range mapping
9292

93-
To utilize this mapping pattern, tenant ID values needs to be continuous ranges, and it is acceptable to have gap in the ranges by skipping the range when creating the databases.
93+
To utilize this mapping pattern, tenant ID values need to be continuous ranges, and it is acceptable to have gap in the ranges by skipping the range when creating the databases.
9494

9595
```powershell
9696
# $ShardMapManager is the shard map manager object
@@ -158,4 +158,4 @@ Once you have completed the setup, you can begin to use the Elastic Database cli
158158
- [Azure Elastic Database tools scripts](https://github.com/Azure/elastic-db-tools/tree/master/Samples/PowerShell)
159159
- [Azure/elastic-db-tools](https://github.com/Azure/elastic-db-tools)
160160
- [Deploy a split-merge service to move data between sharded databases](elastic-scale-configure-deploy-split-and-merge.md)
161-
- [Design Patterns for Multi-tenant SaaS Applications with Azure SQL Database](saas-tenancy-app-design-patterns.md)
161+
- [Design Patterns for Multitenant SaaS Applications with Azure SQL Database](saas-tenancy-app-design-patterns.md)

azure-sql/includes/passwordless/create-database-user-for-identity.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
22
author: bobtabor-msft
33
ms.author: rotabor
4-
ms.date: 06/01/2023
4+
ms.date: 06/17/2025
55
ms.service: azure-sql-database
66
ms.topic: include
77
ms.custom: generated
88
---
99

1010
Create a SQL database user that maps back to the user-assigned managed identity. Assign the necessary SQL roles to the user to allow your app to read, write, and modify the data and schema of your database.
1111

12-
1) In the Azure portal, browse to your SQL database and select **Query editor (preview)**.
12+
1. In the Azure portal, browse to your SQL database and select **Query editor (preview)**.
1313

14-
2) Select **Continue as `<username>`** on the right side of the screen to sign into the database using your account.
14+
1. Select **Continue as `<username>`** on the right side of the screen to sign into the database using your account.
1515

16-
3) On the query editor view, run the following T-SQL commands:
16+
1. On the query editor view, run the following T-SQL commands:
1717

1818
```sql
1919
CREATE USER [user-assigned-identity-name] FROM EXTERNAL PROVIDER;
@@ -26,7 +26,6 @@ Create a SQL database user that maps back to the user-assigned managed identity.
2626
:::image type="content" source="../../database/media/passwordless-connections/query-editor-identity-small.png" lightbox="../../database/media/passwordless-connections/query-editor-identity.png" alt-text="A screenshot showing how to use the Azure Query editor to create a SQL user for a managed identity.":::
2727

2828
Running these commands assigns the [SQL DB Contributor](/azure/role-based-access-control/built-in-roles#sql-db-contributor) role to the user-assigned managed identity. This role allows the identity to read, write, and modify the data and schema of your database.
29-
---
3029

3130
> [!IMPORTANT]
3231
> Use caution when assigning database user roles in enterprise production environments. In those scenarios, the app shouldn't perform all operations using a single, elevated identity. Try to implement the principle of least privilege by configuring multiple identities with specific permissions for specific tasks.

0 commit comments

Comments
 (0)