Skip to content

Commit 169fb1b

Browse files
haojianzhongKarlErickson
authored andcommitted
fix: fix cli command exmaple for auto scale
1 parent d3a6501 commit 169fb1b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

articles/spring-apps/quickstart-apps-autoscale.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,22 @@ Use the following steps to define autoscale settings and rules.
7070

7171
### [Azure CLI](#tab/azure-cli)
7272

73-
The following commands show how to create an Azure Spring Apps application deployment with an autoscaling rule.
73+
The following commands show how to create an Azure Spring Apps application with an autoscaling rule. The replicas count will be automatically ajusted according to the count of messages in Azure Service Bus Queue.
7474

7575
```azurecli-interactive
76-
az spring app deployment create
76+
az spring app create
7777
--resource-group <resource-group>
7878
--service <azure-spring-apps-service-instance-name>
79-
--app <app-name>
80-
--name <deployment-name>
79+
--name <app-name>
8180
--secrets "connection-string-secret=<service-bus-connection-string>"
8281
--scale-rule-name azure-servicebus-queue-rule
8382
--scale-rule-type azure-servicebus
8483
--scale-rule-metadata "queueName=my-queue"
8584
"namespace=service-bus-namespace"
8685
"messageCount=5"
8786
--scale-rule-auth "connection=connection-string-secret"
88-
--min-instance-count 0
89-
--min-instance-count 5
87+
--min-replicas 0
88+
--max-replicas 5
9089
```
9190

9291
---

0 commit comments

Comments
 (0)