question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

  1. Create a functionapp with a slot (referred to as stage in these steps) (we have it on a premium app service plan running node)
  2. deploy some function to the production and slot of the app
  3. run the command az webapp traffic-routing set --distribution stage=100 --name *** --resource-group ***
  4. then run the command az webapp traffic-routing set --distribution production=100 --name *** --resource-group ***
  5. 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)
  6. run the command az webapp traffic-routing set --distribution stage=100 --name *** --resource-group *** again
  7. 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:open
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
panchagnulacommented, May 28, 2020

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.

0reactions
msftbot[bot]commented, May 28, 2020

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @ahmedelnably, @fabiocav.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Functions deployment slots | Microsoft Learn
Azure Functions deployment slots allow your function app to run different instances called "slots". Slots are different environments exposed ...
Read more >
How to ensure 100% Uptime on Production - Blue-Green ...
The load balancer redirects each user transaction from blue to green deployment till all traffic is filtered and blue gets idle. With Azure,...
Read more >
UpdatePolicy attribute - AWS CloudFormation
The AutoScalingScheduledAction policy applies when you update a stack that includes an Auto Scaling group with an associated scheduled action. For AWS:: ...
Read more >
1783-um007_-en-p.pdf
sequential function chart editors for you to develop application programs. ... Stratix 5700 and ArmorStratix 5700 switches have a slot for an optional....
Read more >
AZ-204 exam questions for FREE | Azure Developing solutions
Domain : Develop Azure compute solutions. Q3 : You have to develop an Azure Function that would perform the following activities. Read messages...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found