Skip to content

Commit c6404d2

Browse files
authored
Merge pull request #96751 from jelledruyts/jelledruyts-26947
Added note about setting slot routing rules via CLI
2 parents 3b3288e + 36656a2 commit c6404d2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

articles/app-service/deploy-staging-slots.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ ms.tgt_pltfrm: na
1515
ms.topic: article
1616
ms.date: 09/19/2019
1717
ms.author: cephalin
18+
ms.custom: fasttrack-edit
1819

1920
---
2021
# Set up staging environments in Azure App Service
@@ -245,6 +246,10 @@ After the setting is saved, the specified percentage of clients is randomly rout
245246

246247
After a client is automatically routed to a specific slot, it's "pinned" to that slot for the life of that client session. On the client browser, you can see which slot your session is pinned to by looking at the `x-ms-routing-name` cookie in your HTTP headers. A request that's routed to the "staging" slot has the cookie `x-ms-routing-name=staging`. A request that's routed to the production slot has the cookie `x-ms-routing-name=self`.
247248

249+
> [!NOTE]
250+
> Next to the Azure Portal, you can also use the [`az webapp traffic-routing set`](/cli/azure/webapp/traffic-routing.md#az-webapp-traffic-routing-set) command in the Azure CLI to set the routing percentages from CI/CD tools like DevOps pipelines or other automation systems.
251+
>
252+
248253
### Route production traffic manually
249254

250255
In addition to automatic traffic routing, App Service can route requests to a specific slot. This is useful when you want your users to be able to opt in to or opt out of your beta app. To route production traffic manually, you use the `x-ms-routing-name` query parameter.

0 commit comments

Comments
 (0)