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/app-service/tutorial-java-quarkus-postgresql-app.md
+5-42Lines changed: 5 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,47 +58,6 @@ The tutorial uses [Quarkus sample: Hibernate ORM with Panache and RESTEasy](http
58
58
59
59
For more information on how the Quarkus sample application is created, see Quarkus documentation [Simplified Hibernate ORM with Panache](https://quarkus.io/guides/hibernate-orm-panache) and [Configure data sources in Quarkus](https://quarkus.io/guides/datasource).
60
60
61
-
## 1 - Create App Service and PostgreSQL resources
62
-
63
-
In this step, you create the Azure resources. The steps used in this tutorial create a set of secure-by-default resources that include App Service and Azure Database for PostgreSQL. For the creation process, you'll specify:
64
-
65
-
* The **Name** for the web app. It's the name used as part of the DNS name for your webapp in the form of `https://<app-name>.azurewebsites.net`.
66
-
* The **Region** to run the app physically in the world.
67
-
* The **Runtime stack** for the app. It's where you select the version of Java SDK to use for your app.
68
-
* The **Hosting plan** for the app. It's the pricing tier that includes the set of features and scaling capacity for your app.
69
-
* The **Resource Group** for the app. A resource group lets you group (in a logical container) all the Azure resources needed for the application.
70
-
71
-
Sign in to the [Azure portal](https://portal.azure.com/) and follow these steps to create your Azure App Service resources.
72
-
73
-
:::row:::
74
-
:::column span="2":::
75
-
**Step 1:** In the Azure portal:
76
-
1. Enter "web app database" in the search bar at the top of the Azure portal.
77
-
1. Select the item labeled **Web App + Database** under the **Marketplace** heading.
78
-
You can also navigate to the [creation wizard](https://portal.azure.com/?feature.customportal=false#create/Microsoft.AppServiceWebAppDatabaseV3) directly.
79
-
:::column-end:::
80
-
:::column:::
81
-
:::image type="content" source="./media/tutorial-java-quarkus-postgresql-app/azure-portal-create-app-postgres-1.png" alt-text="A screenshot showing how to use the search box in the top tool bar to find the Web App + Database creation wizard." lightbox="./media/tutorial-java-quarkus-postgresql-app/azure-portal-create-app-postgres-1.png":::
82
-
:::column-end:::
83
-
:::row-end:::
84
-
:::row:::
85
-
:::column span="2":::
86
-
**Step 2:** In the **Create Web App + Database** page, fill out the form as follows.
87
-
1. *Resource Group*→ Select **Create new** and use a name of **msdocs-quarkus-postgres-tutorial**.
88
-
1. *Region*→ Any Azure region near you.
89
-
1. *Name*→**msdocs-quarkus-postgres-XYZ** where *XYZ* is any three random characters. This name must be unique across Azure.
90
-
1. *Runtime stack*→**Java 17**.
91
-
1. *Java web server stack*→**Java SE (Embedded Web Server)**.
92
-
1. *Database*→**PostgreSQL - Flexible Server**. The server name and database name are set by default to appropriate values.
93
-
1. *Hosting plan*→**Basic**. When you're ready, you can [scale up](manage-scale-up.md) to a production pricing tier later.
94
-
1. Select **Review + create**.
95
-
1. After validation completes, select **Create**.
96
-
:::column-end:::
97
-
:::column:::
98
-
:::image type="content" source="./media/tutorial-java-quarkus-postgresql-app/azure-portal-create-app-postgres-2.png" alt-text="A screenshot showing how to configure a new app and database in the Web App + Database wizard." lightbox="./media/tutorial-java-quarkus-postgresql-app/azure-portal-create-app-postgres-2.png":::
99
-
:::column-end:::
100
-
:::row-end:::
101
-
102
61
## 2. Create App Service and PostgreSQL
103
62
104
63
First, you create the Azure resources. The steps used in this tutorial create a set of secure-by-default resources that include App Service and Azure Database for PostgreSQL. For the creation process, you'll specify:
@@ -360,7 +319,6 @@ When you're finished, you can delete all of the resources from your Azure subscr
360
319
:::image type="content" source="./media/tutorial-java-quarkus-postgresql-app/azure-portal-clean-up-resources-3.png" alt-text="A screenshot of the confirmation dialog for deleting a resource group in the Azure portal." lightbox="./media/tutorial-java-quarkus-postgresql-app/azure-portal-clean-up-resources-3.png"::::
361
320
:::column-end:::
362
321
:::row-end:::
363
-
::: zone-end
364
322
365
323
## Troubleshooting
366
324
@@ -374,6 +332,11 @@ This Quarkus error is most likely because the app can't connect to the Azure dat
374
332
375
333
## Frequently asked questions
376
334
335
+
-[How much does this setup cost?](#how-much-does-this-setup-cost)
336
+
-[How do I connect to the PostgreSQL server that's secured behind the virtual network with other tools?](#how-do-i-connect-to-the-postgresql-server-thats-secured-behind-the-virtual-network-with-other-tools)
337
+
-[How does local app development work with GitHub Actions?](#how-does-local-app-development-work-with-github-actions)
338
+
-[What if I want to run tests with PostgreSQL during the GitHub workflow?](#what-if-i-want-to-run-tests-with-postgresql-during-the-github-workflow)
0 commit comments