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/spring-apps/how-to-bind-postgres.md
+35-29Lines changed: 35 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,29 +49,29 @@ Use the following steps to prepare your project.
49
49
50
50
## Bind your app to the Azure Database for PostgreSQL instance
51
51
52
-
### [Using admin credentials](#tab/Secrets)
53
-
54
-
Use the following steps to bind your app.
52
+
### [Using a passwordless connection with a managed identity for flexible server](#tab/Passwordlessflex)
55
53
56
-
1.Note the admin username and password of your Azure Database for PostgreSQL account.
54
+
1.Install the [Service Connector](../service-connector/overview.md) passwordless extension for the Azure CLI:
57
55
58
-
1. Connect to the server, create a database named **testdb** from a PostgreSQL client, and then create a new non-admin account.
56
+
```azurecli
57
+
az extension add --name serviceconnector-passwordless --upgrade
58
+
```
59
59
60
-
1.Run the following command to connect to the database with admin username and password.
60
+
1.Configure Azure Spring Apps to connect to the PostgreSQL Database with a system-assigned managed identity using the `az spring connection create` command.
### [Using a passwordless connection with a managed identity for flexible server](#tab/Passwordlessflex)
74
+
### [Using a passwordless connection with a managed identity for single server](#tab/Passwordlesssingle)
75
75
76
76
1. Install the [Service Connector](../service-connector/overview.md) passwordless extension for the Azure CLI:
77
77
@@ -82,9 +82,9 @@ Use the following steps to bind your app.
82
82
1. Configure Azure Spring Apps to connect to the PostgreSQL Database with a system-assigned managed identity using the `az spring connection create` command.
@@ -93,21 +93,27 @@ Use the following steps to bind your app.
93
93
--system-identity
94
94
```
95
95
96
-
### [Using a passwordless connection with a managed identity for single server](#tab/Passwordlesssingle)
96
+
### [Using admin credentials](#tab/Secrets)
97
+
98
+
Use the following steps to bind your app.
99
+
100
+
1. Note the admin username and password of your Azure Database for PostgreSQL account.
101
+
102
+
1. Connect to the server, create a database named **testdb** from a PostgreSQL client, and then create a new non-admin account.
103
+
104
+
1. Run the following command to connect to the database with admin username and password.
97
105
98
-
Configure Azure Spring Apps to connect to the PostgreSQL Database with a system-assigned managed identity using the `az spring connection create` command.
0 commit comments