Skip to content

Commit d64dfd2

Browse files
authored
Quality review
1 parent de283c5 commit d64dfd2

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

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. 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)