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
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.
# Tutorial: Connect to PostgreSQL Database from a Java Quarkus Container App without secrets using a managed identity
14
14
15
15
[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.
16
16
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).
18
18
19
-
What you will learn:
19
+
What you learn:
20
20
21
21
> [!div class="checklist"]
22
22
> * 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
88
88
89
89
1. Configure the Quarkus app properties.
90
90
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.
92
92
93
93
Delete the existing content in *application.properties* and replace with the following to configure the database for dev, test, and production modes:
94
94
@@ -211,7 +211,7 @@ cd quarkus-quickstarts/hibernate-orm-panache-quickstart
211
211
212
212
## 5. Create and connect a PostgreSQL database with identity connectivity
213
213
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.
215
215
216
216
1. Create the database service.
217
217
@@ -236,7 +236,7 @@ Next, create a PostgreSQL Database and configure your container app to connect t
236
236
**resource-group*→ Use the same resource group name in which you created the web app - for example, `msdocs-quarkus-postgres-webapp-rg`.
237
237
**name*→ 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`)
238
238
**location*→ Use the same location used for the web app. Change to a different location if it doesn't work.
239
-
**public-access*→`None` which sets the server in public access mode with no firewall rules. Rules will be created in a later step.
239
+
**public-access*→`None` which sets the server in public access mode with no firewall rules. Rules are created in a later step.
240
240
**sku-name*→ 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/).
241
241
**tier*→ The compute tier of the server. For more information, see [Azure Database for PostgreSQL pricing](https://azure.microsoft.com/pricing/details/postgresql/server/).
242
242
**active-directory-auth*→`Enabled` to enable Microsoft Entra authentication.
0 commit comments