Skip to content

Commit f229df8

Browse files
committed
changed azurecli-interactive blocks to azurecli
1 parent b2836c2 commit f229df8

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

articles/spring-apps/quickstart-deploy-web-app.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Describes how to deploy a web application to Azure Spring Apps.
44
author: karlerickson
55
ms.service: spring-apps
66
ms.topic: quickstart
7-
ms.date: 04/05/2023
7+
ms.date: 04/06/2023
88
ms.author: rujche
99
ms.custom: devx-track-java, devx-track-azurecli, mode-other, event-tier1-build-2022, engagement-fy23
1010
---
@@ -73,7 +73,7 @@ The main resources required to run this sample are an Azure Spring Apps instance
7373

7474
Create variables to hold the resource names. Be sure to replace the placeholders with your own values.
7575

76-
```azurecli-interactive
76+
```azurecli
7777
RESOURCE_GROUP=<resource-group-name>
7878
LOCATION=<location>
7979
POSTGRESQL_SERVER=<server-name>
@@ -89,37 +89,37 @@ Use the following steps to create a new resource group.
8989

9090
1. Use the following command to sign in to Azure CLI.
9191

92-
```azurecli-interactive
92+
```azurecli
9393
az login
9494
```
9595

9696
1. Use the following command to set the default location.
9797

98-
```azurecli-interactive
98+
```azurecli
9999
az configure --defaults location=${LOCATION}
100100
```
101101

102102
1. Set the default subscription. Use the following command to first list all available subscriptions:
103103

104-
```azurecli-interactive
104+
```azurecli
105105
az account list --output table
106106
```
107107

108108
1. Choose a subscription and set it as the default subscription with the following command:
109109

110-
```azurecli-interactive
110+
```azurecli
111111
az account set --subscription <subscription-ID>
112112
```
113113

114114
1. Use the following command to create a resource group.
115115

116-
```azurecli-interactive
116+
```azurecli
117117
az group create --resource-group ${RESOURCE_GROUP}
118118
```
119119

120120
1. Use the following command to set the newly created resource group as the default resource group.
121121

122-
```azurecli-interactive
122+
```azurecli
123123
az configure --defaults group=${RESOURCE_GROUP}
124124
```
125125

@@ -129,13 +129,13 @@ Azure Spring Apps is used to host the Spring web app. Create an Azure Spring App
129129

130130
1. Use the following command to create an Azure Spring Apps service instance.
131131

132-
```azurecli-interactive
132+
```azurecli
133133
az spring create --name ${AZURE_SPRING_APPS_NAME}
134134
```
135135

136136
1. Use the following command to create an application in the Azure Spring Apps instance.
137137

138-
```azurecli-interactive
138+
```azurecli
139139
az spring app create \
140140
--service ${AZURE_SPRING_APPS_NAME} \
141141
--name ${APP_NAME} \
@@ -149,7 +149,7 @@ The Spring web app uses H2 for the database in localhost, and Azure Database for
149149

150150
Use the following command to create a PostgreSQL instance:
151151

152-
```azurecli-interactive
152+
```azurecli
153153
az postgres flexible-server create \
154154
--name ${POSTGRESQL_SERVER} \
155155
--database-name ${POSTGRESQL_DB} \
@@ -169,19 +169,19 @@ After the application instance and the PostgreSQL instance are created, the appl
169169

170170
1. If you're using Service Connector for the first time, use the following command to register the Service Connector resource provider.
171171

172-
```azurecli-interactive
172+
```azurecli
173173
az provider register --namespace Microsoft.ServiceLinker
174174
```
175175

176176
1. Use the following command to achieve a passwordless connection:
177177

178-
```azurecli-interactive
178+
```azurecli
179179
az extension add --name serviceconnector-passwordless --upgrade
180180
```
181181

182182
1. Use the following command to create a service connection between the application and the PostgreSQL database:
183183

184-
```azurecli-interactive
184+
```azurecli
185185
az spring connection create postgres-flexible \
186186
--resource-group ${RESOURCE_GROUP} \
187187
--service ${AZURE_SPRING_APPS_NAME} \
@@ -198,7 +198,7 @@ After the application instance and the PostgreSQL instance are created, the appl
198198

199199
1. After the connection is created, use the following command to validate the connection:
200200

201-
```azurecli-interactive
201+
```azurecli
202202
az spring connection validate \
203203
--resource-group ${RESOURCE_GROUP} \
204204
--service ${AZURE_SPRING_APPS_NAME} \
@@ -251,7 +251,7 @@ Now that the cloud environment is prepared, the application is ready to deploy.
251251

252252
1. Use the following command to deploy the app:
253253

254-
```azurecli-interactive
254+
```azurecli
255255
az spring app deploy \
256256
--service ${AZURE_SPRING_APPS_NAME} \
257257
--name ${APP_NAME} \
@@ -262,7 +262,7 @@ Now that the cloud environment is prepared, the application is ready to deploy.
262262

263263
1. If there's a problem when you deploy the app, check the app's log to investigate by using the following command:
264264

265-
```azurecli-interactive
265+
```azurecli
266266
az spring app logs \
267267
--service ${AZURE_SPRING_APPS_NAME} \
268268
--name ${APP_NAME}
@@ -272,7 +272,7 @@ Now that the cloud environment is prepared, the application is ready to deploy.
272272

273273
1. To avoid unnecessary costs, use the following command to delete the resource group.
274274

275-
```azurecli-interactive
275+
```azurecli
276276
az group delete --name ${RESOURCE_GROUP}
277277
```
278278

0 commit comments

Comments
 (0)