Slots for Linux consumption plan
It would be great to see support for deployment slots in Linux consumption plan.
The feature is currently under deployment. ETA is at the end of 2020. Thanks!
Andrew Stegmaier commented
This is listed in the documentation as currently in "Preview" status: https://docs.microsoft.com/en-us/azure/azure-functions/functions-deployment-slots#support-levels
I am able currently able to create a deployment slot for my linux consumption plan function (yay!). However, when I go to test out swapping, it seems to silently fail. Here's what I did:
- create a single slot called "staging", and deploy a test "sayHello" function to it. The "production" slot has nothing deployed to it.
- trigger a swap operation with the azure portal. The UI reports "Success", and the logs that are visible in the Deployment Slots > Logs tab also all indicate success.
- when I test out hitting my "sayHello" function in postman, the staging slot still executes the function, and the production slot returns 404 - as if the swap never occurred.
My hunch is that this is a bug in the "preview" feature, but I'm not sure where to file it. I'm happy to give more details / logs if that would be helpful.
UPDATE: it looks like someone else might be hitting this, too. See: https://docs.microsoft.com/en-us/answers/questions/382139/az-function-consumption-plan-reverts-production-sl.html
I moved a lot of apps to Azure because of the ability of slots and cloning, but come to find out neither is possible with Linux. Please share an update on this!
Any updates from the team on this?
I was pretty amazed finding out this wasn't possible. I wanted to create a function using Python, which automatically puts me in the Linux consumption plan and then I found out I wasn't able to use deployment slots. This makes Azure Functions not really suitable for production workloads?