Skip to content

[Linux Consumption] Successful slot swaps automatically reverted after a few minutes #7336

@andrewconnell

Description

@andrewconnell

I know I've listed n/a a few times in this issue, but that's because this has nothing to do with the code or a specific invocation of the function. This happens with the default Node.js function app project created in VS Code... looks more like a runtime/host issue than a code issue.

Investigative information

Please provide the following:

  • Timestamp: n/a
  • Function App version: ~3
  • Function App name: totalview-playground4-linux-consumption
  • Function name(s) (as appropriate): all
  • Invocation ID: n/a
  • Region: East US

Repro steps

Provide the steps required to reproduce the problem:

  1. Create new Azure Function Linux Consumption app service

  2. Create a 2nd deployment slot staging

  3. Deploy app to staging slot

    test function... this works

  4. Swap slots & wait for the process to complete

  5. Observe the functions are now listed under the production slot:

    image

  6. Wait a few minutes (~5-10... usually I see this around 9m after the successful slot deployment)

  7. Retry the function on the production slot = failure

  8. Observe the functions are no longer listed on the production slot:

    image

  9. go back and list functions on the staging slot... observe a phantom swap has occurred

Expected behavior

Expect that after a successful slot swap, the swap isn't reverted.

Actual behavior

See repro steps.

Known workarounds

Don't use Linux Consumption plan... if I create an Windows Consumption plan, it works as expected.

Related information

  • Programming language used: Node.js
  • Links to source: n/a
  • Bindings used: HTTP trigger

For the Q/A on this issue that led me here to post a bug, please see the following. I've included all details in this issue, but including this to show others have had the same experience.
https://docs.microsoft.com/en-us/answers/questions/382139/az-function-consumption-plan-reverts-production-sl.html

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions