Thursday, 7 March 2019

Azure | How to Migrate from Consumption Plan to App Service Plan


Change Function app hosting plan


How to Migrate from Consumption Plan to App Service Plan


Issue:
  • I want to change my consumption plan to app service plan
  • I want to change my app service plan to consumption plan
  • Is there any way to change Azure function hosting plans?


Solution:

You may see lot of articles and blog which suggest you can change function app hosting plan and you will be able to achieve that also but according to Microsoft recommendation, You should never do this. Your function app will be messed up and you will see lot of issue.

This has been mentioned on Microsoft Official documentation.

You must choose the type of hosting plan during the creation of the function app. You can't change it afterward.



The only option is: You should create a new function app in different hosting plan and update/deploy your code.

Please don’t try to change function app hosting plan. This may be possible in future but not now.

Hope this helps.


1 comment:

  1. Thank you for sharing this information. It cleared all my confusions i had regarding this topic. U demonstrated it in a simple and understanding way. thank you.

    ReplyDelete

Azure Functions | Microsoft.Azure.WebJobs.Script.WebHost: Repository has more than 10 non-decryptable secrets backups

Microsoft.Azure.WebJobs.Script.WebHost: Repository has more than 10 non-decryptable secrets backups Issue : ·        The function runtime is...