Azure / Azure/azure-cli

az webapp traffic-routing set restarts deployment slot

Open
#29,147 7 comments 0 reactions 1 assignee Assigned to @seligj95 View on GitHub
act-observability-squad app-service-slots Auto-Assign Auto-Resolve bug customer-reported Service Attention Web Apps
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

After deploying application to `staging` deployment slot I run command:
`az webapp traffic-routing set --resource-group $1 --name $2 --distribution staging=0`
It succedes but causes production slot restart. I can reproduce it from my machine.
This command is crucial to me because I need to access staging slot by using `?x-ms-routing-name=staging` param.

### Related command

`az webapp traffic-routing set --resource-group $1 --name $2 --distribution staging=0`

### Errors

Deployment slot: production restarts.

### Issue script & Debug output

[
{
"actionHostName": "xxxxxxxx.azurewebsites.net",
"changeDecisionCallbackUrl": null,
"changeIntervalInMinutes": null,
"changeStep": null,
"maxReroutePercentage": null,
"minReroutePercentage": null,
"name": "staging",
"reroutePercentage": 0.0
}
]

Deployment slot: production restarts.

### Expected behavior

This command should not cause deployments slots restarts.

### Environment Summary

azure-cli 2.47.0 *

core 2.47.0 *
telemetry 1.0.8 *

Extensions:
front-door 1.0.17

Dependencies:
msal 1.20.0
azure-mgmt-resource 22.0.0

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.