You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/container-apps/revisions-manage.md
+42-44Lines changed: 42 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Manage revisions in Azure Container Apps
3
-
description: Manage revisions in Azure Container Apps.
3
+
description: Manage revisions in Azure Container Apps
4
4
services: container-apps
5
5
author: craigshoemaker
6
6
ms.service: container-apps
@@ -12,20 +12,18 @@ ms.author: cshoe
12
12
13
13
# Manage revisions in Azure Container Apps
14
14
15
-
Supporting multiple revisions in Azure Container Apps allows you to manage the versioning of your container app. With this feature, you can activate and deactivate revisions, and control the amount of [traffic sent to each revision](#traffic-splitting). To learn more about revisions, see [Revisions in Azure Container Apps](revisions.md)
15
+
Azure Container Apps allows your container app to support multiple revisions. With this feature, you can activate and deactivate revisions, and control the amount of [traffic sent to each revision](#traffic-splitting). To learn more about revisions, see [Revisions in Azure Container Apps](revisions.md).
16
16
17
-
A revision is created when you first deploy your application. New revisions are created when you [update](#updating-your-container-app) your application with [revision-scope changes](revisions.md#revision-scope-changes). You can also update your container app based on a specific revision.
17
+
A revision is created when you first deploy your application. New revisions are created when you [update](#updating-your-container-app) your application with [revision-scope changes](revisions.md#revision-scope-changes). You can also update your container app based on a specific revision.
18
18
19
-
This article described the commands to manage your container app's revisions. For more information about Container Apps commands, see [`az containerapp`](/cli/azure/containerapp). For more information about commands to manage revisions, see [`az containerapp revision`](/cli/azure/containerapp/revision).
19
+
This article describes the commands to manage your container app's revisions. For more information about Container Apps commands, see [`az containerapp`](/cli/azure/containerapp). For more information about commands to manage revisions, see [`az containerapp revision`](/cli/azure/containerapp/revision).
20
20
21
21
## Updating your container app
22
22
23
-
To update a container app, use the `az containerapp update` command. With this command you can modify environment variables, compute resources, scale parameters, and deploy a different image. If your container app update includes [revision-scope changes](revisions.md#revision-scope-changes), a new revision is generated.
23
+
To update a container app, use the [`az containerapp update`](/cli/azure/containerapp#az-containerapp-update) command. With this command you can modify environment variables, compute resources, scale parameters, and deploy a different image. If your container app update includes [revision-scope changes](revisions.md#revision-scope-changes), a new revision is generated.
24
24
25
25
# [Bash](#tab/bash)
26
26
27
-
You can also use a YAML file to define these and other configuration options and parameters. For more information regarding this command, see [`az containerapp revision copy`](/cli/azure/containerapp#az-containerapp-update).
28
-
29
27
This example updates the container image. Replace the \<PLACEHOLDERS\> with your values.
30
28
31
29
```azurecli
@@ -37,7 +35,7 @@ az containerapp update \
37
35
38
36
# [PowerShell](#tab/powershell)
39
37
40
-
Replace the \<Placeholders\> with your values.
38
+
Replace the \<PLACEHOLDERS\> with your values.
41
39
42
40
```azurepowershell
43
41
$ImageParams = @{
@@ -75,12 +73,12 @@ az containerapp revision list \
Show details about a specific revision by using `az containerapp revision show`. For more information about this command, see [`az containerapp revision show`](/cli/azure/containerapp/revision#az-containerapp-revision-show).
91
+
Show details about a specific revision by using the [`az containerapp revision show`](/cli/azure/containerapp/revision#az-containerapp-revision-show) command.
94
92
95
93
# [Bash](#tab/bash)
96
94
@@ -105,13 +103,13 @@ az containerapp revision show \
To create a new revision based on an existing revision, use the `az containerapp revision copy`. Container Apps uses the configuration of the existing revision, which you can then modify.
126
124
127
-
With this command, you can modify environment variables, compute resources, scale parameters, and deploy a different image. You can also use a YAML file to define these and other configuration options and parameters. For more information regarding this command, see [`az containerapp revision copy`](/cli/azure/containerapp/revision#az-containerapp-revision-copy).
125
+
With this command, you can modify environment variables, compute resources, scale parameters, and deploy a different image. You can also use a YAML file to define these and other configuration options and parameters. For more information regarding this command, see [`az containerapp revision copy`](/cli/azure/containerapp/revision#az-containerapp-revision-copy).
128
126
129
-
This example copies the latest revision and sets the compute resource parameters. (Replace the \<PLACEHOLDERS\> with your values.)
127
+
This example copies the latest revision and sets the compute resource parameters. (Replace the \<PLACEHOLDERS\> with your values.)
130
128
131
129
# [Bash](#tab/bash)
132
130
@@ -154,7 +152,7 @@ az containerapp revision copy `
154
152
155
153
## Revision activate
156
154
157
-
Activate a revision by using `az containerapp revision activate`. For more information about this command, see [`az containerapp revision activate`](/cli/azure/containerapp/revision#az-containerapp-revision-activate).
155
+
Activate a revision by using the [`az containerapp revision activate`](/cli/azure/containerapp/revision#az-containerapp-revision-activate) command.
158
156
159
157
# [Bash](#tab/bash)
160
158
@@ -168,13 +166,13 @@ az containerapp revision activate \
168
166
169
167
# [PowerShell](#tab/powershell)
170
168
171
-
Example: (Replace the \<Placeholders\> with your values.)
169
+
Example: (Replace the \<PLACEHOLDERS\> with your values.)
Deactivate revisions that are no longer in use with `az containerapp revision deactivate`. Deactivation stops all running replicas of a revision. For more information, see [`az containerapp revision deactivate`](/cli/azure/containerapp/revision#az-containerapp-revision-deactivate).
185
+
Deactivate revisions that are no longer in use with the [`az containerapp revision deactivate`](/cli/azure/containerapp/revision#az-containerapp-revision-deactivate) command. Deactivation stops all running replicas of a revision.
188
186
189
187
# [Bash](#tab/bash)
190
188
@@ -198,13 +196,13 @@ az containerapp revision deactivate \
198
196
199
197
# [PowerShell](#tab/powershell)
200
198
201
-
Example: (Replace the \<Placeholders\> with your values.)
199
+
Example: (Replace the \<PLACEHOLDERS\> with your values.)
This command restarts a revision. For more information about this command, see [`az containerapp revision restart`](/cli/azure/containerapp/revision#az-containerapp-revision-restart).
215
+
The [`az containerapp revision restart`](/cli/azure/containerapp/revision#az-containerapp-revision-restart) command restarts a revision.
218
216
219
217
When you modify secrets in your container app, you need to restart the active revisions so they can access the secrets.
220
218
@@ -230,13 +228,13 @@ az containerapp revision restart \
230
228
231
229
# [PowerShell](#tab/powershell)
232
230
233
-
Example: (Replace the \<Placeholders\> with your values.)
231
+
Example: (Replace the \<PLACEHOLDERS\> with your values.)
234
232
235
233
```azurepowershell
236
234
$CmdArgs = @{
237
-
ContainerAppName = '<ContainerAppName>'
238
-
ResourceGroupName = '<ResourceGroupName>'
239
-
RevisionName = '<RevisionName>'
235
+
ContainerAppName = '<CONTAINER_APP_NAME>'
236
+
ResourceGroupName = '<RESOURCE_GROUP_NAME>'
237
+
RevisionName = '<REVISION_NAME>'
240
238
}
241
239
242
240
Restart-AzContainerAppRevision @CmdArgs
@@ -250,9 +248,9 @@ The revision mode controls whether only a single revision or multiple revisions
250
248
251
249
The default setting is *single revision mode*. For more information about this command, see [`az containerapp revision set-mode`](/cli/azure/containerapp/revision#az-containerapp-revision-set-mode).
252
250
253
-
The mode values are `single` or `multiple`. Changing the revision mode doesn't create a new revision.
251
+
The mode values are `single` or `multiple`. Changing the revision mode doesn't create a new revision.
254
252
255
-
Example: (Replace the \<placeholders\> with your values.)
253
+
Example: (Replace the \<PLACEHOLDERS\> with your values.)
256
254
257
255
# [Bash](#tab/bash)
258
256
@@ -267,14 +265,14 @@ az containerapp revision set-mode \
267
265
268
266
# [PowerShell](#tab/powershell)
269
267
270
-
Example: (Replace the \<Placeholders\> with your values.)
268
+
Example: (Replace the \<PLACEHOLDERS\> with your values.)
Labels provide a unique URL that you can use to direct traffic to a revision. You can move a label between revisions to reroute traffic directed to the label's URL to a different revision. For more information about revision labels, see [Revision Labels](revisions.md#labels).
285
+
Labels provide a unique URL that you can use to direct traffic to a revision. You can move a label between revisions to reroute traffic directed to the label's URL to a different revision. For more information about revision labels, see [Revision Labels](revisions.md#labels).
288
286
289
-
You can add and remove a label from a revision. For more information about the label commands, see [`az containerapp revision label`](/cli/azure/containerapp/revision/label)
287
+
You can add and remove a label from a revision. For more information about the label commands, see [`az containerapp revision label`](/cli/azure/containerapp/revision/label)
290
288
291
289
### Revision label add
292
290
293
291
To add a label to a revision, use the [`az containerapp revision label add`](/cli/azure/containerapp/revision/label#az-containerapp-revision-label-add) command.
294
292
295
-
You can only assign a label to one revision at a time, and a revision can only be assigned one label. If the revision you specify has a label, the add command replaces the existing label.
293
+
You can only assign a label to one revision at a time, and a revision can only be assigned one label. If the revision you specify has a label, the add command replaces the existing label.
296
294
297
295
This example adds a label to a revision: (Replace the \<PLACEHOLDERS\> with your values.)
298
296
@@ -344,7 +342,7 @@ az containerapp revision label remove `
344
342
345
343
## Traffic splitting
346
344
347
-
Applied by assigning percentage values, you can decide how to balance traffic among different revisions. Traffic splitting rules are assigned by setting weights to different revisions by their name or [label](#revision-labels). For more information, see, [Traffic Splitting](traffic-splitting.md).
345
+
Applied by assigning percentage values, you can decide how to balance traffic among different revisions. Traffic splitting rules are assigned by setting weights to different revisions by their name or [label](#revision-labels). For more information, see, [Traffic Splitting](traffic-splitting.md).
0 commit comments