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
+34-36Lines changed: 34 additions & 36 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
-
Azure Container Apps allows you to manage the versioning of your container app, which supports 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).
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
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 \
@@ -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
@@ -252,7 +250,7 @@ The default setting is *single revision mode*. For more information about this c
252
250
253
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.)
0 commit comments