An Azure service that provides an event-driven serverless compute platform.
Azure Function App Flex Consumption migration fails with ServerFarmCreationNotAllowed
I am trying to migrate an existing Linux Consumption Azure Function App to Flex Consumption, but the migration fails after the app passes the eligibility check.
I need to migrate this Function App from Linux Consumption to Flex Consumption so that I can use a newer Python version (3.13).
Debugged and confirmed this potential reasons:
- Microsoft.Web or Microsoft.App wasn’t fully registered. (checked both are registered)
- The subscription offer is still effectively restricted. (canada central is not restricted)
- An Azure Policy blocks plan creation. (confirmed there's no policy that blocks the creation)
Command I ran
az functionapp flex-migration start \
--source-name "<source-function-app>" \
--source-resource-group "<source-resource-group>" \
--name "<new-flex-function-app>" \
--resource-group "<target-resource-group>"
Result
The app passes the eligibility check:
Validating that the app '<source-function-app>' is eligible for Flex Consumption migration...
Source app '<source-function-app>' is eligible for Flex Consumption migration.
Then creation of the new Flex Consumption Function App fails:
Creating Flex Consumption function app '<new-flex-function-app>' in resource group '<target-resource-group>'...
Using source app's storage account '<source-storage-account>' for function app '<new-flex-function-app>'
There was an error creating the Flex Consumption function app. Please address the issue and try again.
The subscription 'ee8ce930-...-484a95bddbfa' is not allowed to create or update the serverfarm.
Azure troubleshooting detector output
The Azure Portal detector shows multiple occurrences of:
Detected SubscriptionNotAllowedToCreateOrUpdateServerfarm
Example 1:
Resource: ServerFarm - <serverfarm-name-1>
Last Error Timestamp: 2026-06-08 16:41:33
Last Error CorrelationId: 507ed0d3-564e-4f04-a278-f896d319268d
Total Number of Occurrences: 4
Error Message: The subscription 'ee8ce930-...-484a95bddbfa' is not allowed to create or update the serverfarm.
Not sure whether this subscription is blocked from creating Flex Consumption serverfarms in Canada Central, or whether there is a backend subscription restriction/quota/policy preventing Microsoft.Web/serverfarms creation?
We would like to migrate this Function App to Flex Consumption so it can support the required newer Python version.