Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment slots with Functions #45

Open
lindydonna opened this issue Oct 20, 2016 · 23 comments
Open

Deployment slots with Functions #45

lindydonna opened this issue Oct 20, 2016 · 23 comments

Comments

@lindydonna
Copy link
Contributor

Article explaining how to use it with Azure Functions

@miantosca
Copy link

Are deployment slots planned for azure functions? Is the alternative for now to setup a function app service for each slot - dev, test, prod for instance and deploy to those?

@lindydonna
Copy link
Contributor Author

They are planned, yes, but we don't have a timeline to share. A separate Function App for each slot is a good solution in the meantime.

@SimonLuckenuik
Copy link

@lindydonna, is the limitation applicable to both Dedicated and Consumption Plans, or only Consumption Plan?

@SimonLuckenuik
Copy link

With the newly released Functions Proxies, using the Application Settings to customize the URL could be a good temporary alternative to the deployment slots: https://%CURRENT_FUNCTION_DOMAIN%/api/orders

Ref: https://docs.microsoft.com/en-us/azure/azure-functions/functions-proxies#a-namemodify-requestsamodifying-backend-requests

@lindydonna
Copy link
Contributor Author

@SimonLuckenuik The limitation is on both regular App Service and Consumption plans.

That is a really nice trick on using Functions Proxies!

@SteveALee
Copy link

SteveALee commented Apr 13, 2017

What is the best way to escalate this as a feature request? I mean the feature not the article :)

@lindydonna
Copy link
Contributor Author

@SteveALee You should consider it already escalated as a feature request, and it's under development. (No dates to share, unfortunately.)

@APErebus
Copy link

APErebus commented May 9, 2017

ooooo, what is this?
slots?

@fabiocav
Copy link
Member

fabiocav commented May 9, 2017

😀

@kverpoorten
Copy link

I'd like to deploy my function app to a slot using a VSTS build and release. Are there any manuals available for that already?

@sjkp
Copy link

sjkp commented May 21, 2017

@kverpoorten as far as I can see there is nothing special about the slots from webapp slots, so you should be able to use the same vsts task to deploy to an azure function slot as you use to deploy to an web app slot.

@sadgit
Copy link

sadgit commented May 26, 2017

I have enabled a develop slot and tried to switch it to the develop branch - now it seems FUBAR on both the slot and production.

@fabiocav
Copy link
Member

@sadgit can you provide more information about what you're seeing? What error(s) are you running into?

@sadgit
Copy link

sadgit commented May 27, 2017

I have several Azure function apps with CI from VisualStudio.com. With the release of Slots setup a 'develop' slot for one branch and then production slot for Master. Setup the CI on the slot to take from 'develop'. The slot simply shows No Deployments.
An afternoon of head scratching and frantic Binging I found the history tab and these errors. This is now happening on other function apps without slots.

@sadgit
Copy link

sadgit commented May 27, 2017

PS - I wondered whether it was something the cloning of the slot during slot creation process?
I seems a common use case to have Master to Production perhaps with auto-swap and a develop version. Same repo different branch.

@sadgit
Copy link

sadgit commented May 30, 2017

Hooray - all seems to be back working this morning
For logs check here
https://myCorp.visualstudio.com/myProj/_apps/hub/ms.vss-servicehooks-web.manageServiceHooks-project

Thanks MSFT

@napalm684
Copy link

Is there a reason why deployment slots are not compatible with the consumption plan? Is this a short term limitation or going to be a long term restriction?

@lindydonna
Copy link
Contributor Author

@napalm684 Deployment slots are supported for the consumption plan; is it not working for you?

@napalm684
Copy link

@lindydonna correct it gives me the error that only one slot is supported for the consumption plan if I need multiple I need to use an app service plan.

@lindydonna
Copy link
Contributor Author

@napalm684 That's correct, only one slot is currently supported on the Consumption plan. We may change this in the future.

@lindydonna lindydonna added the P1 label May 30, 2017
@napalm684
Copy link

@lindydonna I hope more get added a single slot really doesn't work for me under the premise of trying to consolidate down to a single function app with slots for dev, test, stage and production. Another related question, if you use slots can FTPs be directed to deploy to a specific slot? If that doesn't work then slots just aren't going to cover my scenario currently anyway.

@lindydonna lindydonna removed their assignment Oct 6, 2017
@ColbyTresness ColbyTresness added this to the Backlog milestone Nov 10, 2018
@jeffhollan jeffhollan removed the P1 label Mar 5, 2019
@PingPongSet
Copy link

wathing it

@petro2050
Copy link

I was able to start using deployment slots on a consumption plan, but I'm having issues with the auto swap feature. I'm getting 503 errors for a few seconds when the new deployment becomes active.

#1655

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests