Skip to content

Commit c0f9dd9

Browse files
committed
change to clientId in app service code
1 parent 7454bb8 commit c0f9dd9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

articles/app-service/includes/tutorial-connect-msi-azure-database/code-sql-mi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ For more information, see [Connect using Microsoft Entra authentication](/sql/co
9292
# connString = f'Driver={{ODBC Driver 18 for SQL Server}};Server={server},{port};Database={database};Authentication={authentication};Encrypt=yes;'
9393
9494
# For user-assigned managed identity.
95-
# user = os.getenv('AZURE_SQL_USER')
96-
# connString = f'Driver={{ODBC Driver 18 for SQL Server}};Server={server},{port};Database={database};UID={user};Authentication={authentication};Encrypt=yes;'
95+
# client_id = os.getenv('AZURE_SQL_USER')
96+
# connString = f'Driver={{ODBC Driver 18 for SQL Server}};Server={server},{port};Database={database};UID={client_id};Authentication={authentication};Encrypt=yes;'
9797
9898
conn = pyodbc.connect(connString)
9999
```

articles/app-service/tutorial-connect-msi-azure-database.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,15 +200,15 @@ In this section, connectivity to the Azure database in your code follows the `De
200200
201201
# [Azure SQL Database](#tab/sqldatabase-sc)
202202
203-
[!INCLUDE [code sample for postgres managed identity authentication connection](./includes/tutorial-connect-msi-azure-database/code-sql-mi.md)]
203+
[!INCLUDE [code sample for sql managed identity authentication connection](./includes/tutorial-connect-msi-azure-database/code-sql-mi.md)]
204204
205205
# [Azure Database for MySQL](#tab/mysql-sc)
206206
207207
[!INCLUDE [code sample for mysql managed identity authentication connection](./includes/tutorial-connect-msi-azure-database/code-mysql-mi.md)]
208208
209209
# [Azure Database for PostgreSQL](#tab/postgresql-sc)
210210
211-
[!INCLUDE [code sample for sql managed identity authentication connection](./includes/tutorial-connect-msi-azure-database/code-postgres-mi.md)]
211+
[!INCLUDE [code sample for postgres managed identity authentication connection](./includes/tutorial-connect-msi-azure-database/code-postgres-mi.md)]
212212
213213
-----
214214

0 commit comments

Comments
 (0)