Skip to content

Commit 95f0447

Browse files
committed
edits to already-merged PR '[SCOPED] Correct CLI command for Azure Spring Apps #234194
1 parent 566efaa commit 95f0447

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

articles/spring-apps/quickstart-deploy-apps-enterprise.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,22 +95,26 @@ Use the following steps to provision an Azure Spring Apps service instance.
9595

9696
1. Use the following commands to retrieve the Resource ID for your Log Analytics Workspace and Azure Spring Apps service instance:
9797

98-
```bash
98+
```azurecli
9999
LOG_ANALYTICS_RESOURCE_ID=$(az monitor log-analytics workspace show \
100100
--resource-group <resource-group-name> \
101-
--workspace-name <workspace-name> --query id --output tsv)
101+
--workspace-name <workspace-name> \
102+
--query id \
103+
--output tsv)
102104
103-
SPRING_RESOURCE_ID=$(az spring show \
105+
AZURE_SPRING_APPS_RESOURCE_ID=$(az spring show \
104106
--resource-group <resource-group-name> \
105-
--name <Azure-Spring-Apps-service-instance-name> --query id --output tsv)
107+
--name <Azure-Spring-Apps-service-instance-name> \
108+
--query id \
109+
--output tsv)
106110
```
107111

108112
1. Use the following command to configure diagnostic settings for the Azure Spring Apps Service:
109113

110114
```azurecli
111115
az monitor diagnostic-settings create \
112116
--name "send-logs-and-metrics-to-log-analytics" \
113-
--resource ${SPRING_RESOURCE_ID} \
117+
--resource ${AZURE_SPRING_APPS_RESOURCE_ID} \
114118
--workspace ${LOG_ANALYTICS_RESOURCE_ID} \
115119
--logs '[
116120
{
@@ -317,7 +321,9 @@ Use the following steps to configure Spring Cloud Gateway and configure routes t
317321
```azurecli
318322
GATEWAY_URL=$(az spring gateway show \
319323
--resource-group <resource-group-name> \
320-
--service <Azure-Spring-Apps-service-instance-name> --query properties.url --output tsv)
324+
--service <Azure-Spring-Apps-service-instance-name> \
325+
--query properties.url \
326+
--output tsv)
321327
322328
az spring gateway update \
323329
--resource-group <resource-group-name> \
@@ -378,7 +384,9 @@ Use the following steps to configure Spring Cloud Gateway and configure routes t
378384
```azurecli
379385
GATEWAY_URL=$(az spring gateway show \
380386
--resource-group <resource-group-name> \
381-
--service <Azure-Spring-Apps-service-instance-name> --query properties.url --output tsv)
387+
--service <Azure-Spring-Apps-service-instance-name> \
388+
--query properties.url \
389+
--output tsv)
382390
383391
echo "https://${GATEWAY_URL}"
384392
```
@@ -403,7 +411,9 @@ Use the following steps to configure API Portal.
403411
```azurecli
404412
PORTAL_URL=$(az spring api-portal show \
405413
--resource-group <resource-group-name> \
406-
--service <Azure-Spring-Apps-service-instance-name> --query properties.url --output tsv)
414+
--service <Azure-Spring-Apps-service-instance-name> \
415+
--query properties.url \
416+
--output tsv)
407417
408418
echo "https://${PORTAL_URL}"
409419
```

0 commit comments

Comments
 (0)