If you run webhooks, queue workers or ERP/CRM glue on Azure Functions, a Linux Consumption to Flex Consumption migration is now on your roadmap whether you like it or not. According to Microsoft Learn, the Linux Consumption plan retires on 30 September 2028 and gets no new features or language versions. Windows Consumption apps are not currently affected.

Our take: 2028 is the wrong deadline to plan around. The date that matters is the one when your team has time to do this calmly, one app at a time, with a rollback story. This guide gives a six-step sequence and the trade-offs at each step.

Why not wait until 2028

Three reasons to start the inventory now rather than later:

  • Frozen plan. No new features or language versions means your apps slowly fall behind the platform. Microsoft's Flex hosting page calls Flex Consumption the recommended serverless hosting plan for Azure Functions.
  • Differences take time to discover. Flex has no deployment slots, handles certificates differently and changes how you deploy and roll back. Those are pipeline changes, not a flag flip.
  • Quota and region surprises. Region support and core quota are things you want to learn about before a deadline, not during one.

Note that Flex Consumption is Linux-only, so any Windows Consumption app that you decide to move must also move to Linux. That is a bigger project than a plan change, so treat it separately.

Step 1: Inventory this week

Start with the migration tooling. The az functionapp flex-migration list command evaluates only Linux Consumption apps and reports eligible_apps and ineligible_apps. Apps on other plans appear in neither list, so do not read an empty result as "nothing to do" for your whole subscription.

az functionapp flex-migration list
az functionapp list-flexconsumption-locations

The second command shows the regions where Flex is supported. An app in an unsupported region lands in ineligible_apps. Check the output against the regions your clients actually use rather than assuming.

Then sort every app into three buckets:

Bucket What it means Typical examples
Eligible Passes the tool and has no feature blockers Webhook receivers, queue workers
Blocked Needs redesign or a decision first Unsupported region, deployment slots, Windows, custom containers, certificate-heavy apps
Leave alone Works, low risk, no pressing benefit yet Tiny rarely-run apps where cost may rise

Other blockers to grep for in your code and config: NFS file shares (Flex supports only SMB and read-only Azure Blobs) and PowerShell managed dependencies (not supported on Flex), both per Microsoft's Flex hosting page. Also note that Azure Government is not covered by Flex yet, according to the migration article.

Step 2: Fix the runtime first

Microsoft's migration guidance says that if your app uses a language stack version Flex does not support, you upgrade the app code first and migrate afterwards. We agree, and we would go further: never combine a runtime upgrade and a hosting-plan change in the same release. When something breaks you want to know which change did it.

The same applies to the .NET in-process model: Microsoft's migration article lists it as not supported on Flex Consumption, which runs .NET only on the isolated worker model. If any of your .NET apps are still in-process, move them to the isolated worker model first, as its own piece of work.

Step 3: Migrate side by side, not in place

Microsoft's process creates a new Flex Consumption app next to the existing one, in the same resource group with access to the same dependencies, so you can test before switching. The az functionapp flex-migration start command also offers an in-place option that keeps the same app and name, with a revert command to go back within a revert window. In the CLI reference, list and start are marked GA, while revert is marked preview.

Our recommendation: use side-by-side for anything that matters, and in-place only for low-risk apps where an outage would be shrugged off. The CLI reference does not say how long the revert window is, and Microsoft's Flex hosting page still states that in-place migration from another hosting plan is not supported and that you must create a new app and redeploy your code. Until those two pages agree, that is not enough to bet a production queue worker on.

What to watch during the side-by-side flow

  • Code is separate. In Microsoft's azure-skills migration reference, the side-by-side flow creates the new app with configuration only. You deploy code yourself.
  • Triggers start immediately. Once code is deployed, triggers begin processing. For queue and event triggers, that means two apps may consume the same messages. Decide per trigger type how to avoid double processing, for example by disabling the trigger on one side.
  • Certificates. Flex uses site-scoped TLS certificates, each app supporting at most three private and three public (.cer) certificates. Re-add them after migration.
  • Built-in authentication. Reconfigure these settings manually.

For high-volume systems, Microsoft suggests a gradual cutover, with routing managed upstream in API Management or Application Gateway. If you already have Front Door or APIM in front, shift traffic in steps and watch error rates between each one.

Step 4: Redesign the deployment pipeline

Deployment slots are not currently supported on Flex. Microsoft's suggested alternative is to rearchitect into separate function apps and use a non-production app instead of slots. In practice:

  1. Create a separate staging app with the same configuration and deploy there first.
  2. Consider rolling updates. Flex has two update strategies: recreate restarts all instances and may cause brief downtime, while rolling update drains and replaces instances in batches. You set siteUpdateStrategy.type to RollingUpdate. Microsoft's Flex hosting page labels zero-downtime rolling updates as public preview, and the site updates article says they are generally available in some regions and still rolling out in others, so confirm the status for your region before depending on it.
  3. Know the limits of rolling updates. There is no separate environment for canary testing or percentage routing, and no feature to roll back a site update. Apps on a single instance see brief downtime similar to recreate, though in-progress executions still complete.
  4. Tag every release in Git. Code deploys as a zip package to a blob container, each deployment overwrites the current package, and the platform keeps no revision history. Microsoft recommends Git tags or recorded commit SHAs per release. Rollback means redeploying a previous release.

One more detail from Microsoft's rollback guide: publish-profile authentication does not support the az CLI commands it uses. If your pipeline relies on publish profiles, plan the switch to another credential type before you need to roll back at 2 a.m.

Step 5: Set limits from your weakest dependency

Flex instance sizes are 512 MB, 2,048 MB or 4,096 MB, and maximum scale ranges from 1 to 1000. Microsoft's azure-skills reference gives 100 as the default maximum and warns that going below 40 on HTTP apps can cause frequent request failures. The temptation is to leave the ceiling wide open because it is serverless. Do not.

The default regional quota for all Flex instances combined is 250 cores (512,000 MB), and always-ready instances count against it. Microsoft says the quota can be raised, for example from 250 to 1,000 cores or more, subject to capacity review.

Our approach is to work backwards:

  • Find the weakest downstream dependency: the database connection limit, the ERP API rate limit, the queue consumer your partner can tolerate.
  • Derive max instances and per-instance concurrency from that limit.
  • Check the result against the regional core quota shared by every Flex app in that region.

A queue worker that scales out to hundreds of instances and exhausts your SQL connections is a faster way to an incident than anything a plan change fixes.

Step 6: Costs and always-ready instances

Flex is not automatically cheaper than Consumption, and it can cost more for small apps. Microsoft's Flex hosting page gives a minimum billable execution period of 1,000 ms, rounding up to the nearest 100 ms after that; on Consumption, the pricing page puts the minimum execution time at 100 ms. The free grant on Flex is 250,000 executions and 100,000 GB-s per month per subscription in pay-as-you-go on-demand pricing, while Consumption's grant is 1 million executions and 400,000 GB-s. Check the current meter rates on the official pricing page for the regions you use; we do not quote rates here because third-party figures vary.

Always-ready instances default to 0. With zone redundancy enabled you can configure no fewer than two always-ready instances per function or group. Our recommendation: add them only to latency-sensitive HTTP groups where a cold start hurts users, and budget them as a fixed monthly cost, since they are paid for whether or not traffic arrives and, per the Flex hosting page, get no free grant.

Finally, Microsoft's Flex page describes a customer-provided container image option for OS-level dependencies such as native libraries, fonts and drivers, labelled preview (page last updated 9 November 2026). If custom containers are the reason an app is blocked, treat that as a reason to wait and re-evaluate rather than to migrate into a preview.

Key takeaways

  • Linux Consumption retires on 30 September 2028, but plan around your own capacity, not that date.
  • Run az functionapp flex-migration list now and sort apps into eligible, blocked and leave alone.
  • Fix unsupported runtimes, including .NET in-process, before changing the plan; never do both in one release.
  • Prefer side-by-side migration with gradual traffic shifting; the revert command that in-place relies on is marked preview.
  • Flex has no slots: use a staging app, check rolling updates, and tag every release in Git because redeploying is the only rollback.
  • Set max instances from your weakest dependency and the regional core quota, not the 1,000 ceiling.
  • Treat always-ready instances as a fixed cost and verify pricing before assuming Flex is cheaper.