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
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.
23
23
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":::
25
27
26
28
## Prerequisites
27
29
28
-
-[Git](https://git-scm.com/downloads).
29
-
-[Java Development Kit (JDK)](/java/azure/jdk/). Version 17.
30
30
- An Azure subscription. If you don't have a subscription, create a [free account](https://azure.microsoft.com/free/) before you begin.
31
31
-[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
32
36
33
-
## Clone and build sample project
37
+
Use the following steps to prepare the sample locally.
34
38
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:
1. Build the sample project by using the following commands:
42
46
43
47
```shell
44
48
cd ASA-Samples-Event-Driven-Application
@@ -47,11 +51,11 @@ This article explains how to deploy a Spring Boot event-driven application to Az
47
51
48
52
## Prepare the cloud environment
49
53
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.
51
55
52
56
### Step 1 - Set names for resources
53
57
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.
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.
224
228
225
229
```azurecli
226
230
az spring app update \
@@ -231,7 +235,7 @@ az spring app update \
231
235
232
236
## Deploy the app to Azure Spring Apps
233
237
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.
235
239
236
240
```azurecli
237
241
az spring app deploy \
@@ -242,10 +246,10 @@ az spring app deploy \
242
246
243
247
## Validate the event-driven app
244
248
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.
246
250
247
251
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).
0 commit comments