Skip to content

Commit 53c9802

Browse files
committed
fix code
1 parent 3da7525 commit 53c9802

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ await connection.OpenAsync();
7676

7777
// for user-assigned managed identity
7878
// String clientId = System.getenv('AZURE_MYSQL_CLIENTID')
79-
// properties.put("azure.clientId","${YOUR_CLIENT_ID}");
79+
// properties.put("azure.clientId", clientId);
8080

8181
// For service principal
8282
// String tenantId = System.getenv('AZURE_MYSQL_TENANTID')
8383
// String clientId = System.getenv('AZURE_MYSQL_CLIENTID')
8484
// String clientSecret = System.getenv('AZURE_MYSQL_CLIENTSECRET')
85-
// properties.put("azure.clientId","${YOUR_CLIENT_ID}");
86-
// properties.put("azure.clientSecret","${YOUR_CLIENT_SECRET}");
87-
// properties.put("azure.tenantId","${YOUR_TENANT_ID}");
85+
// properties.put("azure.clientId", clientId);
86+
// properties.put("azure.clientSecret", clientSecret);
87+
// properties.put("azure.tenantId", tenantId);
8888

8989
Connection connection = DriverManager.getConnection(url, properties);
9090
```

0 commit comments

Comments
 (0)