Skip to content

Commit a5c5b54

Browse files
authored
Merge pull request #244572 from moarychan/moary/quickstart/secure-rest-api-app
New quickstart doc - Launch your first RESTful API app
2 parents 8825a2f + 861df96 commit a5c5b54

21 files changed

+733
-8
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
author: KarlErickson
3+
ms.author: v-shilichen
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 clean up resources using Azure Portal or AZD.
11+
12+
[!INCLUDE [clean-up-resources-portal-or-azd](includes/quickstart-deploy-restful-api-app/clean-up-resources.md)]
13+
14+
-->
15+
16+
## 6. Clean up resources
17+
18+
You can delete the Azure resource group, which includes all the resources in the resource group. Use the following steps to delete the entire resource group, including the newly created service:
19+
20+
### [Azure portal](#tab/Azure-portal)
21+
22+
1. Locate your resource group in the Azure portal.
23+
24+
1. On the navigation menu, select **Resource groups**. Then, select the name of your resource group - for example, **myresourcegroup**.
25+
26+
1. On your resource group page, select **Delete**. Enter the name of your resource group in the text box to confirm deletion - for example, **myresourcegroup**. Then, select **Delete**.
27+
28+
### [Azure Developer CLI](#tab/Azure-Developer-CLI)
29+
30+
Use the following command to delete all the Azure resources used in this sample application:
31+
32+
```bash
33+
azd down
34+
```
35+
36+
The following list describes the command interaction:
37+
38+
- **Total resources to delete: [your-resources-total], are you sure you want to continue?**: Press <kbd>y</kbd>.
39+
40+
The console outputs messages similar to the following example:
41+
42+
```output
43+
SUCCESS: Your application was removed from Azure in xx minutes xx seconds.
44+
```
45+
46+
---

articles/spring-apps/includes/quickstart-deploy-restful-api-app/deploy-restful-api-app-with-consumption-plan.md

Lines changed: 338 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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":::
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
author: karlerickson
3+
ms.author: v-shilichen
4+
ms.service: spring-apps
5+
ms.custom: event-tier1-build-2022
6+
ms.topic: include
7+
ms.date: 10/02/2023
8+
---
9+
10+
<!--
11+
Use the following line at the end of the heading Prerequisites, with blank lines before and after. Each quickstart should provide two tools for developers.
12+
[!INCLUDE [quickstart-tool-introduction](includes/quickstart-deploy-restful-api-app/quickstart-tool-introduction.md)]
13+
-->
14+
15+
This article describes the following options for creating resources and deploying them to Azure Spring Apps:
16+
17+
- Azure portal: Use the Azure portal to create resources and deploy applications step by step. The Azure portal is suitable for developers who are using Azure cloud services for the first time.
18+
- Azure Developer CLI: Use the Azure Developer CLI to create resources and deploy applications through simple commands, and to cover application code and infrastructure as code files needed to provision the Azure resources. The Azure Developer CLI is suitable for developers who are familiar with Azure cloud services.
71.2 KB
Loading
49.5 KB
Loading
57.1 KB
Loading
352 KB
Loading
87.7 KB
Loading
71.2 KB
Loading

0 commit comments

Comments
 (0)