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
Copy file name to clipboardExpand all lines: articles/spring-apps/includes/quickstart-deploy-event-driven-app/deploy-app-azure-spring-apps-event-driven.md
+7-21Lines changed: 7 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,37 +20,23 @@ The **Deploy to Azure** button in the previous section launches an Azure portal
Use the following steps to deploy your JAR file with the [Maven plugin for Azure Spring Apps](https://github.com/microsoft/azure-maven-plugins/wiki/Azure-Spring-Apps).
The following list describes the command interactions:
32
-
33
-
-**OAuth2 login**: You need to authorize the sign in to Azure based on the OAuth2 protocol.
34
-
-**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>.
35
-
-**Select Azure Spring Apps for deployment**: Select the list number of the Azure Spring Apps instance you created. If you use the default number, press <kbd>Enter</kbd>.
36
-
-**Input the app name(simple-event-driven-app)**: Provide an app name. To use the default project artifact ID as the name, press <kbd>Enter</kbd>.
37
-
-**Expose public access for this app (Simple Event Driven App)?**: Press <kbd>n</kbd>.
38
-
-**Confirm to save all the above configurations (Y/n)**: Press <kbd>y</kbd>. If you press <kbd>n</kbd>, the configuration isn't saved in the POM file.
Copy file name to clipboardExpand all lines: articles/spring-apps/includes/quickstart-deploy-event-driven-app/deploy-event-driven-app-enterprise-plan.md
+94-15Lines changed: 94 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,12 @@ For clarity of structure, a separate markdown file is used to describe how to de
20
20
21
21
The **Deploy to Azure** button in the next section launches an Azure portal experience that downloads a JAR package from the [ASA-Samples-Web-Application releases](https://github.com/Azure-Samples/ASA-Samples-Web-Application/releases) page on GitHub. No local preparation steps are needed.
Use the following steps to prepare the sample locally:
@@ -30,12 +36,62 @@ Use the following steps to prepare the sample locally:
30
36
31
37
## 3. Prepare the cloud environment
32
38
33
-
The main resources you need to run this sample are an Azure Spring Apps instance and an Azure Service Bus instance. Use the following steps to create these resources.
39
+
The main resources you need to run this sample are an Azure Spring Apps instance and an Azure Service Bus instance. The following sections describe how to create these resources.
### 3.4. Connect app instance to Service Bus instance
66
+
67
+
Use the following steps to connect your service instances:
68
+
69
+
1. Go to your Azure Spring Apps instance in the Azure portal.
70
+
71
+
1. From the navigation pane, open the **Apps** pane and then select **Create App**.
72
+
73
+
1. On the **Create App** page, for the app name, use *simple-event-driven-app* and leave all the other fields with their default values.
74
+
75
+
1. Select **Create** to finish creating the app and then select the app to view the details.
76
+
77
+
1. Select **Service Connector** from the navigation pane and then select **Create** to create a new service connection.
78
+
79
+
1. Fill out the **Basics** tab with the following information:
80
+
81
+
-**Service type**: Select **Service Bus**.
82
+
-**Connection name**: Populated with an automatically generated name that you can modify.
83
+
-**Subscription**: Select your subscription.
84
+
-**Namespace**: Select the namespace you created.
85
+
-**Client type**: Select **SpringBoot**.
86
+
87
+
1. Configure the **Next: Authentication** tab with the following information:
88
+
89
+
-**Select the authentication type you'd like to use between your compute service and target service.**: Select **Connection string**.
90
+
91
+
1. Select **Next: Networking**. Use the default option **Configure firewall rules to enable access to target service**.
92
+
93
+
1. Select **Next: Review and Create** to review your selections, then select **Create** to create the connection.
94
+
39
95
### [Azure CLI](#tab/Azure-CLI)
40
96
41
97
### 3.1. Provide names for each resource
@@ -119,26 +175,28 @@ az spring app create \
119
175
120
176
### 3.5. Create a Service Bus instance
121
177
122
-
Use the following command to create a Service Bus namespace:
178
+
Use the following steps to create a Service Bus instance:
123
179
124
-
```azurecli
125
-
az servicebus namespace create --name ${SERVICE_BUS_NAME_SPACE}
126
-
```
180
+
1. Use the following command to create a Service Bus namespace:
127
181
128
-
Then, use the following commands to create two queues named `lower-case` and `upper-case`:
182
+
```azurecli
183
+
az servicebus namespace create --name ${SERVICE_BUS_NAME_SPACE}
184
+
```
129
185
130
-
```azurecli
131
-
az servicebus queue create \
132
-
--namespace-name ${SERVICE_BUS_NAME_SPACE} \
133
-
--name lower-case
134
-
az servicebus queue create \
135
-
--namespace-name ${SERVICE_BUS_NAME_SPACE} \
136
-
--name upper-case
137
-
```
186
+
1. Use the following commands to create two queues named `lower-case` and `upper-case`:
187
+
188
+
```azurecli
189
+
az servicebus queue create \
190
+
--namespace-name ${SERVICE_BUS_NAME_SPACE} \
191
+
--name lower-case
192
+
az servicebus queue create \
193
+
--namespace-name ${SERVICE_BUS_NAME_SPACE} \
194
+
--name upper-case
195
+
```
138
196
139
197
### 3.6. Connect app instance to Service Bus instance
140
198
141
-
Now, both the Service Bus and the app in Azure Spring Apps have been created, but the app can't connect to the Service Bus. Use the following steps to enable the app to connect to the Service Bus, and then deploy the app:
199
+
You've now created both the Service Bus and the app in Azure Spring Apps, but the app can't connect to the Service Bus. Use the following steps to enable the app to connect to the Service Bus, and then deploy the app:
142
200
143
201
1. Get the Service Bus's connection string by using the following command:
144
202
@@ -169,6 +227,27 @@ Now, both the Service Bus and the app in Azure Spring Apps have been created, bu
169
227
170
228
The **Deploy to Azure** button in the previous section launches an Azure portal experience that includes application deployment, so nothing else is needed.
Copy file name to clipboardExpand all lines: articles/spring-apps/includes/quickstart-deploy-event-driven-app/event-driven-prepare-cloud-environment-consumption-azure-portal.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,8 +35,6 @@ Use the following steps to create all the Azure resources that the app depends o
35
35
|**Resource group**|*myresourcegroup*| A new resource group name or an existing one from your subscription. |
36
36
|**Region**| The region closest to your users. | The region is used to create the resource group. |
37
37
38
-
:::image type="content" source="../../media/quickstart-deploy-event-driven-app/event-driven-custom-deployment.png" alt-text="Screenshot of the Azure portal that shows the custom deployment." lightbox="../../media/quickstart-deploy-event-driven-app/event-driven-custom-deployment.png":::
39
-
40
38
1. Select **Review and Create** to review your selections. Then, select **Create** to deploy the app to Azure Spring Apps.
41
39
42
40
1. On the toolbar, select the **Notifications** icon (a bell) to monitor the deployment process. After the deployment finishes, 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.
Copy file name to clipboardExpand all lines: articles/spring-apps/includes/quickstart-deploy-event-driven-app/event-driven-prepare-cloud-environment-enterprise-azure-portal.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,8 +35,6 @@ Use the following steps to create all the Azure resources that the app depends o
35
35
|**Resource group**|*myresourcegroup*| A new resource group name or an existing one from your subscription. |
36
36
|**Region**| The region closest to your users. | The region is used to create the resource group. |
37
37
38
-
:::image type="content" source="../../media/quickstart-deploy-event-driven-app/event-driven-custom-deployment.png" alt-text="Screenshot of the Azure portal that shows the custom deployment." lightbox="../../media/quickstart-deploy-event-driven-app/event-driven-custom-deployment.png":::
39
-
40
38
1. Select **Review and Create** to review your selections. Then, select **Create** to deploy the app to Azure Spring Apps.
41
39
42
40
1. On the toolbar, select the **Notifications** icon (a bell) to monitor the deployment process. After the deployment finishes, 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.
Copy file name to clipboardExpand all lines: articles/spring-apps/includes/quickstart-deploy-event-driven-app/event-driven-prepare-cloud-environment-standard-azure-portal.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,8 +35,6 @@ Use the following steps to create all the Azure resources that the app depends o
35
35
|**Resource group**|*myresourcegroup*| A new resource group name or an existing one from your subscription. |
36
36
|**Region**| The region closest to your users. | The region is used to create the resource group. |
37
37
38
-
:::image type="content" source="../../media/quickstart-deploy-event-driven-app/event-driven-custom-deployment.png" alt-text="Screenshot of the Azure portal that shows the custom deployment." lightbox="../../media/quickstart-deploy-event-driven-app/event-driven-custom-deployment.png":::
39
-
40
38
1. Select **Review and Create** to review your selections. Then, select **Create** to deploy the app to Azure Spring Apps.
41
39
42
40
1. On the toolbar, select the **Notifications** icon (a bell) to monitor the deployment process. After the deployment finishes, 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.
Use the following steps to deploy using the [Maven plugin for Azure Spring Apps](https://github.com/microsoft/azure-maven-plugins/wiki/Azure-Spring-Apps):
17
+
18
+
1. Navigate to the *complete* directory, and then run the following command to configure the app in Azure Spring Apps:
The following list describes the command interactions:
25
+
26
+
-**OAuth2 login**: You need to authorize the sign in to Azure based on the OAuth2 protocol.
27
+
-**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.
28
+
-**Use existing Azure Spring Apps in Azure**: Press <kbd>y</kbd> to use the existing Azure Spring Apps instance.
29
+
-**Select Azure Spring Apps for deployment**: Select the list number of the Azure Spring Apps instance you created. If you use the default number, press <kbd>Enter</kbd> directly.
30
+
-**Use existing app in Azure Spring Apps \<your-instance-name\>**: Press <kbd>y</kbd> to use the app created.
31
+
-**Confirm to save all the above configurations**: Press <kbd>y</kbd>. If you press <kbd>n</kbd>, the configuration isn't saved in the POM files.
Copy file name to clipboardExpand all lines: articles/spring-apps/includes/quickstart-deploy-event-driven-app/prepare-cloud-environment-event-driven-consumption.md
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,16 @@ Open your web browser and go to the [Azure portal](https://portal.azure.com/). E
8. Select **Shared access policies** on the navigation menu and then select **RootManageSharedAccessKey**.
34
+
35
+
1. On the **SAS Policy: RootManageSharedAccessKey** page, copy and save the **Primary Connection String** value, which is used to set up connections from the Spring app.
36
+
37
+
1. Select **Queues** on the navigation menu and then select **Queue**.
38
+
39
+
1. On the **Create Queue** page, enter *lower-case* for **Name** and then select **Create**.
40
+
41
+
1. Create another queue by repeating the previous step using *upper-case* for **Name**.
42
+
33
43
### 3.3. Create an Azure Spring Apps instance
34
44
35
45
Use the following steps to create the service instance:
@@ -38,8 +48,6 @@ Use the following steps to create the service instance:
38
48
39
49
1. Select **Compute** > **Azure Spring Apps**.
40
50
41
-
:::image type="content" source="../../media/quickstart-deploy-event-driven-app/create-azure-spring-apps.png" alt-text="Screenshot of the Azure portal that shows the Create a resource page with Azure Spring Apps highlighted." lightbox="../../media/quickstart-deploy-event-driven-app/create-azure-spring-apps.png":::
42
-
43
51
1. Fill out the **Standard consumption & dedicated (preview)** form with the following information:
44
52
45
53
| Setting | Suggested value | Description |
@@ -51,8 +59,6 @@ Use the following steps to create the service instance:
51
59
|**Region**| The region closest to your users | The location that is closest to your users. |
52
60
|**Container Apps Environment**|*myacaenv*| The environment is a secure boundary around one or more container apps that can communicate with each other and share a virtual network, logging, and Dapr configuration. |
53
61
54
-
:::image type="content" source="../../media/quickstart-deploy-event-driven-app/create-consumption.png" alt-text="Screenshot of the Azure portal that shows the consumption tab of the Create Azure Spring Apps page." lightbox="../../media/quickstart-deploy-event-driven-app/create-consumption.png":::
55
-
56
62
1. (Optional) Use the following steps to create a Container Apps Environment:
0 commit comments