Skip to content

Commit 437bf5c

Browse files
committed
edits
1 parent 0b4ff01 commit 437bf5c

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed

articles/spring-apps/quickstart-deploy-event-driven-app-standard-consumption.md

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to deploy an event-driven application to Azure Spring App
44
author: karlerickson
55
ms.service: spring-apps
66
ms.topic: quickstart
7-
ms.date: 03/22/2023
7+
ms.date: 03/17/2023
88
ms.author: rujche
99
ms.custom: devx-track-java, devx-track-azurecli, mode-other, event-tier1-build-2022, engagement-fy23
1010
---
@@ -19,26 +19,30 @@ ms.custom: devx-track-java, devx-track-azurecli, mode-other, event-tier1-build-2
1919
2020
**This article applies to:** ✔️ Standard consumption (Preview) ❌ Basic/Standard ❌ Enterprise
2121

22-
This article explains how to deploy a Spring Boot event-driven application to Azure Spring Apps with the Standard consumption plan. The sample project is an event-driven application that subscribes to a [Service Bus queue](/azure/service-bus-messaging/service-bus-queues-topics-subscriptions#queues) named `lower-case`, and then handles the message and sends another message to another queue named `upper-case`. To make the app simple, message processing just converts the message to uppercase. The following diagram depicts this process:
22+
This article explains how to deploy a Spring Boot event-driven application to Azure Spring Apps with the Standard consumption plan.
2323

24-
:::image type="content" source="media/quickstart-for-event-driven-app/diagram.png" alt-text="Screenshot of Spring event-driven app architecture." lightbox="media/quickstart-for-event-driven-app/diagram.png":::
24+
The sample project is an event-driven application that subscribes to a [Service Bus queue](/azure/service-bus-messaging/service-bus-queues-topics-subscriptions#queues) named `lower-case`, and then handles the message and sends another message to another queue named `upper-case`. To make the app simple, message processing just converts the message to uppercase. The following diagram depicts this process:
25+
26+
:::image type="content" source="media/quickstart-deploy-event-driven-app-standard-consumption/diagram.png" alt-text="Diagram of Spring event-driven app architecture." lightbox="media/quickstart-deploy-event-driven-app-standard-consumption/diagram.png":::
2527

2628
## Prerequisites
2729

28-
- [Git](https://git-scm.com/downloads).
29-
- [Java Development Kit (JDK)](/java/azure/jdk/). Version 17.
3030
- An Azure subscription. If you don't have a subscription, create a [free account](https://azure.microsoft.com/free/) before you begin.
3131
- [Azure CLI](/cli/azure/install-azure-cli). Version 2.45.0 or greater.
32+
- [Git](https://git-scm.com/downloads).
33+
- [Java Development Kit (JDK)](/java/azure/jdk/), version 17.
34+
35+
## Clone and build the sample project
3236

33-
## Clone and build sample project
37+
Use the following steps to prepare the sample locally.
3438

35-
1. The sample project is ready on GitHub. Clone sample project with this command:
39+
1. The sample project is ready on GitHub. Clone sample project by using the following command:
3640

3741
```shell
3842
git clone https://github.com/Azure-Samples/ASA-Samples-Event-Driven-Application.git
3943
```
4044

41-
1. Build the sample project.
45+
1. Build the sample project by using the following commands:
4246

4347
```shell
4448
cd ASA-Samples-Event-Driven-Application
@@ -47,11 +51,11 @@ This article explains how to deploy a Spring Boot event-driven application to Az
4751

4852
## Prepare the cloud environment
4953

50-
The main resources needed to run this sample is an Azure Spring Apps instance and an Azure Service Bus instance. This section provides the steps to create these resources.
54+
The main resources you needto run this sample is an Azure Spring Apps instance and an Azure Service Bus instance. This section provides the steps to create these resources.
5155

5256
### Step 1 - Set names for resources
5357

54-
Set variables to the names of your resources, and to values for other settings as needed. Names of resources in Azure must be unique.
58+
Use the following commands to create variables for the names of your resources and for other settings as needed. Resource names in Azure must be unique.
5559

5660
```azurecli
5761
RESOURCE_GROUP=<event-driven-app-resource-group-name>
@@ -64,7 +68,7 @@ APP_NAME=<event-driven-app-name>
6468

6569
### Step 2 - Create a new resource group
6670

67-
To manage the resources easily, create a resource group to hold these resources. Follow the following steps to create a new resource group.
71+
To manage the resources easily, create a resource group to hold these resources. Use the following steps to create a new resource group.
6872

6973
1. Sign in to Azure by using the following command:
7074

@@ -90,13 +94,13 @@ To manage the resources easily, create a resource group to hold these resources.
9094
az account set --subscription <subscription-ID>
9195
```
9296

93-
1. Create a resource group.
97+
1. Create a resource group by using the following command:
9498

9599
```azurecli
96100
az group create --resource-group ${RESOURCE_GROUP}
97101
```
98102

99-
1. Set the newly created resource group as default resource group.
103+
1. Use the following command to set the newly created resource group as the default resource group.
100104

101105
```azurecli
102106
az configure --defaults group=${RESOURCE_GROUP}
@@ -215,12 +219,12 @@ SERVICE_BUS_CONNECTION_STRING=$(az servicebus namespace authorization-rule keys
215219
--namespace-name ${SERVICE_BUS_NAME_SPACE} \
216220
--name RootManageSharedAccessKey \
217221
--query primaryConnectionString \
218-
-o tsv)
222+
--output tsv)
219223
```
220224

221225
#### Step 5.2 - Set environment variable in app
222226

223-
Provide the connecting string to the app by adding an environment variable.
227+
Provide the connection string to the app by using the following command to add an environment variable.
224228

225229
```azurecli
226230
az spring app update \
@@ -231,7 +235,7 @@ az spring app update \
231235

232236
## Deploy the app to Azure Spring Apps
233237

234-
Now the cloud environment is ready. Deploy the app with the following command.
238+
Now the cloud environment is ready. Deploy the app by using the following command.
235239

236240
```azurecli
237241
az spring app deploy \
@@ -242,10 +246,10 @@ az spring app deploy \
242246

243247
## Validate the event-driven app
244248

245-
To check whether the event-driven app works well, validate it by sending a message to the `lower-case` queue and check whether there's a message in the `upper-case` queue.
249+
Use the following steps to confirm that the event-driven app works correctly. You can validate the app by sending a message to the `lower-case` queue, then confirming that there's a message in the `upper-case` queue.
246250

247251
1. Send a message to `lower-case` queue with Service Bus Explorer. For more information, see the [Send a message to a queue or topic](../service-bus-messaging/explorer.md#send-a-message-to-a-queue-or-topic) section of [Use Service Bus Explorer to run data operations on Service Bus](../service-bus-messaging/explorer.md).
248-
1. Check whether there's a new message sent to the `upper-case` queue. For more information, see the [Peek a message](../service-bus-messaging/explorer.md#peek-a-message) section of [Use Service Bus Explorer to run data operations on Service Bus](../service-bus-messaging/explorer.md).
252+
1. Confirm that there's a new message sent to the `upper-case` queue. For more information, see the [Peek a message](../service-bus-messaging/explorer.md#peek-a-message) section of [Use Service Bus Explorer to run data operations on Service Bus](../service-bus-messaging/explorer.md).
249253

250254
## Next steps
251255

0 commit comments

Comments
 (0)