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/traffic-splitting.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,28 +6,28 @@ author: craigshoemaker
6
6
ms.service: azure-container-apps
7
7
ms.custom: devx-track-azurecli
8
8
ms.topic: how-to
9
-
ms.date: 03/28/2023
9
+
ms.date: 06/16/2025
10
10
ms.author: cshoe
11
11
zone_pivot_groups: arm-azure-cli-portal
12
12
---
13
13
14
14
# Traffic splitting in Azure Container Apps
15
15
16
-
By default, when ingress is enabled, all traffic is routed to the latest deployed revision. When you enable [multiple revision mode](revisions.md#revision-modes) in your container app, you can split incoming traffic between active revisions.
16
+
By default, when ingress are enabled, all traffic is routed to the latest deployed revision. When you enable [multiple revision mode](revisions.md#revision-modes) in your container app, you can split incoming traffic between active revisions.
17
17
18
-
Traffic splitting is useful for testing updates to your container app. You can use traffic splitting to gradually phase in a new revision in [blue-green deployments](blue-green-deployment.md) or in [A/B testing](https://wikipedia.org/wiki/A/B_testing).
18
+
Traffic splitting is useful for testing updates to your container app. You can use traffic splitting to gradually phase in a new revision in [blue-green deployments](blue-green-deployment.md) or in [A/B testing](https://wikipedia.org/wiki/A/B_testing).
19
19
20
-
Traffic splitting is based on the weight (percentage) of traffic that is routed to each revision. The combined weight of all traffic split rules must equal 100%. You can specify revision by revision name or [revision label](revisions.md#labels).
20
+
Traffic splitting is based on the weight (percentage) of traffic that is routed to each revision. The combined weight of all traffic split rules must equal 100%. You can specify revision by revision name or [revision label](revisions.md#labels).
21
21
22
22
This article shows you how to configure traffic splitting rules for your container app.
23
-
To run the following examples, you need a container app with multiple revisions.
23
+
To run the following examples, you need a container app with multiple revisions.
24
24
25
25
26
26
## Configure traffic splitting
27
27
28
28
::: zone pivot="azure-cli"
29
29
30
-
Configure traffic splitting between revisions using the [`az containerapp ingress traffic set`](/cli/azure/containerapp/revision#az-containerapp-ingress-traffic-set) command. You can specify the revisions by name with the `--revision-weight` parameter or by revision label with the `--label-weight` parameter.
30
+
Configure traffic splitting between revisions using the [`az containerapp ingress traffic set`](/cli/azure/containerapp/revision#az-containerapp-ingress-traffic-set) command. You can specify the revisions by name with the `--revision-weight` parameter or by revision label with the `--label-weight` parameter.
31
31
32
32
The following command sets the traffic weight for each revision to 50%:
33
33
@@ -79,7 +79,7 @@ az containerapp ingress traffic set \
79
79
80
80
::: zone pivot="azure-resource-manager"
81
81
82
-
Enable traffic splitting by adding the `configuration.ingress.traffic` properties to the `ingress` section of your container app template. You can specify the revisions by name with the `revisionName` property or by revision label with the `label` property.
82
+
Enable traffic splitting by adding the `configuration.ingress.traffic` properties to the `ingress` section of your container app template. You can specify the revisions by name with the `revisionName` property or by revision label with the `label` property.
83
83
84
84
The following example sets 100% of traffic to the latest deployed revision:
85
85
@@ -153,7 +153,7 @@ The following example shows traffic splitting between two revisions by label:
153
153
154
154
## Use cases
155
155
156
-
The following scenarios describe configuration settings for common use cases. The examples are shown in JSON format, but you can also use the Azure portal or Azure CLI to configure traffic splitting.
156
+
The following scenarios describe configuration settings for common use cases. The examples are shown in JSON format, but you can also use the Azure portal or Azure CLI to configure traffic splitting.
0 commit comments