Skip to content

Commit d388575

Browse files
Merge pull request #245237 from Netyyyy/myao/consumption
Update consumption plan for deploy web app
2 parents 922371e + 657ab33 commit d388575

13 files changed

+247
-179
lines changed

articles/spring-apps/includes/quickstart-deploy-web-app/clean-up-resources.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ author: KarlErickson
33
ms.author: xiada
44
ms.service: spring-apps
55
ms.topic: include
6-
ms.date: 07/11/2023
6+
ms.date: 08/31/2023
77
---
88

99
<!--
@@ -25,7 +25,7 @@ You can delete the Azure resource group, which includes all the resources in the
2525

2626
### [Azure Developer CLI](#tab/Azure-Developer-CLI)
2727

28-
Use the following command to delete all the Azure resources used in this sample application.
28+
Use the following command to delete all the Azure resources used in this sample application:
2929

3030
```bash
3131
azd down
@@ -34,12 +34,11 @@ azd down
3434
The following list describes the command interactions:
3535

3636
- **Total resources to delete: \<resources-total>, are you sure you want to continue?**: Press <kbd>y</kbd>.
37-
- **Would you like to permanently delete these resources instead, allowing their names to be reused?**: Press <kbd>y</kbd>. Press <kbd>n</kbd> if you want to reuse the Key Vault.
3837

3938
The console outputs messages similar to the following example:
4039

4140
```output
42-
SUCCESS: Your Azure resources have been deleted.
41+
SUCCESS: Your application was removed from Azure in xx minutes xx seconds.
4342
```
4443

4544
---

articles/spring-apps/includes/quickstart-deploy-web-app/deploy-consumption-plan.md

Lines changed: 185 additions & 105 deletions
Large diffs are not rendered by default.

articles/spring-apps/includes/quickstart-deploy-web-app/deploy-standard-plan.md

Lines changed: 46 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ author: KarlErickson
33
ms.author: xiada
44
ms.service: spring-apps
55
ms.topic: include
6-
ms.date: 07/11/2023
6+
ms.date: 08/31/2023
77
---
88

99
<!--
@@ -19,7 +19,7 @@ First, prepare the Spring project to run locally.
1919

2020
### [Azure portal](#tab/Azure-portal)
2121

22-
Although you use the Azure portal in later steps, you must use the Bash command line to prepare the project locally. Use the following steps to clone and run the app locally. These steps use the
22+
Although you use the Azure portal in later steps, you must use the Bash command line to prepare the project locally. Use the following steps to clone and run the app locally:
2323

2424
1. Use the following command to clone the sample project from GitHub:
2525

@@ -46,8 +46,9 @@ Although you use the Azure portal in later steps, you must use the Bash command
4646

4747
Use the following steps to initialize the web application from the Azure Developer CLI templates:
4848

49-
1. Open a terminal, create a new empty folder, and then change directory to it.
50-
2. Run the following command to initialize the project:
49+
1. Open a terminal, create a new folder, and then change directory into it.
50+
51+
1. Use the following command to initialize the project:
5152

5253
```bash
5354
azd init --template https://github.com/Azure-Samples/ASA-Samples-Web-Application
@@ -65,7 +66,7 @@ Use the following steps to initialize the web application from the Azure Develop
6566
(✓) Done: Initialized git repository
6667
(✓) Done: Downloading template code to: <your-local-path>
6768
68-
Please enter a new environment name: <your-env-name>
69+
Please enter a new environment name: <your-env-name>
6970
7071
SUCCESS: New project initialized!
7172
You can view the template code in your directory: <your-local-path>
@@ -92,7 +93,7 @@ Use the following steps to create a service instance:
9293

9394
1. Select **Compute** > **Azure Spring Apps**.
9495

95-
:::image type="content" source="../../media/quickstart-deploy-web-app/create-service-instance.png" alt-text="Screenshot of the Azure portal showing the Create a resource page with Azure Spring Apps highlighted." lightbox="../../media/quickstart-deploy-web-app/create-service-instance.png":::
96+
:::image type="content" source="../../media/quickstart-deploy-web-app/create-service-instance.png" alt-text="Screenshot of the Azure portal that shows the Create a resource page with Azure Spring Apps highlighted." lightbox="../../media/quickstart-deploy-web-app/create-service-instance.png":::
9697

9798
1. Fill out the **Basics** form with the following information:
9899

@@ -105,13 +106,13 @@ Use the following steps to create a service instance:
105106
| **Region** | The region closest to your users | The location that is closest to your users. |
106107
| **Zone Redundant** | Unchecked | Whether to create your Azure Spring Apps service in an Azure availability zone. Currently, this feature is supported only in some regions. |
107108

108-
:::image type="content" source="../../media/quickstart-deploy-web-app/create-basics.png" alt-text="Screenshot of the Azure portal showing the Create Azure Spring Apps page." lightbox="../../media/quickstart-deploy-web-app/create-basics.png":::
109+
:::image type="content" source="../../media/quickstart-deploy-web-app/create-basics.png" alt-text="Screenshot of the Azure portal that shows the Create Azure Spring Apps page." lightbox="../../media/quickstart-deploy-web-app/create-basics.png":::
109110

110111
1. Select **Review and Create** to review your selections. Select **Create** to provision the Azure Spring Apps instance.
111112

112113
1. On the toolbar, select the **Notifications** icon (a bell) to monitor the deployment process. Once the deployment is done, you can select **Pin to dashboard**, which creates a tile for this service on your Azure portal dashboard as a shortcut to the service's **Overview** page. Select **Go to resource** to open the service's **Overview** page.
113114

114-
:::image type="content" source="../../media/quickstart-deploy-web-app/notifications.png" alt-text="Screenshot of the Azure portal showing the Overview page with the Notifications pane open." lightbox="../../media/quickstart-deploy-web-app/notifications.png":::
115+
:::image type="content" source="../../media/quickstart-deploy-web-app/notifications.png" alt-text="Screenshot of the Azure portal that shows the Overview page with the Notifications pane open." lightbox="../../media/quickstart-deploy-web-app/notifications.png":::
115116

116117
### 3.3. Prepare the PostgreSQL instance
117118

@@ -127,13 +128,13 @@ Use the following steps to connect your service instances:
127128

128129
1. On the **Create App** page, fill in the app name and select *Java 17* as the runtime platform.
129130

130-
:::image type="content" source="../../media/quickstart-deploy-web-app/create-app.png" alt-text="Screenshot of the Azure portal showing the Create app pane." lightbox="../../media/quickstart-deploy-web-app/create-app.png":::
131+
:::image type="content" source="../../media/quickstart-deploy-web-app/create-app.png" alt-text="Screenshot of the Azure portal that shows the Create app pane." lightbox="../../media/quickstart-deploy-web-app/create-app.png":::
131132

132133
1. Select **Create** to finish the app creation and select the app to view details.
133134

134135
1. Select **Service Connector** from the navigation pane to create a new service connection.
135136

136-
:::image type="content" source="../../media/quickstart-deploy-web-app/app-service-connector.png" alt-text="Screenshot of the Azure portal showing the Service Connector page with the Create button highlighted." lightbox="../../media/quickstart-deploy-web-app/app-service-connector.png":::
137+
:::image type="content" source="../../media/quickstart-deploy-web-app/app-service-connector.png" alt-text="Screenshot of the Azure portal that shows the Service Connector page with the Create button highlighted." lightbox="../../media/quickstart-deploy-web-app/app-service-connector.png":::
137138

138139
1. Fill out the **Basics** tab with the following information:
139140

@@ -144,7 +145,7 @@ Use the following steps to connect your service instances:
144145
- **PostgreSQL database**: *todo*
145146
- **Client type**: **SpringBoot**
146147

147-
:::image type="content" source="../../media/quickstart-deploy-web-app/app-service-connector-basics.png" alt-text="Screenshot of the Azure portal showing the Basics tab of the Create connection pane for connecting to PostgreSQL." lightbox="../../media/quickstart-deploy-web-app/app-service-connector-basics.png":::
148+
:::image type="content" source="../../media/quickstart-deploy-web-app/app-service-connector-basics.png" alt-text="Screenshot of the Azure portal that shows the Basics tab of the Create connection pane for connecting to PostgreSQL." lightbox="../../media/quickstart-deploy-web-app/app-service-connector-basics.png":::
148149

149150
1. Configure the **Authentication** tab with the following information:
150151

@@ -153,13 +154,13 @@ Use the following steps to connect your service instances:
153154
- **Username**: *myadmin*
154155
- **Password**: Enter your password.
155156

156-
:::image type="content" source="../../media/quickstart-deploy-web-app/app-service-connector-authentication.png" alt-text="Screenshot of the Azure portal showing the Authentication tab of the Create connection pane with the Connection string option highlighted." lightbox="../../media/quickstart-deploy-web-app/app-service-connector-authentication.png":::
157+
:::image type="content" source="../../media/quickstart-deploy-web-app/app-service-connector-authentication.png" alt-text="Screenshot of the Azure portal that shows the Authentication tab of the Create connection pane with the Connection string option highlighted." lightbox="../../media/quickstart-deploy-web-app/app-service-connector-authentication.png":::
157158

158159
1. Select **Review and Create** to review your selections, then select **Create** to create the connection.
159160

160161
### [Azure Developer CLI](#tab/Azure-Developer-CLI)
161162

162-
1. Run the following command to log in Azure with OAuth2. Ignore this step if you've already logged in.
163+
1. Use the following command to log in Azure with OAuth2. Ignore this step if you've already logged in.
163164

164165
```bash
165166
azd auth login
@@ -171,7 +172,13 @@ Use the following steps to connect your service instances:
171172
azd config set alpha.springapp on
172173
```
173174

174-
1. Run the following command to provision the template's infrastructure to Azure:
175+
1. Use the following command to set the template with the **standard** plan:
176+
177+
```bash
178+
azd env set PLAN standard
179+
```
180+
181+
1. Use the following command to provision the template's infrastructure to Azure:
175182

176183
```bash
177184
azd provision
@@ -182,6 +189,17 @@ Use the following steps to connect your service instances:
182189
- **Please select an Azure Subscription to use**: Use arrows to move, type to filter, then press <kbd>ENTER</kbd>.
183190
- **Please select an Azure location to use**: Use arrows to move, type to filter, then press <kbd>ENTER</kbd>.
184191

192+
The console outputs messages similar to the following example:
193+
194+
```output
195+
SUCCESS: Your application was provisioned in Azure in xx minutes xx seconds.
196+
You can view the resources created under the resource group rg-<your-environment-name> in Azure Portal:
197+
https://portal.azure.com/#@/resource/subscriptions/<your-subscription-id>/resourceGroups/<your-resource-group>/overview
198+
```
199+
200+
> [!NOTE]
201+
> This command may take a while to complete. You see a progress indicator as it provisions Azure resources.
202+
185203
---
186204

187205
## 4. Deploy the app to Azure Spring Apps
@@ -195,12 +213,12 @@ Use the following steps to deploy using the [Maven plugin for Azure Spring Apps]
195213
1. Navigate to the sample project directory and run the following command to configure the app in Azure Spring Apps:
196214

197215
```bash
198-
./mvnw com.microsoft.azure:azure-spring-apps-maven-plugin:1.17.0:config
216+
./mvnw com.microsoft.azure:azure-spring-apps-maven-plugin:1.18.0:config
199217
```
200218

201219
The following list describes the command interactions:
202220

203-
- **Select Maven child module**: Select the module to configure, then enter the number for the web module.
221+
- **Select child modules to configure**: Select the module to configure, then enter the number of the *SimpleTodo Web* module.
204222
- **OAuth2 login**: Authorize the login to Azure based on the OAuth2 protocol.
205223
- **Select subscription**: Select the subscription list number of the Azure Spring Apps instance you created, which defaults to the first subscription in the list. If you use the default number, press <kbd>ENTER</kbd> directly.
206224
- **Select Azure Spring Apps**: Select the number of the Azure Spring Apps instance you created. If you use the default number, press <kbd>ENTER</kbd> directly.
@@ -210,7 +228,7 @@ Use the following steps to deploy using the [Maven plugin for Azure Spring Apps]
210228
1. Use the following command to deploy the app:
211229

212230
```bash
213-
./mvnw com.microsoft.azure:azure-spring-apps-maven-plugin:1.17.0:deploy
231+
./mvnw com.microsoft.azure:azure-spring-apps-maven-plugin:1.18.0:deploy
214232
```
215233

216234
The following list describes the command interactions:
@@ -232,13 +250,13 @@ Use the following steps to deploy using the [Maven plugin for Azure Spring Apps]
232250

233251
Use the following steps to package the app, provision the Azure resources required by the web application, and then deploy to Azure Spring Apps:
234252

235-
1. Run the following command to package a deployable copy of your application:
253+
1. Use the following command to package a deployable copy of your application:
236254

237255
```bash
238256
azd package
239257
```
240258

241-
1. Run the following command to deploy the application code to those newly provisioned resources:
259+
1. Use the following command to deploy the application code to those newly provisioned resources:
242260

243261
```bash
244262
azd deploy
@@ -247,13 +265,17 @@ Use the following steps to package the app, provision the Azure resources requir
247265
The console outputs messages similar to the following example:
248266

249267
```output
250-
| | Deploying service simple-todo-webExecuting prepackage hook => /var/folders/m1/twqn055s7ll1bw0sstvkc0j40000gn/T/azd-prepackage-708945870.sh
268+
Deploying services (azd deploy)
269+
270+
WARNING: Feature 'springapp' is in alpha stage.
271+
To learn more about alpha features and their support, visit https://aka.ms/azd-feature-stages.
272+
251273
(✓) Done: Deploying service simple-todo-web
252-
- Endpoint: https://asa-2jqpw3tejrxdi-simple-todo-web.azuremicroservices.io/
274+
- Endpoint: https://<your-Azure-Spring-Apps-instance-name>-demo.azuremicroservices.io/
253275
254-
SUCCESS: Your Azure app has been deployed!
255-
You can view the resources created under the resource group rg-<your-environment-name>-<a-random-string> in Azure Portal:
256-
https://portal.azure.com/#@/resource/subscriptions/<>your-subscription-id/resourceGroups/rg-<your-environment-name>-<a-random-string>/overview
276+
SUCCESS: Your application was deployed to Azure in xx minutes xx seconds.
277+
You can view the resources created under the resource group rg-<your-environment-name> in Azure Portal:
278+
https://portal.azure.com/#@/resource/subscriptions/<your-subscription-id>/resourceGroups/rg-<your-environment-name>/overview
257279
```
258280

259281
The output **Endpoint** is the endpoint to access the `todo` application.

articles/spring-apps/includes/quickstart-deploy-web-app/provision-postgresql.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ author: KarlErickson
33
ms.author: xiada
44
ms.service: spring-apps
55
ms.topic: include
6-
ms.date: 07/11/2023
6+
ms.date: 08/31/2023
77
---
88

99
<!--
@@ -17,13 +17,9 @@ Use the following steps to create an Azure Database for PostgreSQL server:
1717

1818
1. In the Azure portal, select **Create a resource**.
1919

20-
1. Select **Databases** > **Azure Database for PostgreSQL**.
20+
1. Select **Databases** > **Azure Database for PostgreSQL Flexible Server**.
2121

22-
:::image type="content" source="../../media/quickstart-deploy-web-app/postgresql-create-server.png" alt-text="Screenshot of the Azure portal showing the Create a resource page with Azure Database for PostgreSQL highlighted." lightbox="../../media/quickstart-deploy-web-app/postgresql-create-server.png":::
23-
24-
1. Select the **Flexible server** deployment option.
25-
26-
:::image type="content" source="../../media/quickstart-deploy-web-app/postgresql-select-deployment-option.png" alt-text="Screenshot of the Azure portal showing the Select Azure Database for PostgreSQL deployment option page." lightbox="../../media/quickstart-deploy-web-app/postgresql-select-deployment-option.png":::
22+
:::image type="content" source="../../media/quickstart-deploy-web-app/postgresql-create-flexible-server.png" alt-text="Screenshot of the Azure portal that shows the Create a resource page with Azure Database for PostgreSQL highlighted." lightbox="../../media/quickstart-deploy-web-app/postgresql-create-flexible-server.png":::
2723

2824
1. Fill out the **Basics** tab with the following information:
2925

@@ -36,19 +32,19 @@ Use the following steps to create an Azure Database for PostgreSQL server:
3632
- **Admin username**: *myadmin*
3733
- **Password** and **Confirm password**: Enter a password.
3834

39-
:::image type="content" source="../../media/quickstart-deploy-web-app/postgresql-create-server-basics.png" alt-text="Screenshot of the Azure portal showing the Server details page." lightbox="../../media/quickstart-deploy-web-app/postgresql-create-server-basics.png":::
35+
:::image type="content" source="../../media/quickstart-deploy-web-app/postgresql-create-server-basics.png" alt-text="Screenshot of the Azure portal that shows the Server details page." lightbox="../../media/quickstart-deploy-web-app/postgresql-create-server-basics.png":::
4036

4137
1. Configure the **Networking** tab using the following information:
4238

4339
- **Connectivity method**: **Public access (allowed IP addresses)**
4440
- **Allow public access from any Azure service within Azure to this server**: selected
4541

46-
:::image type="content" source="../../media/quickstart-deploy-web-app/postgresql-create-server-networking.png" alt-text="Screenshot of the Azure portal showing the Networking tab." lightbox="../../media/quickstart-deploy-web-app/postgresql-create-server-networking.png":::
42+
:::image type="content" source="../../media/quickstart-deploy-web-app/postgresql-create-server-networking.png" alt-text="Screenshot of the Azure portal that shows the Networking tab." lightbox="../../media/quickstart-deploy-web-app/postgresql-create-server-networking.png":::
4743

4844
1. Select **Review + create** to review your selections, then select **Create** to provision the server. This operation may take a few minutes.
4945

5046
1. Go to your PostgreSQL server in the Azure portal.
5147

5248
1. Select **Databases** from the navigation pane to create a database.
5349

54-
:::image type="content" source="../../media/quickstart-deploy-web-app/postgresql-create-database.png" alt-text="Screenshot of the Azure portal showing the Databases page with the Create Database pane open." lightbox="../../media/quickstart-deploy-web-app/postgresql-create-database.png":::
50+
:::image type="content" source="../../media/quickstart-deploy-web-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-web-app/postgresql-create-database.png":::
43.6 KB
Loading
101 KB
Loading
38 KB
Loading
-160 KB
Loading
47.3 KB
Loading
53.4 KB
Loading

0 commit comments

Comments
 (0)