Skip to content

Commit 2bef877

Browse files
committed
Azure CLI parameters improvements
1 parent 9ff4589 commit 2bef877

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

articles/spring-apps/how-to-deploy-big-cpu-memory-application.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,12 @@ Use the following steps to create a large CPU and memory application using the A
4949
The following command creates an application with the CPU set to eight core processors and memory set to 32 gigabytes.
5050

5151
```azurecli
52-
az spring app create -g <resource-group-name> -s <service-name> -n <app-name> \
53-
--cpu 8 --memory 32Gi
52+
az spring app create \
53+
--resource-group <resource-group-name> \
54+
--service <Azure-Spring-Apps-service-instance-name> \
55+
--name <Spring-app-name> \
56+
--cpu 8 \
57+
--memory 32Gi
5458
```
5559

5660
---
@@ -74,15 +78,23 @@ Use the following steps to scale up or down a large CPU and memory application.
7478
The following command scales up an app to have a high CPU and memory values.
7579

7680
```azurecli
77-
az spring app scale -g <resource-group-name> -s <service-name> -n <app-name> \
78-
--cpu 8 --memory 32Gi
81+
az spring app scale \
82+
--resource-group <resource-group-name> \
83+
--service <Azure-Spring-Apps-service-instance-name> \
84+
--name <Spring-app-name> \
85+
--cpu 8 \
86+
--memory 32Gi
7987
```
8088

8189
The following command scales down an app to have a low CPU and memory values.
8290

8391
```azurecli
84-
az spring app scale -g <resource-group-name> -s <service-name> -n <app-name> \
85-
--cpu 1 --memory 2Gi
92+
az spring app scale \
93+
--resource-group <resource-group-name> \
94+
--service <Azure-Spring-Apps-service-instance-name> \
95+
--name <Spring-app-name> \
96+
--cpu 1 \
97+
--memory 2Gi
8698
```
8799

88100
---

0 commit comments

Comments
 (0)