Skip to content

Commit 7454bb8

Browse files
committed
add python connstr token link
1 parent a2317f7 commit 7454bb8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ For more information, see [Connect using Microsoft Entra authentication](/sql/co
9797
9898
conn = pyodbc.connect(connString)
9999
```
100-
100+
Refer to [Migrate a Python application to use passwordless connections with Azure SQL Database](/azure/azure-sql/database/azure-sql-passwordless-migration-python) to connect to Azure SQL Database using an access token.
101101
102102
### [NodeJS](#tab/nodejs)
103103

articles/service-connector/includes/code-sql-me-id.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ Update your application following the tutorial [Migrate a Java application to us
9595
database = os.getenv('AZURE_SQL_DATABASE')
9696
authentication = os.getenv('AZURE_SQL_AUTHENTICATION')
9797
98-
# Uncomment the following lines according to the authentication type. Customize the driver version as you want.
98+
# Uncomment the following lines according to the authentication type.
9999
# For system-assigned managed identity.
100100
# connString = f'Driver={{ODBC Driver 18 for SQL Server}};Server=tcp:{server},{port};Database={database};Authentication={authentication};Encrypt=yes;TrustServerCertificate=no;Connection Timeout=30'
101101
102102
# For user-assigned managed identity.
103-
# user = os.getenv('AZURE_SQL_USER')
104-
# connString = f'Driver={{ODBC Driver 18 for SQL Server}};Server=tcp:{server},{port};Database={database};UID={user};Authentication={authentication};Encrypt=yes;TrustServerCertificate=no;Connection Timeout=30'
103+
# clientID = os.getenv('AZURE_SQL_USER')
104+
# connString = f'Driver={{ODBC Driver 18 for SQL Server}};Server=tcp:{server},{port};Database={database};UID={clientID};Authentication={authentication};Encrypt=yes;TrustServerCertificate=no;Connection Timeout=30'
105105
106106
# For service principal.
107107
# user = os.getenv('AZURE_SQL_USER')
@@ -110,6 +110,7 @@ Update your application following the tutorial [Migrate a Java application to us
110110
111111
conn = pyodbc.connect(connString)
112112
```
113+
Refer to [Migrate a Python application to use passwordless connections with Azure SQL Database](/azure/azure-sql/database/azure-sql-passwordless-migration-python) to connect to Azure SQL Database using an access token.
113114
114115
### [NodeJS](#tab/sql-me-id-nodejs)
115116

0 commit comments

Comments
 (0)