Skip to content

Commit 485ce2c

Browse files
Merge pull request #310136 from craigshoemaker/aca/enable-labels
[Container Apps] Update: Deployment labels -> clarify enabling deployment labels
2 parents b341d7f + 6348881 commit 485ce2c

1 file changed

Lines changed: 25 additions & 18 deletions

File tree

articles/container-apps/deployment-labels.md

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,40 @@ author: craigshoemaker
66
ms.author: cshoe
77
ms.service: azure-container-apps
88
ms.topic: tutorial
9-
ms.date: 10/27/2025
9+
ms.date: 01/05/2026
1010
zone_pivot_groups: azure-cli-or-portal
1111
---
1212

1313
# Deployment labels in Azure Container Apps
1414

15-
Deployment labels allow you to assign meaningful names (such as dev, staging, prod) to specific container revisions. Applying these names gives you a streamlined process for handling complex deployment scenarios and environment management.
15+
Deployment labels help you assign meaningful names, such as dev, staging, or prod, to specific container revisions. When you apply these names, you streamline handling complex deployment scenarios and environment management.
1616

17-
With deployment labels, you can:
17+
By using deployment labels, you can:
1818

19-
- Assign clear, descriptive labels to revisions
20-
- Have new revisions automatically assigned to labels for routing and traffic management
21-
- Route traffic based on labels instead of changing revision names
22-
- Promote or demote revisions by reassigning labels
23-
- Roll back to previous revisions using label history
19+
- Assign clear, descriptive labels to revisions.
20+
- Automatically assign new revisions to labels for routing and traffic management.
21+
- Route traffic based on labels instead of changing revision names.
22+
- Promote or demote revisions by reassigning labels.
23+
- Roll back to previous revisions by using label history.
24+
25+
> [!IMPORTANT]
26+
> Before you can use deployment labels, you need to follow the steps to first [enable deployment](?pivots=azure-portal#use-deployment-labels) labels in the portal for your container app.
2427
2528
## Key features
2629

27-
Deployment labels enable you to create sophisticated deployment strategies while maintaining control over your application lifecycle with the following features:
30+
Deployment labels enable you to create sophisticated deployment strategies while maintaining control over your application lifecycle by using the following features:
2831

2932
- **Label assignment**: Create and assign meaningful labels to container revisions, making it easier to manage environments like dev, staging, and prod.
3033

3134
- **Traffic splitting & A/B testing**: Support for traffic splitting, blind rollback, and A/B testing enables gradual rollouts and testing of new features.
3235

33-
- **Staging releases & auto swap**: Automatic revision activation allows you to seamlessly create new revisions and have them assigned to new or existing labels and receive traffic. Any revisions no longer referenced by a label will be shut down automatically.
36+
- **Staging releases & auto swap**: Automatic revision activation allows you to seamlessly create new revisions and assign them to new or existing labels to receive traffic. Any revisions no longer referenced by a label are shut down automatically.
3437

3538
::: zone pivot="azure-portal"
3639

3740
## Use deployment labels
3841

39-
To enable deployment labels, follow these steps in the Azure portal:
42+
By default deployment labels aren't available to your container app. To enable, deployment labels, follow these steps in the Azure portal:
4043

4144
1. Open your container app in the Azure portal.
4245

@@ -48,9 +51,9 @@ To enable deployment labels, follow these steps in the Azure portal:
4851

4952
1. Select **Apply**.
5053

51-
### Create a new label
54+
### Create a new label
5255

53-
New labels are based on existing labels when created in the portal. By default Container Apps creates your first label for you named *label-1*. When labels are created via CLI or Bicep, you can associate them with any existing revision or a new revision.
56+
Create new labels in the portal based on existing labels. By default, Container Apps creates your first label named *label-1*. When you create labels through the CLI or Bicep, you can associate them with any existing revision or a new revision.
5457

5558
1. Open your container app in the Azure portal.
5659

@@ -66,13 +69,13 @@ New labels are based on existing labels when created in the portal. By default C
6669

6770
### Label history and rollbacks
6871

69-
You can view the full history of a label using the following steps:
72+
You can view the full history of a label by using the following steps:
7073

7174
1. Open your container app in the Azure portal.
7275

7376
1. From the menu, under *Application*, select **Labels**.
7477

75-
1. Select **Show history** associated with the label you're interested in.
78+
1. Select **Show history** for the label you're interested in.
7679

7780
Use the *Show history* option for any label to:
7881

@@ -116,6 +119,7 @@ To enable deployment labels, follow these steps in the Azure CLI:
116119
```
117120

118121
1. To create a new revision with a new or existing label, use the following command:
122+
119123
```bash
120124
az containerapp update \
121125
--name $CONTAINER_APP_NAME \
@@ -125,6 +129,7 @@ To enable deployment labels, follow these steps in the Azure CLI:
125129
```
126130

127131
1. To show label history, use the following command:
132+
128133
```bash
129134
az containerapp label-history show \
130135
--name $CONTAINER_APP_NAME \
@@ -133,13 +138,15 @@ To enable deployment labels, follow these steps in the Azure CLI:
133138
```
134139

135140
1. To show label app traffic, use the following command:
141+
136142
```bash
137143
az containerapp ingress traffic show \
138144
--name $CONTAINER_APP_NAME \
139145
--resource-group $RESOURCE_GROUP \
140146
```
141147

142148
1. To add a label to a revision, use the following commands:
149+
143150
```bash
144151
az containerapp revision label add \
145152
--name $CONTAINER_APP_NAME \
@@ -177,11 +184,11 @@ Here's a typical workflow using deployment labels:
177184

178185
1. **Update a label**: Select a label (for example, "stage") to update it with new containers, scaling, or volume settings.
179186

180-
1. **Test the changes**: With the new revision deployed, you can route a portion of traffic to the updated label.
187+
1. **Test the changes**: With the new revision deployed, route a portion of traffic to the updated label.
181188

182-
1. **Promote changes**: Once you feel confident in the production revision, you can update the production label to point to the same revision
189+
1. **Promote changes**: When you're confident in the production revision, update the production label to point to the same revision.
183190

184-
1. **Monitor and rollback if needed**: If issues arise, use the label history to roll back to a previous version.
191+
1. **Monitor and rollback if needed**: If problems arise, use the label history to roll back to a previous version.
185192

186193
## Related content
187194

0 commit comments

Comments
 (0)