Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Availability zones support for Azure Functions is available on Premium (Elastic Premium) and Dedicated (App Service) plans. A zone-redundant function app plan automatically balances its instances between availability zones for higher availability. This article describes how to migrate to the public multitenant Premium plan with availability zone support. For migration to zone redundancy on Dedicated plans, refer here.
Downtime requirements
Because you can't convert preexisting Premium plans to use availability zones, you must instead migrate your app by creating a side-by-side deployment on a new Premium plan app. Downtime depends on how you choose to redirect traffic during the migration from your old app to your new availability zone-enabled function app.
Consider HTTP-based functions that use an Application Gateway, custom ___domain, or Azure Front Door. In this case, downtime depends on how long it takes to update those respective services with the new app information.
You might also be routing traffic to multiple apps at the same time using a service such as Azure Traffic Manager. In this scenario, you can only fully switch to the new availability zone-enabled app after everything is deployed and tested fully.
For message-based functions, you should write defensive functions to ensure messages aren't lost during the migration.
Migration guidance: Redeployment
To enable an existing function app to use availability zones, you must redeploy your project files to a new function app hosted in an availability zone-enabled Premium plan.
Use these steps to enable availability zones:
- If you're already hosted in a Premium plan in a supported region, you can reuse your existing resource group and skip to the next step. Otherwise, create a new resource group in a supported region.
- Create a Premium plan in one of the supported regions and the resource group. Ensure the new Premium plan has zone redundancy enabled.
- Create a function app in the new Premium plan and deploy your project code to this new app using your desired deployment method.
- After the new app is up and running successfully with availability zones enabled, you can optionally disable or delete the nonavailability zone app.