|
| 1 | +--- |
| 2 | +author: KarlErickson |
| 3 | +ms.author: xiada |
| 4 | +ms.service: spring-apps |
| 5 | +ms.topic: include |
| 6 | +ms.date: 10/02/2023 |
| 7 | +--- |
| 8 | + |
| 9 | +<!-- |
| 10 | +For clarity of structure, a separate markdown file is used to describe how to provision PostgreSQL database. |
| 11 | +
|
| 12 | +[!INCLUDE [provision-postgresql-flexible](includes/quickstart-deploy-restful-api-app/provision-postgresql.md)] |
| 13 | +
|
| 14 | +--> |
| 15 | + |
| 16 | +Use the following steps to create an Azure Database for PostgreSQL server: |
| 17 | + |
| 18 | +1. Go to the Azure portal and select **Create a resource**. |
| 19 | + |
| 20 | +1. Select **Databases** > **Azure Database for PostgreSQL**. |
| 21 | + |
| 22 | +1. Select the **Flexible server** deployment option. |
| 23 | + |
| 24 | + :::image type="content" source="../../media/quickstart-deploy-restful-api-app/postgresql-select-deployment-option.png" alt-text="Screenshot of the Azure portal that shows the Select Azure Database for PostgreSQL deployment option page." lightbox="../../media/quickstart-deploy-restful-api-app/postgresql-select-deployment-option.png"::: |
| 25 | + |
| 26 | +1. Fill out the **Basics** tab with the following information: |
| 27 | + |
| 28 | + - **Server name**: *my-demo-pgsql* |
| 29 | + - **Region**: **East US** |
| 30 | + - **PostgreSQL version**: *14* |
| 31 | + - **Workload type**: **Development** |
| 32 | + - **Enable high availability**: unselected |
| 33 | + - **Authentication method**: **PostgreSQL authentication only** |
| 34 | + - **Admin username**: *myadmin* |
| 35 | + - **Password** and **Confirm password**: Enter a password. |
| 36 | + |
| 37 | +1. Use the following information to configure the **Networking** tab: |
| 38 | + |
| 39 | + - **Connectivity method**: **Public access (allowed IP addresses)** |
| 40 | + - **Allow public access from any Azure service within Azure to this server**: selected |
| 41 | + |
| 42 | +1. Select **Review + create** to review your selections, and select **Create** to provision the server. This operation might take a few minutes. |
| 43 | + |
| 44 | +1. Go to your PostgreSQL server in the Azure portal. On the **Overview** page, look for the **Server name** value, and then record it for later use. You need it to configure the environment variables for the app in Azure Spring Apps. |
| 45 | + |
| 46 | +1. Select **Databases** from the navigation menu to create a database. |
| 47 | + |
| 48 | + :::image type="content" source="../../media/quickstart-deploy-restful-api-app/postgresql-create-database.png" alt-text="Screenshot of the Azure portal that shows the Databases page with the Create Database pane open." lightbox="../../media/quickstart-deploy-restful-api-app/postgresql-create-database.png"::: |
0 commit comments