@@ -95,22 +95,26 @@ Use the following steps to provision an Azure Spring Apps service instance.
95
95
96
96
1 . Use the following commands to retrieve the Resource ID for your Log Analytics Workspace and Azure Spring Apps service instance:
97
97
98
- ``` bash
98
+ ``` azurecli
99
99
LOG_ANALYTICS_RESOURCE_ID=$(az monitor log-analytics workspace show \
100
100
--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)
102
104
103
- SPRING_RESOURCE_ID =$( az spring show \
105
+ AZURE_SPRING_APPS_RESOURCE_ID =$(az spring show \
104
106
--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)
106
110
```
107
111
108
112
1 . Use the following command to configure diagnostic settings for the Azure Spring Apps Service:
109
113
110
114
``` azurecli
111
115
az monitor diagnostic-settings create \
112
116
--name "send-logs-and-metrics-to-log-analytics" \
113
- --resource ${SPRING_RESOURCE_ID } \
117
+ --resource ${AZURE_SPRING_APPS_RESOURCE_ID } \
114
118
--workspace ${LOG_ANALYTICS_RESOURCE_ID} \
115
119
--logs '[
116
120
{
@@ -317,7 +321,9 @@ Use the following steps to configure Spring Cloud Gateway and configure routes t
317
321
``` azurecli
318
322
GATEWAY_URL=$(az spring gateway show \
319
323
--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)
321
327
322
328
az spring gateway update \
323
329
--resource-group <resource-group-name> \
@@ -378,7 +384,9 @@ Use the following steps to configure Spring Cloud Gateway and configure routes t
378
384
``` azurecli
379
385
GATEWAY_URL=$(az spring gateway show \
380
386
--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)
382
390
383
391
echo "https://${GATEWAY_URL}"
384
392
```
@@ -403,7 +411,9 @@ Use the following steps to configure API Portal.
403
411
``` azurecli
404
412
PORTAL_URL=$(az spring api-portal show \
405
413
--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)
407
417
408
418
echo "https://${PORTAL_URL}"
409
419
```
0 commit comments