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
This tutorial walks you through the process of building, configuring, deploying, and scaling Java container apps on Azure. At the end of this tutorial, you'll have a [Quarkus](https://quarkus.io) application storing data in a [PostgreSQL](../postgresql/index.yml) database with a managed identity running on [Container Apps](overview.md).
18
18
19
-
> [!NOTE]
20
-
> Azure Active Directory Authentication for PostgreSQL Flexible Server is currently in preview.
21
-
22
19
What you will learn:
23
20
24
21
> [!div class="checklist"]
@@ -32,7 +29,7 @@ What you will learn:
32
29
33
30
## 1. Prerequisites
34
31
35
-
*[Azure CLI](/cli/azure/install-azure-cli) version 2.41.0 or higher.
32
+
*[Azure CLI](/cli/azure/install-azure-cli) version 2.45.0 or higher.
Copy file name to clipboardExpand all lines: articles/spring-apps/how-to-bind-postgres.md
+40-31Lines changed: 40 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ With Azure Spring Apps, you can bind select Azure services to your applications
24
24
25
25
* An application deployed to Azure Spring Apps. For more information, see [Quickstart: Deploy your first application to Azure Spring Apps](./quickstart.md).
26
26
* An Azure Database for PostgreSQL Flexible Server instance.
27
-
*[Azure CLI](/cli/azure/install-azure-cli) version 2.41.0 or higher.
27
+
*[Azure CLI](/cli/azure/install-azure-cli) version 2.45.0 or higher.
28
28
29
29
## Prepare your Java project
30
30
@@ -49,40 +49,49 @@ 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 a passwordless connection with a managed identity for flexible server (Recommended)](#tab/Passwordlessflex)
52
+
### [Using a passwordless connection with a managed identity for flexible server](#tab/Passwordlessflex)
53
53
54
-
Configure Azure Spring Apps to connect to the PostgreSQL Database with a system-assigned managed identity using the `az spring connection create` command.
54
+
1. Install the [Service Connector](../service-connector/overview.md) passwordless extension for the Azure CLI:
55
55
56
-
> [!NOTE]
57
-
> Azure Active Directory Authentication for PostgreSQL Flexible Server is currently in preview.
56
+
```azurecli
57
+
az extension add --name serviceconnector-passwordless --upgrade
58
+
```
59
+
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 single server](#tab/Passwordlesssingle)
72
75
73
-
Configure Azure Spring Apps to connect to the PostgreSQL Database with a system-assigned managed identity using the `az spring connection create` command.
76
+
1. Install the [Service Connector](../service-connector/overview.md) passwordless extension for the Azure CLI:
77
+
78
+
```azurecli
79
+
az extension add --name serviceconnector-passwordless --upgrade
80
+
```
81
+
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.
0 commit comments