Azure Functions-How to Migrate from Consumption Plan to App Service Plan

Prashanth Kumar
3 min readMar 5, 2021

This article talks about how to migrate your Azure Functions from Consumption plan to App Service plan. As most of the developers when they start their journey with Azure Functions they start with Consumption.

However during the course the requirement will increase and they have to scale the plan. currently most of the articles gives the solution as

  • to create a new Dedicated App service plan.
  • Create a new function in parallel and then associate it with new Dedicate App Service plan.

So lets start

  1. lets create our first function app with consumption plan

So i have selected plan as “Consumption(Serverless)”

As our new Function app is ready.

Now lets check how we can change the App Service Plan without recreating a new plan or recreating a new FunctionApp.

Go to Azure Portal → Open Azure Cloud Shell → type below command

Set-AzAppServicePlan -ResourceGroupName “<your resource group name” -Name “<name of your consumption plan>” -PerSiteScaling $true -tier S1

Now lets go back to Azure portal and refresh App Service Plan page. Here you can see now the App Service Plan has been changed to S1 tier.

and lets validate the same in Azure function

Finally lets validate Azure Function to make sure they are working fine and no errors.

Click on “HttpTrigger1” →click on “Code + test” → Click on Test/Run →Run

you can see Output as → Hello, Azure. This HTTP triggered function executed successfully.

--

--