Skip to content

Commit b88f7ca

Browse files
committed
Minor fixes.
1 parent 69758a8 commit b88f7ca

File tree

1 file changed

+55
-55
lines changed

1 file changed

+55
-55
lines changed

articles/container-apps/tutorial-scaling.md

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: container-apps
55
author: craigshoemaker
66
ms.service: azure-container-apps
77
ms.topic: tutorial
8-
ms.date: 03/06/2025
8+
ms.date: 03/10/2025
99
ms.author: cshoe
1010
ms.custom: devx-track-azurecli
1111
ms.devlang: azurecli
@@ -88,8 +88,8 @@ Add an HTTP scale rule to your container app by running the `az containerapp upd
8888

8989
```azurecli
9090
az containerapp update \
91-
--name my-container-app \
92-
--resource-group my-container-apps \
91+
--name my-container-app \
92+
--resource-group my-container-apps \
9393
--min-replicas 1 \
9494
--max-replicas 10 \
9595
--scale-rule-name my-http-scale-rule \
@@ -100,8 +100,8 @@ az containerapp update \
100100

101101
```powershell
102102
az containerapp update `
103-
--name my-container-app `
104-
--resource-group my-container-apps `
103+
--name my-container-app `
104+
--resource-group my-container-apps `
105105
--min-replicas 1 `
106106
--max-replicas 10 `
107107
--scale-rule-name my-http-scale-rule `
@@ -122,20 +122,20 @@ You can observe the effects of your application scaling by viewing the logs gene
122122

123123
```azurecli
124124
az containerapp logs show \
125-
--name my-container-app \
126-
--resource-group my-container-apps \
127-
--type=system \
128-
--follow=true
125+
--name my-container-app \
126+
--resource-group my-container-apps \
127+
--type=system \
128+
--follow=true
129129
```
130130

131131
# [PowerShell](#tab/powershell)
132132

133133
```powershell
134134
az containerapp logs show `
135-
--name my-container-app `
136-
--resource-group my-container-apps `
137-
--type=system `
138-
--follow=true
135+
--name my-container-app `
136+
--resource-group my-container-apps `
137+
--type=system `
138+
--follow=true
139139
```
140140

141141
---
@@ -144,46 +144,46 @@ The `show` command returns entries from the system logs for your container app i
144144

145145
```json
146146
{
147-
"TimeStamp":"2023-08-01T16:49:03.02752",
148-
"Log":"Connecting to the container 'my-container-app'..."
147+
"TimeStamp":"2023-08-01T16:49:03.02752",
148+
"Log":"Connecting to the container 'my-container-app'..."
149149
}
150150
{
151-
"TimeStamp":"2023-08-01T16:49:03.04437",
152-
"Log":"Successfully Connected to container:
153-
'my-container-app' [Revision: 'my-container-app--9uj51l6',
154-
Replica: 'my-container-app--9uj51l6-5f96557ffb-5khg9']"
151+
"TimeStamp":"2023-08-01T16:49:03.04437",
152+
"Log":"Successfully Connected to container:
153+
'my-container-app' [Revision: 'my-container-app--9uj51l6',
154+
Replica: 'my-container-app--9uj51l6-5f96557ffb-5khg9']"
155155
}
156156
{
157-
"TimeStamp":"2023-08-01T16:47:31.9480811+00:00",
158-
"Log":"Microsoft.Hosting.Lifetime[14]"
157+
"TimeStamp":"2023-08-01T16:47:31.9480811+00:00",
158+
"Log":"Microsoft.Hosting.Lifetime[14]"
159159
}
160160
{
161-
"TimeStamp":"2023-08-01T16:47:31.9481264+00:00",
162-
"Log":"Now listening on: http://[::]:8080"
161+
"TimeStamp":"2023-08-01T16:47:31.9481264+00:00",
162+
"Log":"Now listening on: http://[::]:8080"
163163
}
164164
{
165-
"TimeStamp":"2023-08-01T16:47:31.9490917+00:00",
166-
"Log":"Microsoft.Hosting.Lifetime[0]"
165+
"TimeStamp":"2023-08-01T16:47:31.9490917+00:00",
166+
"Log":"Microsoft.Hosting.Lifetime[0]"
167167
}
168168
{
169-
"TimeStamp":"2023-08-01T16:47:31.9491036+00:00",
170-
"Log":"Application started. Press Ctrl+C to shut down."
169+
"TimeStamp":"2023-08-01T16:47:31.9491036+00:00",
170+
"Log":"Application started. Press Ctrl+C to shut down."
171171
}
172172
{
173-
"TimeStamp":"2023-08-01T16:47:31.949723+00:00",
174-
"Log":"Microsoft.Hosting.Lifetime[0]"
173+
"TimeStamp":"2023-08-01T16:47:31.949723+00:00",
174+
"Log":"Microsoft.Hosting.Lifetime[0]"
175175
}
176176
{
177-
"TimeStamp":"2023-08-01T16:47:31.9497292+00:00",
178-
"Log":"Hosting environment: Production"
177+
"TimeStamp":"2023-08-01T16:47:31.9497292+00:00",
178+
"Log":"Hosting environment: Production"
179179
}
180180
{
181-
"TimeStamp":"2023-08-01T16:47:31.9497325+00:00",
182-
"Log":"Microsoft.Hosting.Lifetime[0]"
181+
"TimeStamp":"2023-08-01T16:47:31.9497325+00:00",
182+
"Log":"Microsoft.Hosting.Lifetime[0]"
183183
}
184184
{
185-
"TimeStamp":"2023-08-01T16:47:31.9497367+00:00",
186-
"Log":"Content root path: /app/"
185+
"TimeStamp":"2023-08-01T16:47:31.9497367+00:00",
186+
"Log":"Content root path: /app/"
187187
}
188188
```
189189

@@ -252,15 +252,15 @@ In the first shell, where you ran the `az containerapp logs show` command, the o
252252

253253
```json
254254
{
255-
"TimeStamp":"2023-08-01 18:09:52 +0000 UTC",
256-
"Type":"Normal",
257-
"ContainerAppName":"my-container-app",
258-
"RevisionName":"my-container-app--9uj51l6",
259-
"ReplicaName":"my-container-app--9uj51l6-5f96557ffb-f795d",
260-
"Msg":"Replica 'my-container-app--9uj51l6-5f96557ffb-f795d' has been scheduled to run on a node.",
261-
"Reason":"AssigningReplica",
262-
"EventSource":"ContainerAppController",
263-
"Count":0
255+
"TimeStamp":"2023-08-01 18:09:52 +0000 UTC",
256+
"Type":"Normal",
257+
"ContainerAppName":"my-container-app",
258+
"RevisionName":"my-container-app--9uj51l6",
259+
"ReplicaName":"my-container-app--9uj51l6-5f96557ffb-f795d",
260+
"Msg":"Replica 'my-container-app--9uj51l6-5f96557ffb-f795d' has been scheduled to run on a node.",
261+
"Reason":"AssigningReplica",
262+
"EventSource":"ContainerAppController",
263+
"Count":0
264264
}
265265
```
266266

@@ -297,7 +297,7 @@ The following screenshot shows a zoomed view of how the requests received by you
297297

298298
## CPU and memory scaling
299299

300-
You should prefer [HTTP scaling rules](/azure/container-apps/scale-app#http) to CPU or memory scale rules when possible.
300+
You should prefer [HTTP scale rules](/azure/container-apps/scale-app#http) to CPU or memory scale rules when possible.
301301

302302
When you use the Azure CLI to add a scale rule to a container app that already has a scale rule, the new scale rule replaces the old scale rule. To see how to add multiple scale rules, see [Multiple scale rules](#multiple-scale-rules).
303303

@@ -313,8 +313,8 @@ Add a CPU scale rule to your container app by running the `az containerapp updat
313313

314314
```azurecli
315315
az containerapp update \
316-
--name my-container-app \
317-
--resource-group my-container-apps \
316+
--name my-container-app \
317+
--resource-group my-container-apps \
318318
--min-replicas 1 \
319319
--max-replicas 10 \
320320
--scale-rule-name my-cpu-scale-rule \
@@ -326,8 +326,8 @@ az containerapp update \
326326

327327
```powershell
328328
az containerapp update `
329-
--name my-container-app `
330-
--resource-group my-container-apps `
329+
--name my-container-app `
330+
--resource-group my-container-apps `
331331
--min-replicas 1 `
332332
--max-replicas 10 `
333333
--scale-rule-name my-cpu-scale-rule `
@@ -347,8 +347,8 @@ Add a memory scale rule to your container app by running the `az containerapp up
347347

348348
```azurecli
349349
az containerapp update \
350-
--name my-container-app \
351-
--resource-group my-container-apps \
350+
--name my-container-app \
351+
--resource-group my-container-apps \
352352
--min-replicas 1 \
353353
--max-replicas 10 \
354354
--scale-rule-name my-memory-scale-rule \
@@ -360,8 +360,8 @@ az containerapp update \
360360

361361
```powershell
362362
az containerapp update `
363-
--name my-container-app `
364-
--resource-group my-container-apps `
363+
--name my-container-app `
364+
--resource-group my-container-apps `
365365
--min-replicas 1 `
366366
--max-replicas 10 `
367367
--scale-rule-name my-memory-scale-rule `
@@ -420,8 +420,8 @@ To add multiple scale rules to your container app using the Azure CLI, you must
420420
metadata:
421421
type: "Utilization"
422422
value: "<MEMORY_UTILIZATION>"
423-
...
424-
```
423+
...
424+
```
425425
426426
1. Import your container app configuration from `app.yaml` with the `az containerapp update` command.
427427

0 commit comments

Comments
 (0)