How to re-create function apps without deleting current one first?

Harry Davis 40 Reputation points

I want to enable zone redundancy for my function apps. I have created a new App service plan with redundancy enabled and a new resource group.

My understanding is I cannot simply move func apps to this new plan because it has zone redundancy enabled. I need to re-create the func apps with my new app service plan selected.

Is this really the case? Is there not a easier way? If this is the case, I also see no way to achieve this without having to delete the old function app first so I can reuse the name. Any advice on either of these issues welcome.



Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,617 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 69,981 Reputation points

    @Harry Davis Thanks for reaching out.

    Yes, you are correct. Currently, Azure Function Apps do not support in-place migration of existing function app instances to a zone-redundant plan. Therefore, you will need to create a new function app and select the new zone-redundant App Service plan during the creation process. Unfortunately, you will not be able to reuse the same name for the new function app until you have deleted the old one.

    For more details you can refer to this document.

    However, there are a few things you can do to make the process smoother. First, you can use an ARM template to automate the creation of the new function app and App Service plan. This can help ensure that all the necessary settings are configured correctly and can save you time compared to manually creating the resources.

    Second, you can use deployment slots to deploy your function app to the new App Service plan before deleting the old one. This can help ensure that your app is working correctly on the new plan before you delete the old one. Once you have verified that everything is working correctly, you can delete the old function app and then swap the deployment slot to make the new app live.

    In case if you are using the cname then you can point the cname to the new function app DNS name.

0 additional answers

Sort by: Most helpful