Skip to content

Commit 729d203

Browse files
committed
Update quickstart.md
Updated the coding style
1 parent 6f2f6bf commit 729d203

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

articles/spring-apps/quickstart.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -195,34 +195,34 @@ Use the following steps to provision a service instance.
195195
```azurecli-interactive
196196
az group create \
197197
--resource-group ${RESOURCE_GROUP} \
198-
--location $LOCATION
198+
--location ${LOCATION}
199199
```
200200
1. An Azure Container App environment creates a secure boundary around a group apps. 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
201201

202202
```azurecli-interactive
203203
az containerapp env create \
204-
--name $MANAGED_ENVIRONMENT \
205-
--resource-group $RESOURCE_GROUP \
206-
--location $LOCATION
204+
--name ${MANAGED_ENVIRONMENT} \
205+
--resource-group ${RESOURCE_GROUP} \
206+
--location ${LOCATION}
207207
```
208208

209209
1. Set the environment varable:
210210
```azurecli-interactive
211211
MANAGED_ENV_RESOURCE_ID=$(az containerapp env show \
212-
--name $MANAGED_ENVIRONMENT \
213-
--resource-group $RESOURCE_GROUP \
212+
--name ${MANAGED_ENVIRONMENT} \
213+
--resource-group ${RESOURCE_GROUP} \
214214
--query id -o tsv)
215215
```
216216

217217
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 just created:
218218

219219
```azurecli-interactive
220220
az spring create \
221-
--resource-group $RESOURCE_GROUP \
222-
--name $SERVICE_NAME\
223-
--managed-environment $MANAGED_ENV_RESOURCE_ID \
221+
--resource-group ${RESOURCE_GROUP} \
222+
--name ${SERVICE_NAME} \
223+
--managed-environment ${MANAGED_ENV_RESOURCE_ID} \
224224
--sku standardGen2 \
225-
--location $LOCATION
225+
--location ${LOCATION}
226226
```
227227

228228
## Create an app in your Azure Spring Apps instance
@@ -235,9 +235,9 @@ Use the following command to specify the app name on Azure Spring Apps and alloc
235235

236236
```azurecli-interactive
237237
az spring app create \
238-
--resource-group $RESOURCE_GROUP \
239-
--service $SERVICE_NAME \
240-
--name $APP_NAME \
238+
--resource-group ${RESOURCE_GROUP} \
239+
--service ${SERVICE_NAME} \
240+
--name ${APP_NAME} \
241241
--cpu 1 \
242242
--memory 2Gi \
243243
--instance-count 2 \
@@ -276,9 +276,9 @@ Use the following steps to clone the Spring Boot sample project.
276276

277277
```azurecli-interactive
278278
az spring app deploy \
279-
--resource-group $RESOURCE_GROUP \
280-
--service $SERVICE_NAME \
281-
--name $APP_NAME \
279+
--resource-group ${RESOURCE_GROUP} \
280+
--service ${SERVICE_NAME} \
281+
--name ${APP_NAME} \
282282
--artifact-path target/spring-boot-complete-0.0.1-SNAPSHOT.jar \
283283
--env testEnvKey=testEnvValue \
284284
--runtime-version Java_11 \

0 commit comments

Comments
 (0)