Skip to content

Commit 5e624f5

Browse files
Merge pull request #291471 from Akhilesh-microsoft/ACA/tutorial_java_quarkus_connect_managed_identity_postgresql_database
[ACA: tutorial-java-quarkus-connect-managed-identity-postgresql-database]: Verified the article, reviewed the content, and fixed all editorial issues. Updated ms.date w.r.t freshness pass.
2 parents bfcdb84 + b5b60c2 commit 5e624f5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/container-apps/tutorial-java-quarkus-connect-managed-identity-postgresql-database.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ author: KarlErickson
66
ms.topic: tutorial
77
ms.author: edburns
88
ms.service: azure-container-apps
9-
ms.date: 10/10/2024
9+
ms.date: 12/09/2024
1010
ms.custom: devx-track-azurecli, devx-track-extended-java, devx-track-java, devx-track-javaee, devx-track-javaee-quarkus, passwordless-java, service-connector, devx-track-javaee-quarkus-aca
1111
---
1212

1313
# Tutorial: Connect to PostgreSQL Database from a Java Quarkus Container App without secrets using a managed identity
1414

1515
[Azure Container Apps](overview.md) provides a [managed identity](managed-identity.md) for your app, which is a turn-key solution for securing access to [Azure Database for PostgreSQL](/azure/postgresql/) and other Azure services. Managed identities in Container Apps make your app more secure by eliminating secrets from your app, such as credentials in the environment variables.
1616

17-
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](/azure/postgresql/) database with a managed identity running on [Container Apps](overview.md).
17+
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 have a [Quarkus](https://quarkus.io) application storing data in a [PostgreSQL](/azure/postgresql/) database with a managed identity running on [Container Apps](overview.md).
1818

19-
What you will learn:
19+
What you learn:
2020

2121
> [!div class="checklist"]
2222
> * Configure a Quarkus app to authenticate using Microsoft Entra ID with a PostgreSQL Database.
@@ -88,7 +88,7 @@ cd quarkus-quickstarts/hibernate-orm-panache-quickstart
8888

8989
1. Configure the Quarkus app properties.
9090

91-
The Quarkus configuration is located in the *src/main/resources/application.properties* file. Open this file in your editor, and observe several default properties. The properties prefixed with `%prod` are only used when the application is built and deployed, for example when deployed to Azure App Service. When the application runs locally, `%prod` properties are ignored. Similarly, `%dev` properties are used in Quarkus' Live Coding / Dev mode, and `%test` properties are used during continuous testing.
91+
The Quarkus configuration is located in the *src/main/resources/application.properties* file. Open this file in your editor, and observe several default properties. The properties prefixed with `%prod` are only used when the application is built and deployed, for example when deployed to Azure App Service. When the application runs locally, `%prod` properties are ignored. Similarly, `%dev` properties are used in Quarkus' Live Coding / Dev mode, and `%test` properties are used during continuous testing.
9292

9393
Delete the existing content in *application.properties* and replace with the following to configure the database for dev, test, and production modes:
9494

@@ -211,7 +211,7 @@ cd quarkus-quickstarts/hibernate-orm-panache-quickstart
211211
212212
## 5. Create and connect a PostgreSQL database with identity connectivity
213213

214-
Next, create a PostgreSQL Database and configure your container app to connect to a PostgreSQL Database with a system-assigned managed identity. The Quarkus app will connect to this database and store its data when running, persisting the application state no matter where you run the application.
214+
Next, create a PostgreSQL Database and configure your container app to connect to a PostgreSQL Database with a system-assigned managed identity. The Quarkus app connects to this database and stores its data when running, persisting the application state no matter where you run the application.
215215

216216
1. Create the database service.
217217

@@ -236,7 +236,7 @@ Next, create a PostgreSQL Database and configure your container app to connect t
236236
* *resource-group* → Use the same resource group name in which you created the web app - for example, `msdocs-quarkus-postgres-webapp-rg`.
237237
* *name* &rarr; The PostgreSQL database server name. This name must be **unique across all Azure** (the server endpoint becomes `https://<name>.postgres.database.azure.com`). Allowed characters are `A`-`Z`, `0`-`9`, and `-`. A good pattern is to use a combination of your company name and server identifier. (`msdocs-quarkus-postgres-webapp-db`)
238238
* *location* &rarr; Use the same location used for the web app. Change to a different location if it doesn't work.
239-
* *public-access* &rarr; `None` which sets the server in public access mode with no firewall rules. Rules will be created in a later step.
239+
* *public-access* &rarr; `None` which sets the server in public access mode with no firewall rules. Rules are created in a later step.
240240
* *sku-name* &rarr; The name of the pricing tier and compute configuration - for example, `Standard_B1ms`. For more information, see [Azure Database for PostgreSQL pricing](https://azure.microsoft.com/pricing/details/postgresql/server/).
241241
* *tier* &rarr; The compute tier of the server. For more information, see [Azure Database for PostgreSQL pricing](https://azure.microsoft.com/pricing/details/postgresql/server/).
242242
* *active-directory-auth* &rarr; `Enabled` to enable Microsoft Entra authentication.

0 commit comments

Comments
 (0)