Skip to content

Commit 1a00493

Browse files
authored
Merge pull request #49319 from yoshioterada/yoshio-patch1-deploy-quarkus-app-2-aca
Updated the documents for Deploy a Quarkus application to Azure Container Apps
2 parents f935c7b + cd7ebfa commit 1a00493

14 files changed

+92
-73
lines changed

learn-pr/azure/deploy-java-quarkus-azure-container-app-postgres/1-introduction.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ metadata:
66
prefetch-feature-rollout: true
77
title: Introduction
88
description: Introduction
9-
ms.date: 02/14/2024
10-
author: agoncal
11-
ms.author: antoniomanug
9+
ms.date: 03/06/2025
10+
author: KarlErickson
11+
ms.author: karler
12+
ms.reviewer: yoterada
1213
ms.topic: unit
1314
ms.custom:
1415
- team=devdiv

learn-pr/azure/deploy-java-quarkus-azure-container-app-postgres/2-build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ metadata:
66
prefetch-feature-rollout: true
77
title: Create a Quarkus application
88
description: Create a Quarkus application, test it, and run it locally.
9-
ms.date: 02/14/2024
10-
author: agoncal
11-
ms.author: antoniomanug
9+
ms.date: 03/05/2025
10+
author: KarlErickson
11+
ms.author: karler
12+
ms.reviewer: yoterada
1213
ms.topic: unit
1314
ms.custom:
1415
- team=devdiv

learn-pr/azure/deploy-java-quarkus-azure-container-app-postgres/3-exercise-build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ metadata:
66
prefetch-feature-rollout: true
77
title: Exercise - Create a Quarkus application
88
description: In this exercise, you bootstrap a Quarkus application, develop it, test it, and run it locally.
9-
ms.date: 02/14/2024
10-
author: agoncal
11-
ms.author: antoniomanug
9+
ms.date: 03/06/2025
10+
author: KarlErickson
11+
ms.author: karler
12+
ms.reviewer: yoterada
1213
ms.topic: unit
1314
ms.custom:
1415
- team=devdiv

learn-pr/azure/deploy-java-quarkus-azure-container-app-postgres/4-azure-container-apps.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ metadata:
66
prefetch-feature-rollout: true
77
title: Set up Azure Container Apps
88
description: Learn about setting up the Azure Container Apps resources and the PostgreSQL database.
9-
ms.date: 02/14/2024
10-
author: agoncal
11-
ms.author: antoniomanug
9+
ms.date: 03/06/2025
10+
author: KarlErickson
11+
ms.author: karler
12+
ms.reviewer: yoterada
1213
ms.topic: unit
1314
ms.custom:
1415
- team=devdiv

learn-pr/azure/deploy-java-quarkus-azure-container-app-postgres/5-exercise-rg-postgres.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ metadata:
66
prefetch-feature-rollout: true
77
title: Exercise - Set up Azure Container Apps
88
description: In this exercise, you set up the Azure Resource Group and the PostgreSQL database.
9-
ms.date: 02/14/2024
10-
author: agoncal
11-
ms.author: antoniomanug
9+
ms.date: 03/06/2025
10+
author: KarlErickson
11+
ms.author: karler
12+
ms.reviewer: yoterada
1213
ms.topic: unit
1314
ms.custom:
1415
- team=devdiv

learn-pr/azure/deploy-java-quarkus-azure-container-app-postgres/6-exercise-azure-container-apps.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ metadata:
66
prefetch-feature-rollout: true
77
title: Deploy a Quarkus application to Azure Container Apps
88
description: In this exercise, you set up an Azure Container Apps environment and deploy a Quarkus Docker container.
9-
ms.date: 02/14/2024
10-
author: agoncal
11-
ms.author: antoniomanug
9+
ms.date: 03/06/2025
10+
author: KarlErickson
11+
ms.author: karler
12+
ms.reviewer: yoterada
1213
ms.topic: unit
1314
ms.custom:
1415
- team=devdiv

learn-pr/azure/deploy-java-quarkus-azure-container-app-postgres/7-exercise-secure.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ metadata:
66
prefetch-feature-rollout: true
77
title: Exercise - Restrict access to the Azure Container Apps environment
88
description: In this exercise, you restrict access to the PostgreSQL database environment by changing the firewall rules.
9-
ms.date: 02/14/2024
10-
author: agoncal
11-
ms.author: antoniomanug
9+
ms.date: 03/06/2025
10+
author: KarlErickson
11+
ms.author: karler
12+
ms.reviewer: yoterada
1213
ms.topic: unit
1314
ms.custom: team=devdiv, devx-track-extended-java, devx-track-azurecli
1415
ms.contributors: antoniomanug

learn-pr/azure/deploy-java-quarkus-azure-container-app-postgres/8-knowledge-check.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ metadata:
66
prefetch-feature-rollout: true
77
title: Knowledge check
88
description: Knowledge check
9-
ms.date: 02/14/2024
10-
author: agoncal
11-
ms.author: antoniomanug
9+
ms.date: 03/06/2025
10+
author: KarlErickson
11+
ms.author: karler
12+
ms.reviewer: yoterada
1213
ms.topic: unit
1314
ms.custom:
1415
- team=devdiv

learn-pr/azure/deploy-java-quarkus-azure-container-app-postgres/9-summary.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ metadata:
66
prefetch-feature-rollout: true
77
title: Summary
88
description: Summary
9-
ms.date: 02/14/2024
10-
author: agoncal
11-
ms.author: antoniomanug
9+
ms.date: 03/06/2025
10+
author: KarlErickson
11+
ms.author: karler
12+
ms.reviewer: yoterada
1213
ms.topic: unit
1314
ms.custom:
1415
- team=devdiv

learn-pr/azure/deploy-java-quarkus-azure-container-app-postgres/includes/3-exercise-build.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ You don't need to specify Azure dependencies because you run your application lo
1717
At a command prompt, generate the to-do application:
1818

1919
```bash
20-
mvn -U io.quarkus:quarkus-maven-plugin:3.7.3:create \
21-
-DplatformVersion=3.7.3 \
20+
mvn -U io.quarkus:quarkus-maven-plugin:3.19.0:create \
21+
-DplatformVersion=3.18.4 \
2222
-DprojectGroupId=com.example.demo \
2323
-DprojectArtifactId=todo \
2424
-DclassName="com.example.demo.TodoResource" \
@@ -179,25 +179,21 @@ mvnw.cmd quarkus:dev # On Windows
179179

180180
The Quarkus application should start and connect to your database. You should see the following output:
181181

182-
```shell
183-
[io.qua.dat.dep.dev.DevServicesDatasourceProcessor] Dev Services for the default datasource (postgresql) started.
184-
[io.qua.hib.orm.dep.HibernateOrmProcessor] Setting quarkus.hibernate-orm.database.generation=drop-and-create to initialize Dev Services managed database
182+
```output
183+
2025-02-28 08:38:33,418 INFO [io.qua.dat.dep.dev.DevServicesDatasourceProcessor] (build-28) Dev Services for default datasource (postgresql) started - container ID is ce37977203b0
184+
2025-02-28 08:38:33,421 INFO [io.qua.hib.orm.dep.dev.HibernateOrmDevServicesProcessor] (build-6) Setting quarkus.hibernate-orm.database.generation=drop-and-create to initialize Dev Services managed database
185185
__ ____ __ _____ ___ __ ____ ______
186186
--/ __ \/ / / / _ | / _ \/ //_/ / / / __/
187187
-/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
188188
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/
189-
[org.hib.eng.jdb.spi.SqlExceptionHelper] (JPA Startup Thread) SQL Warning Code: 0, SQLState: 00000
189+
2025-02-28 08:38:35,278 INFO [io.quarkus] (Quarkus Main Thread) todo 1.0.0-SNAPSHOT on JVM (powered by Quarkus 3.18.4) started in 5.367s. Listening on: http://localhost:8080
190190
191-
[org.hib.eng.jdb.spi.SqlExceptionHelper] (JPA Startup Thread) table "todo" does not exist, skipping
192-
[org.hib.eng.jdb.spi.SqlExceptionHelper] (JPA Startup Thread) SQL Warning Code: 0, SQLState: 00000
193-
[org.hib.eng.jdb.spi.SqlExceptionHelper] (JPA Startup Thread) sequence "hibernate_sequence" does not exist, skipping
194-
[io.quarkus] (Quarkus Main Thread) todo 1.0.0-SNAPSHOT on JVM (powered by Quarkus) started in 4.381s. Listening on: http://localhost:8080
195-
[io.quarkus] (Quarkus Main Thread) Profile dev activated. Live Coding activated.
196-
[io.quarkus] (Quarkus Main Thread) Installed features: [agroal, cdi, hibernate-orm, hibernate-orm-panache, jdbc-postgresql, narayana-jta, resteasy, resteasy-jackson, smallrye-context-propagation, vertx]
191+
2025-02-28 08:38:35,280 INFO [io.quarkus] (Quarkus Main Thread) Profile dev activated. Live Coding activated.
192+
2025-02-28 08:38:35,280 INFO [io.quarkus] (Quarkus Main Thread) Installed features: [agroal, cdi, hibernate-orm, hibernate-orm-panache, jdbc-postgresql, narayana-jta, resteasy, resteasy-jackson, smallrye-context-propagation, vertx]
197193
198194
--
199195
Tests paused
200-
Press [r] to resume testing, [o] Toggle test output, [:] for the terminal, [h] for more options>
196+
Press [e] to edit command line args (currently ''), [r] to resume testing, [o] Toggle test output, [:] for the terminal, [h] for more options>
201197
```
202198

203199
To test the application, you can use cURL.
@@ -214,7 +210,7 @@ curl --header "Content-Type: application/json" \
214210
This command should return the created item (with an identifier):
215211

216212
```json
217-
{"id":1,"description":"Take Quarkus MS Learn","details":"Take the MS Learn on deploying Quarkus to Azure Container Apps","done":true,"createdAt":"2022-12-30T15:17:20.280203Z"}
213+
{"id":1,"description":"Take Quarkus MS Learn","details":"Take the MS Learn on deploying Quarkus to Azure Container Apps","done":true,"createdAt":"2025-02-26T07:27:30.093447Z"}
218214
```
219215

220216
Create a second to-do by using the following cURL command:
@@ -290,7 +286,7 @@ mvnw.cmd clean test # On Windows
290286

291287
You should see output that looks similar to this:
292288

293-
```shell
289+
```output
294290
[INFO] -------------------------------------------------------
295291
[INFO] T E S T S
296292
[INFO] -------------------------------------------------------

0 commit comments

Comments
 (0)