You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/service-connector/includes/code-sql-me-id.md
+5-22Lines changed: 5 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.author: xiaofanzhou
7
7
---
8
8
9
9
10
-
### [.NET](#tab/dotnet)
10
+
### [.NET](#tab/sql-me-id-dotnet)
11
11
12
12
1. Install dependencies.
13
13
```bash
@@ -27,7 +27,7 @@ ms.author: xiaofanzhou
27
27
```
28
28
For more information, see [Using Active Directory Managed Identity authentication](/sql/connect/ado-net/sql/azure-active-directory-authentication#using-active-directory-managed-identity-authentication).
29
29
30
-
### [Java](#tab/java)
30
+
### [Java](#tab/sql-me-id-java)
31
31
32
32
Get the Azure SQL Database connection string from the environment variable added by Service Connector.
33
33
@@ -57,13 +57,13 @@ public class Main {
57
57
```
58
58
For more information, see [Connect using Microsoft Entra authentication](/sql/connect/jdbc/connecting-using-azure-active-directory-authentication).
59
59
60
-
### [SpringBoot](#tab/spring)
60
+
### [SpringBoot](#tab/sql-me-id-spring)
61
61
62
62
For a Spring application, if you create a connection with option `--client-type springboot`, Service Connector sets the properties `spring.datasource.url` with value format `jdbc:sqlserver://<sql-server>.database.windows.net:1433;databaseName=<sql-db>;authentication=ActiveDirectoryMSI;` to Azure Spring Apps.
63
63
64
64
Update your application following the tutorial [Migrate a Java application to use passwordless connections with Azure SQL Database](/azure/developer/java/spring-framework/migrate-sql-database-to-passwordless-connection?tabs=spring%2Capp-service%2Cassign-role-service-connector#2-migrate-the-app-code-to-use-passwordless-connections). Remember to remove the `spring.datasource.password` configuration property if it was set before and add the correct dependencies.
65
65
66
-
### [Python](#tab/python)
66
+
### [Python](#tab/sql-me-id-python)
67
67
68
68
1. Install dependencies.
69
69
```bash
@@ -96,16 +96,7 @@ Update your application following the tutorial [Migrate a Java application to us
96
96
conn = pyodbc.connect(connString)
97
97
```
98
98
99
-
100
-
### [Django](#tab/django)
101
-
102
-
The client type`Django` isn't supported for system-assigned managed identity, user-assigned managed identity and service principal.
103
-
104
-
### [Go](#tab/go)
105
-
106
-
The client type `Go` isn't supported for system-assigned managed identity, user-assigned managed identity and service principal.
107
-
108
-
### [NodeJS](#tab/nodejs)
99
+
### [NodeJS](#tab/sql-me-id-nodejs)
109
100
110
101
1. Install dependencies.
111
102
```bash
@@ -175,14 +166,6 @@ The client type `Go` isn't supported for system-assigned managed identity, user-
175
166
this.poolconnection = await sql.connect(config);
176
167
```
177
168
178
-
### [PHP](#tab/php)
179
-
180
-
The client type`PHP` isn't supported for system-assigned managed identity, user-assigned managed identity and service principal.
181
-
182
-
### [Ruby](#tab/ruby)
183
-
184
-
The client type `Ruby` isn't supported for system-assigned managed identity, user-assigned managed identity and service principal.
185
-
186
169
---
187
170
188
171
For more information, see [Homepage for client programming to Microsoft SQL Server](/sql/connect/homepage-sql-connection-programming).
0 commit comments