Skip to content

Commit bf586cf

Browse files
Merge pull request #296353 from maud-lv/patch-67
Content health updates
2 parents ae8df66 + 05a1b8b commit bf586cf

File tree

5 files changed

+42
-49
lines changed

5 files changed

+42
-49
lines changed

articles/service-connector/how-to-integrate-mysql.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ ms.author: malev
66
ms.service: service-connector
77
ms.topic: how-to
88
ms.custom: engagement-fy23
9-
ms.date: 02/02/2024
9+
ms.date: 03/14/2025
1010
---
1111

1212
# Integrate Azure Database for MySQL with Service Connector
1313

14-
This page shows supported authentication methods and clients, and shows sample code you can use to connect Azure Database for MySQL - Flexible Server to other cloud services using Service Connector. This page also shows default environment variable names and values (or Spring Boot configuration) you get when you create the service connection.
14+
This article covers supported authentication methods, clients, and sample code you can use to connect your apps to Azure Database for MySQL - Flexible Server using Service Connector. In this article, you'll also find default environment variable names, values, and configuration obtained when creating service connections.
1515

1616
[!INCLUDE [Azure-database-for-mysql-single-server-deprecation](~/reusable-content/ce-skilling/azure/includes/mysql/includes/azure-database-for-mysql-single-server-deprecation.md)]
1717

@@ -27,7 +27,7 @@ Service Connector can be used to connect the following compute services to Azure
2727

2828
## Supported authentication types and client types
2929

30-
The table below shows which combinations of authentication methods and clients are supported for connecting your compute service to Azure Database for MySQL using Service Connector. A “Yes” indicates that the combination is supported, while a “No” indicates that it is not supported.
30+
The table below shows which combinations of authentication methods and clients are supported for connecting your compute services to Azure Database for MySQL using Service Connector. A “Yes” indicates that the combination is supported, while a “No” indicates that it is not supported.
3131

3232
| Client type | System-assigned managed identity | User-assigned managed identity | Secret/connection string | Service principal |
3333
|---------------------------------|:--------------------------------:|:------------------------------:|:------------------------:|:-----------------:|
@@ -42,16 +42,14 @@ The table below shows which combinations of authentication methods and clients a
4242
| Ruby (mysql2) | Yes | Yes | Yes | Yes |
4343
| None | Yes | Yes | Yes | Yes |
4444

45-
This table indicates that all combinations of client types and authentication methods in the table are supported. All client types can use any of the authentication methods to connect to Azure Database for MySQL using Service Connector.
46-
4745
> [!NOTE]
48-
> System-assigned managed identity, User-assigned managed identity and Service principal are only supported on Azure CLI.
46+
> System-assigned managed identity, user-assigned managed identity and service principal authentication is only supported on Azure CLI.
4947
5048
## Default environment variable names or application properties and sample code
5149

5250
Reference the connection details and sample code in following tables, according to your connection's authentication type and client type, to connect compute services to Azure Database for MySQL. For more information about naming conventions, check the [Service Connector internals](concept-service-connector-internals.md#configuration-naming-convention) article.
5351

54-
### System-assigned Managed Identity
52+
### System-assigned managed identity
5553

5654
#### [.NET](#tab/dotnet)
5755

@@ -65,7 +63,7 @@ Reference the connection details and sample code in following tables, according
6563
| --------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
6664
| `AZURE_MYSQL_CONNECTIONSTRING` | JDBC MySQL connection string | `jdbc:mysql://<MySQL-DB-name>.mysql.database.azure.com:3306/<MySQL-DB-name>?sslmode=required&user=<MySQL-DB-username>` |
6765

68-
#### [SpringBoot](#tab/springBoot)
66+
#### [Spring Boot](#tab/springBoot)
6967

7068
| Application properties | Description | Example value |
7169
| ------------------------------------------------ | ---------------------------------- | ----------------------------------------------------------------------------------------------- |
@@ -140,7 +138,7 @@ Reference the connection details and sample code in following tables, according
140138
Refer to the steps and code below to connect to Azure Database for MySQL using a system-assigned managed identity.
141139
[!INCLUDE [code sample for mysql system mi](./includes/code-mysql-me-id.md)]
142140

143-
### User-assigned Managed Identity
141+
### User-assigned managed identity
144142

145143
#### [.NET](#tab/dotnet)
146144

@@ -156,7 +154,7 @@ Refer to the steps and code below to connect to Azure Database for MySQL using a
156154
| `AZURE_MYSQL_CLIENTID` | Your client ID | `<identity-client-ID>` |
157155
| `AZURE_MYSQL_CONNECTIONSTRING` | JDBC MySQL connection string | `jdbc:mysql://<MySQL-DB-name>.mysql.database.azure.com:3306/<MySQL-DB-name>?sslmode=required&user=<MySQL-DB-username>` |
158156

159-
#### [SpringBoot](#tab/springBoot)
157+
#### [Spring Boot](#tab/springBoot)
160158

161159
| Application properties | Description | Example value |
162160
| ----------------------------------------------------------------- | ---------------------------------- | ----------------------------------------------------------------------------------------------- |
@@ -240,7 +238,7 @@ Refer to the steps and code below to connect to Azure Database for MySQL using a
240238
Refer to the steps and code below to connect to Azure Database for MySQL using a user-assigned managed identity.
241239
[!INCLUDE [code sample for mysql system mi](./includes/code-mysql-me-id.md)]
242240

243-
### Connection String
241+
### Connection string
244242

245243
> [!WARNING]
246244
> Microsoft recommends that you use the most secure authentication flow available. The authentication flow described in this procedure requires a very high degree of trust in the application, and carries risks that are not present in other flows. You should only use this flow when other more secure flows, such as managed identities, aren't viable.
@@ -257,7 +255,7 @@ Refer to the steps and code below to connect to Azure Database for MySQL using a
257255
| --------------------------------- | ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
258256
| `AZURE_MYSQL_CONNECTIONSTRING` | JDBC MySQL connection string | `jdbc:mysql://<MySQL-DB-name>.mysql.database.azure.com:3306/<MySQL-DB-name>?sslmode=required&user=<MySQL-DB-username>&password=<Uri.EscapeDataString(<MySQL-DB-password>)` |
259257

260-
#### [SpringBoot](#tab/springBoot)
258+
#### [Spring Boot](#tab/springBoot)
261259

262260
| Application properties | Description | Example value |
263261
| ------------------------------ | ----------------------------- | ----------------------------------------------------------------------------------------------- |
@@ -340,7 +338,7 @@ After created a `springboot` client type connection, Service Connector service w
340338
Refer to the steps and code below to connect to Azure Database for MySQL using a connection string.
341339
[!INCLUDE [code sample for mysql secrets](./includes/code-mysql-secret.md)]
342340

343-
### Service Principal
341+
### Service principal
344342

345343
#### [.NET](#tab/dotnet)
346344

@@ -360,7 +358,7 @@ Refer to the steps and code below to connect to Azure Database for MySQL using a
360358
| `AZURE_MYSQL_TENANTID` | Your tenant ID | `<tenant-ID>` |
361359
| `AZURE_MYSQL_CONNECTIONSTRING` | JDBC MySQL connection string | `jdbc:mysql://<MySQL-DB-name>.mysql.database.azure.com:3306/<MySQL-DB-name>?sslmode=required&user=<MySQL-DB-username>` |
362360

363-
#### [SpringBoot](#tab/springBoot)
361+
#### [Spring Boot](#tab/springBoot)
364362

365363
| Application properties | Description | Example value |
366364
| ------------------------------------------------ | ---------------------------------- | ----------------------------------------------------------------------------------------------- |

articles/service-connector/how-to-integrate-postgres.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ ms.author: malev
66
ms.service: service-connector
77
ms.topic: how-to
88
ms.custom: engagement-fy23
9-
ms.date: 02/02/2024
9+
ms.date: 03/14/2025
1010
---
1111

1212
# Integrate Azure Database for PostgreSQL with Service Connector
1313

14-
This page shows supported authentication methods and clients, and shows sample code you can use to connect Azure Database for PostgreSQL to other cloud services using Service Connector. You might still be able to connect to Azure Database for PostgreSQL in other programming languages without using Service Connector. This page also shows default environment variable names and values (or Spring Boot configuration) you get when you create the service connection.
14+
This article covers supported authentication methods, clients, and sample code you can use to connect your apps to Azure Database for PostgreSQL using Service Connector. In this article, you'll also find default environment variable names, values, and configuration obtained when creating service connections.
1515

1616
## Supported compute services
1717

@@ -25,7 +25,7 @@ Service Connector can be used to connect the following compute services to Azure
2525

2626
## Supported authentication types and client types
2727

28-
The table below shows which combinations of authentication methods and clients are supported for connecting your compute service to Azure Database for PostgreSQL using Service Connector. A “Yes” indicates that the combination is supported, while a “No” indicates that it is not supported.
28+
The table below shows which combinations of authentication methods and clients are supported for connecting compute services to Azure Database for PostgreSQL using Service Connector. A “Yes” indicates that the combination is supported, while a “No” indicates that it is not supported.
2929

3030
| Client type | System-assigned managed identity | User-assigned managed identity | Secret/connection string | Service principal |
3131
|---------------------------|:--------------------------------:|:------------------------------:|:------------------------:|:-----------------:|
@@ -40,16 +40,14 @@ The table below shows which combinations of authentication methods and clients a
4040
| Ruby (ruby-pg) | Yes | Yes | Yes | Yes |
4141
| None | Yes | Yes | Yes | Yes |
4242

43-
This table indicates that all combinations of client types and authentication methods in the table are supported. All client types can use any of the authentication methods to connect to Azure Database for PostgreSQL using Service Connector.
44-
4543
> [!NOTE]
4644
> System-assigned managed identity, User-assigned managed identity and Service principal are only supported on Azure CLI.
4745
4846
## Default environment variable names or application properties and sample code
4947

50-
Reference the connection details and sample code in the following tables, according to your connection's authentication type and client type, to connect compute services to Azure Database for PostgreSQL. For more information about naming conventions, check the [Service Connector internals](concept-service-connector-internals.md#configuration-naming-convention) article.
48+
Reference the connection details and sample code in the following tables, according to your connection's authentication type and client type. For more information about naming conventions, check the [Service Connector internals](concept-service-connector-internals.md#configuration-naming-convention) article.
5149

52-
### System-assigned Managed Identity
50+
### System-assigned managed identity
5351

5452
#### [.NET](#tab/dotnet)
5553

@@ -63,7 +61,8 @@ Reference the connection details and sample code in the following tables, accord
6361
| ------------------------------------- | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
6462
| `AZURE_POSTGRESQL_CONNECTIONSTRING` | JDBC PostgreSQL connection string | `jdbc:postgresql://<PostgreSQL-server-name>.postgres.database.azure.com:5432/<database-name>?sslmode=require&user=<username>` |
6563

66-
#### [SpringBoot](#tab/springBoot)
64+
#### [Spring Boot](#tab/springBoot)
65+
6766
| Application properties | Description | Example value |
6867
|-------------------------------------------|-------------------------------------|---------------------------------------------------------------------------------------------------------------|
6968
| `spring.datasource.azure.passwordless-enabled` | Enable passwordless authentication | `true` |
@@ -113,6 +112,7 @@ Reference the connection details and sample code in the following tables, accord
113112
| `AZURE_POSTGRESQL_CONNECTIONSTRING` | Ruby PostgreSQL connection string | `host=<your-postgres-server-name>.postgres.database.azure.com port=5432 dbname=<database-name> sslmode=require user=<username>` |
114113

115114
#### [Other](#tab/none)
115+
116116
| Default environment variable name | Description | Example value |
117117
| --------------------------------- | ----------------- | -------------------------------------------------------- |
118118
| `AZURE_POSTGRESQL_HOST` | Database host URL | `<PostgreSQL-server-name>.postgres.database.azure.com` |
@@ -130,7 +130,7 @@ Refer to the steps and code below to connect to Azure Database for PostgreSQL us
130130
[!INCLUDE [code sample for postgresql system mi](./includes/code-postgres-me-id.md)]
131131

132132

133-
### User-assigned Managed Identity
133+
### User-assigned managed identity
134134

135135
#### [.NET](#tab/dotnet)
136136

@@ -146,7 +146,7 @@ Refer to the steps and code below to connect to Azure Database for PostgreSQL us
146146
| `AZURE_POSTGRESQL_CLIENTID` | Your client ID | `<identity-client-ID>` |
147147
| `AZURE_POSTGRESQL_CONNECTIONSTRING` | JDBC PostgreSQL connection string | `jdbc:postgresql://<PostgreSQL-server-name>.postgres.database.azure.com:5432/<database-name>?sslmode=require&user=<username>` |
148148

149-
#### [SpringBoot](#tab/springBoot)
149+
#### [Spring Boot](#tab/springBoot)
150150

151151
| Application properties | Description | Example value |
152152
| ----------------------------------------------------------------- | ---------------------------------- | --------------------------------------------------------------------------------------------------------------- |
@@ -222,7 +222,7 @@ Refer to the steps and code below to connect to Azure Database for PostgreSQL us
222222
Refer to the steps and code below to connect to Azure Database for PostgreSQL using a user-assigned managed identity.
223223
[!INCLUDE [code sample for postgresql user mi](./includes/code-postgres-me-id.md)]
224224

225-
### Connection String
225+
### Connection string
226226

227227
> [!WARNING]
228228
> Microsoft recommends that you use the most secure authentication flow available. The authentication flow described in this procedure requires a very high degree of trust in the application, and carries risks that are not present in other flows. You should only use this flow when other more secure flows, such as managed identities, aren't viable.
@@ -239,7 +239,7 @@ Refer to the steps and code below to connect to Azure Database for PostgreSQL us
239239
| ------------------------------------- | --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
240240
| `AZURE_POSTGRESQL_CONNECTIONSTRING` | JDBC PostgreSQL connection string | `jdbc:postgresql://<PostgreSQL-server-name>.postgres.database.azure.com:5432/<database-name>?sslmode=require&user=<username>&password=<password>` |
241241

242-
#### [SpringBoot](#tab/springBoot)
242+
#### [Spring Boot](#tab/springBoot)
243243

244244
| Application properties | Description | Example value |
245245
| ------------------------------ | ----------------- | --------------------------------------------------------------------------------------------------------------- |
@@ -309,7 +309,7 @@ Refer to the steps and code below to connect to Azure Database for PostgreSQL us
309309
Refer to the steps and code below to connect to Azure Database for PostgreSQL using a connection string.
310310
[!INCLUDE [code sample for postgresql secrets](./includes/code-postgres-secret.md)]
311311

312-
### Service Principal
312+
### Service principal
313313

314314
#### [.NET](#tab/dotnet)
315315

@@ -329,7 +329,7 @@ Refer to the steps and code below to connect to Azure Database for PostgreSQL us
329329
| `AZURE_POSTGRESQL_TENANTID` | Your tenant ID | `<tenant-ID>` |
330330
| `AZURE_POSTGRESQL_CONNECTIONSTRING` | JDBC PostgreSQL connection string | `jdbc:postgresql://<PostgreSQL-server-name>.postgres.database.azure.com:5432/<database-name>?sslmode=require&user=<username>` |
331331

332-
#### [SpringBoot](#tab/springBoot)
332+
#### [Spring Boot](#tab/springBoot)
333333

334334
| Application properties | Description | Example value |
335335
| ------------------------------------------------ | ---------------------------------- | --------------------------------------------------------------------------------------------------------------- |

0 commit comments

Comments
 (0)