az function app traffic-routing set to 100% from any slot other than production causes all function code to be lost
See original GitHub issue
az feedback
auto-generates most of the information requested below, as of CLI version 2.0.62
Describe the bug
I’m exploring a version of blue/green deployments using the production and a slot of a functionapp. To do this, I deploy to the unactive (0% traffic) slot, test, then change the traffic on that slot to 100%. However, I change the traffic back to 100% on the production slot, the functions all disappear and clients receive 404’s when trying to hit any of them. The commands I’m using are az webapp traffic-routing set --distribution production=100 --name *** --resource-group ***
and az webapp traffic-routing set --distribution warm=100 --name *** --resource-group ***
. If I then change it back to the slot having all the traffic then the production functions reappear
To Reproduce
- Create a functionapp with a slot (referred to as stage in these steps) (we have it on a premium app service plan running node)
- deploy some function to the production and slot of the app
- run the command
az webapp traffic-routing set --distribution stage=100 --name *** --resource-group ***
- then run the command
az webapp traffic-routing set --distribution production=100 --name *** --resource-group ***
- go into the portal and notice that production slot functions are gone (may have to refresh a couple times as it seems sometimes it may take up to 30-60 seconds for them to disappear)
- run the command
az webapp traffic-routing set --distribution stage=100 --name *** --resource-group ***
again - Go back to portal and notice production functions are now back
Expected behavior production functions do not disappear or cleared or whatever is happening
Environment summary
- Install Method: apt-get
- CLI version: 2.5.1
- OS Version: elementary OS 5.1.4 Hera (Built on Ubuntu 18.04.4 LTS)
- Shell: bash
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top GitHub Comments
marking this as functions app since this seems to be specific to functions & we might need to handle this differently with az functionapp traffic-routing command.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @ahmedelnably, @fabiocav.