-
Notifications
You must be signed in to change notification settings - Fork 194
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
How to Migrate from Consumption Plan to App Service Plan (and vice versa) #155
Comments
@stephlocke This is better asked on the MSDN forums or StackOverflow (you'll have more folks seeing and answering questions there, as opposed to GitHub isuses). Are you using blob or queue triggers? Those behave differently in terms of how multiple hosts will process. @christopheranderson Do you know the answer to this question? |
From @stephlocke on December 2, 2016 20:51 IMO, this should be a docs thing as people will need to do this for maybe |
From @stephlocke on December 5, 2016 11:44 I'm using blob triggers, and also eventhub triggers elsewhere that would need migrating also |
This will become a real feature soon, so don't need to document. |
@lindydonna Any updates on this feature to automatically migrate from Consumption to App Service Plan? |
Would also like an update on this! Is there at least a manual process? |
I need an update on this also |
me too |
@lindydonna I would also like a update, it has been several months since we heard anything about this. |
she is not working in MS anymore.. |
@christopheranderson are you able to pick this up? Still a big gaps in the docs / functionality that is still giving people trouble |
CC @jeffhollan |
+1 |
5 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
@jeffhollan can we get any kind of update on this, it has been two months without any kind of word from microsoft about this. Is it at least on the backlog? |
@adetayorabiu +1 modifying the serverFarmId using resource explorer caused the page to refresh with the serverFarmId property unchanged |
The only officially supported way today to move from consumption to a dedicated app service plan would be to re-deploy. The differences in file and app data storage are technically navigable, but if anyone is stuck I'd recommend redeploying. Note that there are some limitations if trying to change your app service plan regardless if functions. Things like trying to change the region aren't supported. It's also important to note the note here on webspaces, where even two plans in the same region may not be compatible to move without re-deploy. The way I tested was with two plans in the same resource group so I knew they were in the same webspace. We are working on easier ways to move from a consumption to more dedicated plan shortly, and do have some UX planned to support that, but it will be limited in scope as well. |
@jeffhollan Have these updates been deployed? I am attempting to "scale up" a function app this morning and do not see the option to change or modify the subscription |
When will this feature arrive? |
See this related issue: #1194 (comment) |
Still for me the main point of concern is avoiding a retriggering for already processed stuff. If we had a way of importing some history or state, for me things would be fine 👍 |
Come on Microsoft... When will this basic functionality be added... Will it be sometime this millennium? |
When you create a support ticket in Azure about moving a function app, it actually links to this GitHub issue. I created a ticket anyway because if Microsoft is happy to waste our time by not fixing this issue for THREE WHOLE YEARS, I'm happy to waste their time. And I will keep submitting a new ticket every time I have this issue and it's not fixed. Pull your finger out, Microsoft. |
Details on progress in this comment #1194 (comment) |
On that issue, it's unclear whether that supports state/history migration when you change plans. I had the situation where my function had already processed millions of blobs and I wouldn't want the change in plan to cause all those blobs to get re-processed. (This was a blob trigger and back in the day there wasn't an event grid trigger 😂 which could avoid the issue now, but of course, there's still gonna be folks using blob triggers so it's still relevant) |
The state for functions is stored in |
So my point 5 on the original issue was right? Just point at the same storage and easy peasy? 😱 |
This solution is not working. I tried to change from Consumption plan to App service Premium plan. It worked for a day or two, after that my azure function got reverted back to original consumption plan. |
Here is how to do it with az cli:
az resource update \
--resource-type "Microsoft.Web/sites" \
--name "[function name]" \
--resource-group "[resource group]" \
--set serverFarmId="[new app service plan name]" |
Just updating this comment - the work so that virtually all consumption functions should be able to move to a premium plan in the same resource group has finished rolling out. |
I am unable to run these commands in PowerShell or Bash. Powershell gives this error: Bash gives this error: Have the commands changed? Everything is in the same resource groups and regions. |
I'm getting the same issue. In Bash:
In PowerShell:
@jeffhollan Any ideas? |
Bash did not work, but PowerShell worked. Provided all 3 components exists in the same region (West-Europe in my case) |
Did you use |
Set-AzureRmWebApp -Name "..." -ResourceGroupName "..." -AppServicePlan "..." Directly in the Browser azure portal (Cloud shell) prereq:
|
Neither of the commands worked for me with the same typical messages. Tried consumption plan to existing app service plan. and |
Hi @jeffhollan. Hope you're well? Pleased to hear that
Apologies if I've missed it (in this now rather long issue), but are there any plans afoot to support the other direction? I.e. to move from a functions app backed by an app service plan to a consumption based plan? |
I was able to move back my Function from App Service Plan to Consumption plan by using the https://resources.azure.com/ website. Enter edit mode, find your Function App and change the following:
Update the resource and you are done. Make sure that you turn Always On off in the App Service Plan settings before the resource update to make this work. |
This is still broken from the command line: |
The az CLI is not correct. Use the following command to do the move.
You can confirm the property in the REST API and it is under properties.serverFarmId. |
Thanks @dominikfoldi and @jobullen. That should work in most cases. However, if you still get a 'Bad Request' error: you will have to change numberOfWorkers from -1 to any value greater than 0. First change the numberOfWorkers using:
and then change the serverFarmID using:
Alternatively you can use https://resources.azure.com/ to do the same. |
I hope we solved re-creating all azure function with windows instead of linux, not happy about this, but it seems working now. take care |
Did anyone have their consumption based function app automatically changed to B1 plan? :( |
From @stephlocke on November 30, 2016 12:4
Is the migration path:
Will this work with all the history so blob's don't get reprocessed etc?
Copied from original issue: Azure/azure-functions-host#1010
The text was updated successfully, but these errors were encountered: