Skip to content

Commit ccaf9c8

Browse files
Merge pull request #271178 from Akhilesh-microsoft/ACA/revisions_manage
[ACA: revisions_manage]: Verified the article, reviewed the content, and fixed all the editorial issues.
2 parents b89f75e + dc27838 commit ccaf9c8

File tree

1 file changed

+42
-44
lines changed

1 file changed

+42
-44
lines changed

articles/container-apps/revisions-manage.md

Lines changed: 42 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Manage revisions in Azure Container Apps
3-
description: Manage revisions in Azure Container Apps.
3+
description: Manage revisions in Azure Container Apps
44
services: container-apps
55
author: craigshoemaker
66
ms.service: container-apps
@@ -12,20 +12,18 @@ ms.author: cshoe
1212

1313
# Manage revisions in Azure Container Apps
1414

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).
1616

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.
1818

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).
2020

2121
## Updating your container app
2222

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.
2424

2525
# [Bash](#tab/bash)
2626

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-
2927
This example updates the container image. Replace the \<PLACEHOLDERS\> with your values.
3028

3129
```azurecli
@@ -37,7 +35,7 @@ az containerapp update \
3735

3836
# [PowerShell](#tab/powershell)
3937

40-
Replace the \<Placeholders\> with your values.
38+
Replace the \<PLACEHOLDERS\> with your values.
4139

4240
```azurepowershell
4341
$ImageParams = @{
@@ -75,12 +73,12 @@ az containerapp revision list \
7573

7674
# [PowerShell](#tab/powershell)
7775

78-
Replace the \<Placeholders\> with your values.
76+
Replace the \<PLACEHOLDERS\> with your values.
7977

8078
```azurecli
8179
$CmdArgs = @{
82-
ContainerAppName = '<ContainerAppName>'
83-
ResourceGroupName = '<ResourceGroupName>'
80+
ContainerAppName = '<CONTAINER_APP_NAME>'
81+
ResourceGroupName = '<RESOURCE_GROUP_NAME>'
8482
}
8583
8684
Get-AzContainerAppRevision @CmdArgs
@@ -90,7 +88,7 @@ Get-AzContainerAppRevision @CmdArgs
9088

9189
## Revision show
9290

93-
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.
9492

9593
# [Bash](#tab/bash)
9694

@@ -105,13 +103,13 @@ az containerapp revision show \
105103

106104
# [PowerShell](#tab/powershell)
107105

108-
Replace the \<Placeholders\> with your values.
106+
Replace the \<PLACEHOLDERS\> with your values.
109107

110108
```azurecli
111109
$CmdArgs = @{
112-
ContainerAppName = '<ContainerAppName>'
113-
ResourceGroupName = '<ResourceGroupName>'
114-
RevisionName = '<RevisionName>'
110+
ContainerAppName = '<CONTAINER_APP_NAME>'
111+
ResourceGroupName = '<RESOURCE_GROUP_NAME>'
112+
RevisionName = '<REVISION_NAME>'
115113
}
116114
117115
$RevisionObject = (Get-AzContainerAppRevision @CmdArgs) | Select-Object -Property *
@@ -124,9 +122,9 @@ echo $RevisionObject
124122

125123
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.
126124

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).
128126

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.)
130128

131129
# [Bash](#tab/bash)
132130

@@ -154,7 +152,7 @@ az containerapp revision copy `
154152

155153
## Revision activate
156154

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.
158156

159157
# [Bash](#tab/bash)
160158

@@ -168,13 +166,13 @@ az containerapp revision activate \
168166

169167
# [PowerShell](#tab/powershell)
170168

171-
Example: (Replace the \<Placeholders\> with your values.)
169+
Example: (Replace the \<PLACEHOLDERS\> with your values.)
172170

173171
```azurepowershell
174172
$CmdArgs = @{
175-
ContainerAppName = '<ContainerAppName>'
176-
ResourceGroupName = '<ResourceGroupName>'
177-
RevisionName = '<RevisionName>'
173+
ContainerAppName = '<CONTAINER_APP_NAME>'
174+
ResourceGroupName = '<RESOURCE_GROUP_NAME>'
175+
RevisionName = '<REVISION_NAME>'
178176
}
179177
180178
Enable-AzContainerAppRevision @CmdArgs
@@ -184,7 +182,7 @@ Enable-AzContainerAppRevision @CmdArgs
184182

185183
## Revision deactivate
186184

187-
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.
188186

189187
# [Bash](#tab/bash)
190188

@@ -198,13 +196,13 @@ az containerapp revision deactivate \
198196

199197
# [PowerShell](#tab/powershell)
200198

201-
Example: (Replace the \<Placeholders\> with your values.)
199+
Example: (Replace the \<PLACEHOLDERS\> with your values.)
202200

203201
```azurepowershell
204202
$CmdArgs = @{
205-
ContainerAppName = '<ContainerAppName>'
206-
ResourceGroupName = '<ResourceGroupName>'
207-
RevisionName = '<RevisionName>'
203+
ContainerAppName = '<CONTAINER_APP_NAME>'
204+
ResourceGroupName = '<RESOURCE_GROUP_NAME>'
205+
RevisionName = '<REVISION_NAME>'
208206
}
209207
210208
Disable-AzContainerAppRevision @CmdArgs
@@ -214,7 +212,7 @@ Disable-AzContainerAppRevision @CmdArgs
214212

215213
## Revision restart
216214

217-
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.
218216

219217
When you modify secrets in your container app, you need to restart the active revisions so they can access the secrets.
220218

@@ -230,13 +228,13 @@ az containerapp revision restart \
230228

231229
# [PowerShell](#tab/powershell)
232230

233-
Example: (Replace the \<Placeholders\> with your values.)
231+
Example: (Replace the \<PLACEHOLDERS\> with your values.)
234232

235233
```azurepowershell
236234
$CmdArgs = @{
237-
ContainerAppName = '<ContainerAppName>'
238-
ResourceGroupName = '<ResourceGroupName>'
239-
RevisionName = '<RevisionName>'
235+
ContainerAppName = '<CONTAINER_APP_NAME>'
236+
ResourceGroupName = '<RESOURCE_GROUP_NAME>'
237+
RevisionName = '<REVISION_NAME>'
240238
}
241239
242240
Restart-AzContainerAppRevision @CmdArgs
@@ -250,9 +248,9 @@ The revision mode controls whether only a single revision or multiple revisions
250248

251249
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).
252250

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.
254252

255-
Example: (Replace the \<placeholders\> with your values.)
253+
Example: (Replace the \<PLACEHOLDERS\> with your values.)
256254

257255
# [Bash](#tab/bash)
258256

@@ -267,14 +265,14 @@ az containerapp revision set-mode \
267265

268266
# [PowerShell](#tab/powershell)
269267

270-
Example: (Replace the \<Placeholders\> with your values.)
268+
Example: (Replace the \<PLACEHOLDERS\> with your values.)
271269

272270
```azurecli
273271
$CmdArgs = @{
274-
Name = '<ContainerAppName>'
275-
ResourceGroupName = '<ResourceGroupName>'
276-
Location = '<Location>'
277-
ConfigurationActiveRevisionMode = '<RevisionMode>'
272+
Name = '<CONTAINER_APP_NAME>'
273+
ResourceGroupName = '<RESOURCE_GROUP_NAME>'
274+
Location = '<LOCATION>'
275+
ConfigurationActiveRevisionMode = '<REVISION_MODE>'
278276
}
279277
280278
Update-AzContainerApp @CmdArgs
@@ -284,15 +282,15 @@ Update-AzContainerApp @CmdArgs
284282

285283
## Revision labels
286284

287-
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).
288286

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)
290288

291289
### Revision label add
292290

293291
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.
294292

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.
296294

297295
This example adds a label to a revision: (Replace the \<PLACEHOLDERS\> with your values.)
298296

@@ -344,7 +342,7 @@ az containerapp revision label remove `
344342

345343
## Traffic splitting
346344

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).
348346

349347
## Next steps
350348

0 commit comments

Comments
 (0)