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
@@ -48,19 +48,19 @@ Use the following steps to create a service instance of Azure Spring Apps.
48
48
49
49
1. Select **Open Cloudshell** and sign in to your Azure account in [Azure Cloud Shell](../cloud-shell/overview.md).
50
50
51
-
```azurecli-interactive
52
-
az account show
53
-
```
51
+
```azurecli-interactive
52
+
az account show
53
+
```
54
54
55
55
1. Azure Cloud Shell workspaces are temporary. On initial start, the shell prompts you to associate an [Azure Storage](../storage/common/storage-introduction.md) instance with your subscription to persist files across sessions.
56
56
57
-
:::image type="content" source="media/quickstart/azure-storage-subscription.png" alt-text="Screenshot of Azure Storage subscription." lightbox="media/quickstart/azure-storage-subscription.png":::
57
+
:::image type="content" source="media/quickstart/azure-storage-subscription.png" alt-text="Screenshot of Azure Storage subscription." lightbox="media/quickstart/azure-storage-subscription.png":::
58
58
59
59
1. After you sign in successfully, use the following command to display a list of your subscriptions.
60
60
61
-
```azurecli-interactive
62
-
az account list --output table
63
-
```
61
+
```azurecli-interactive
62
+
az account list --output table
63
+
```
64
64
65
65
1. Use the following command to choose and link to your subscription.
66
66
@@ -70,19 +70,19 @@ Use the following steps to create a service instance of Azure Spring Apps.
70
70
71
71
1. Use the following command to create a resource group.
72
72
73
-
```azurecli-interactive
74
-
az group create \
75
-
--resource-group <name-of-resource-group> \
76
-
--location eastus
77
-
```
73
+
```azurecli-interactive
74
+
az group create \
75
+
--resource-group <name-of-resource-group> \
76
+
--location eastus
77
+
```
78
78
79
79
1. Use the following command to create an Azure Spring Apps service instance.
80
80
81
-
```azurecli-interactive
82
-
az spring create \
83
-
--resource-group <name-of-resource-group> \
84
-
--name <service-instance-name>
85
-
```
81
+
```azurecli-interactive
82
+
az spring create \
83
+
--resource-group <name-of-resource-group> \
84
+
--name <service-instance-name>
85
+
```
86
86
87
87
1. Choose **Y** to install the Azure Spring Apps extension and run it.
88
88
@@ -108,8 +108,8 @@ Use the following steps to clone the Spring Boot sample project.
108
108
109
109
1. Use the following command to clone the [Spring Boot sample project](https://github.com/spring-guides/gs-spring-boot.git) from GitHub.
1. Use the following command to move to the project folder.
@@ -120,7 +120,7 @@ Use the following steps to clone the Spring Boot sample project.
120
120
121
121
1. Use the following [Maven](https://maven.apache.org/what-is-maven.html) command to build the project.
122
122
123
-
```azurecli-interactive
123
+
```azurecli-interactive
124
124
mvn clean package -DskipTests
125
125
```
126
126
@@ -145,91 +145,91 @@ Deploying the application can take a few minutes.
145
145
- An Azure subscription. If you don't have a subscription, create a [free account](https://azure.microsoft.com/free/) before you begin.
146
146
-[Azure CLI](/cli/azure/install-azure-cli). Install the spring extension for StandardGen2 Azure Spring Apps.
147
147
148
-
```shell
149
-
az extension add --upgrade --name spring
150
-
```
148
+
```shell
149
+
az extension add --upgrade --name spring
150
+
```
151
151
152
152
- Install the Azure Container Apps extension for the CLI and register these namespaces: `Microsoft.App`, `Microsoft.OperationalInsights` and `Microsoft.AppPlatform`
153
153
154
-
```shell
155
-
az extension add --name containerapp --upgrade
156
-
az provider register --namespace Microsoft.App
157
-
az provider register --namespace Microsoft.OperationalInsights
158
-
az provider register --namespace Microsoft.AppPlatform
159
-
```
154
+
```shell
155
+
az extension add --name containerapp --upgrade
156
+
az provider register --namespace Microsoft.App
157
+
az provider register --namespace Microsoft.OperationalInsights
158
+
az provider register --namespace Microsoft.AppPlatform
159
+
```
160
160
161
161
## Provision an instance of Azure Spring Apps
162
162
163
163
Use the following steps to create a service instance of Azure Spring Apps.
164
164
165
165
1. Select **Open Cloudshell** and sign in to your Azure account in [Azure Cloud Shell](../cloud-shell/overview.md).
166
166
167
-
```azurecli-interactive
168
-
az account show
169
-
```
167
+
```azurecli-interactive
168
+
az account show
169
+
```
170
170
171
171
1. Azure Cloud Shell workspaces are temporary. On initial start, the shell prompts you to associate an [Azure Storage](../storage/common/storage-introduction.md) instance with your subscription to persist files across sessions.
172
172
173
-
:::image type="content" source="media/quickstart/azure-storage-subscription.png" alt-text="Screenshot of Azure Storage subscription." lightbox="media/quickstart/azure-storage-subscription.png":::
173
+
:::image type="content" source="media/quickstart/azure-storage-subscription.png" alt-text="Screenshot of Azure Storage subscription." lightbox="media/quickstart/azure-storage-subscription.png":::
174
174
175
175
1. After you sign in successfully, use the following command to display a list of your subscriptions.
176
176
177
-
```azurecli-interactive
178
-
az account list --output table
179
-
```
177
+
```azurecli-interactive
178
+
az account list --output table
179
+
```
180
180
181
181
1. Use the following command to choose and link to your subscription.
1. Use the following command to create a resource group.
198
198
199
-
```azurecli-interactive
200
-
az group create \
201
-
--resource-group ${RESOURCE_GROUP} \
202
-
--location ${LOCATION}
203
-
```
199
+
```azurecli-interactive
200
+
az group create \
201
+
--resource-group ${RESOURCE_GROUP} \
202
+
--location ${LOCATION}
203
+
```
204
204
205
-
1. An Azure Container App environment creates a secure boundary around a group of applications. Apps deployed to the same environment are deployed in the same virtual network and write logs to the same [Log Analytics workspace](https://learn.microsoft.com/azure/azure-monitor/logs/log-analytics-workspace-overview). To create the environment, run the following command
205
+
1. An Azure Container App environment creates a secure boundary around a group of applications. Apps deployed to the same environment are deployed in the same virtual network and write logs to the same [Log Analytics workspace](/azure/azure-monitor/logs/log-analytics-workspace-overview). To create the environment, run the following command
206
206
207
-
```azurecli-interactive
208
-
az containerapp env create \
209
-
--name ${MANAGED_ENVIRONMENT} \
210
-
--resource-group ${RESOURCE_GROUP} \
211
-
--location ${LOCATION}
212
-
```
207
+
```azurecli-interactive
208
+
az containerapp env create \
209
+
--name ${MANAGED_ENVIRONMENT} \
210
+
--resource-group ${RESOURCE_GROUP} \
211
+
--location ${LOCATION}
212
+
```
213
213
214
214
1. Set the environment variable:
215
215
216
-
```azurecli-interactive
217
-
MANAGED_ENV_RESOURCE_ID=$(az containerapp env show \
218
-
--name ${MANAGED_ENVIRONMENT} \
219
-
--resource-group ${RESOURCE_GROUP} \
220
-
--query id -o tsv)
221
-
```
216
+
```azurecli-interactive
217
+
MANAGED_ENV_RESOURCE_ID=$(az containerapp env show \
218
+
--name ${MANAGED_ENVIRONMENT} \
219
+
--resource-group ${RESOURCE_GROUP} \
220
+
--query id -o tsv)
221
+
```
222
222
223
223
1. Use the following command to create an Azure Spring Apps service instance. The StandardGen2 Azure Spring Apps instance is built on top of the Container Environment: Create your Azure Spring Apps instance by specifying the resource ID of the ACA Environment you created:
@@ -321,22 +321,21 @@ This example uses Java version 11. To use a different Java version, change the
321
321
1. When all dependencies are set, select **Generate**.
322
322
1. Download and unpack the package, and then create a web controller for your web application by adding the file *src/main/java/com/example/hellospring/HelloController.java* with the following contents:
@@ -439,7 +438,7 @@ echo "Press [ENTER] to continue ..."
439
438
440
439
## Next steps
441
440
442
-
In this quickstart, you learned how to build and deploy a Spring app in a service instance of Azure Spring Apps. You also learned how to deploy an app with a public endpoint, and how to clean up resources.
441
+
In this quickstart, you learned how to build and deploy a Spring app in a service instance of Azure Spring Apps. You also learned how to deploy an app with a public endpoint, and how to clean up resources.
443
442
444
443
You have access to powerful logs, metrics, and distributed tracing capability from the Azure portal. For more information, see [Quickstart: Monitoring Azure Spring Apps apps with logs, metrics, and tracing](./quickstart-logs-metrics-tracing.md).
0 commit comments