An Azure service that provides an event-driven serverless compute platform.
Hey @Rafael Cruz ,
The Flex Consumption SKU is deployed under the “Microsoft.App” resource provider and isn’t part of the basic free-trial benefits. It only becomes available once you move to a Pay-As-You-Go (or equivalent) subscription that allows registering Microsoft.App and virtual-network integration.
1) Is Flex Consumption intentionally disabled on Free Trial?
Yes, this is by design. Free Trial subscriptions have built-in feature restrictions, and Flex Consumption is one of the excluded capabilities.
2) Is there a workaround (CLI / VS Code)?
No, because this is a subscription-level restriction rather than a limitation of the Azure portal UI, so using CLI, ARM templates, or VS Code will all result in the same failure. It cannot be bypassed. However, you can still create a Python Function App on a Linux Consumption (non-Flex) plan within a Free Trial subscription, which is the only supported alternative.
3) Should you use a Pay-As-You-Go subscription?
Yeif you specifically need Flex Consumption. In that case, you should either upgrade your own subscription to Pay-As-You-Go or use an existing paid subscription from your organization, both of which will allow you to access Flex Consumption and its features
- Workarounds for Python/Linux on free trial You don't actually need Flex Consumption to run Python 3.10/3.11 on Linux; there’s the standard Consumption (Serverless) plan on Linux. In the portal’s “Create Function App” wizard: a. Choose “Consumption (Serverless)” as your Hosting plan. b. Set “Operating System” to Linux. c. Pick Python 3.10 or 3.11 as your Runtime stack.
- If you prefer CLI or VS Code, you can run something like:
That will give you a Linux-based Python Function on the Consumption plan without switching to Flex.az functionapp create \ --resource-group MyResourceGroup \ --name MyPythonFunction \ --storage-account MyStorageAccount \ --plan MyConsumptionPlan \ --runtime python \ --runtime-version 3.10 \ --functions-version 4 \ --os-type Linux - If you really need Flex Consumption
- You'll need to upgrade or switch to a Pay-As-You-Go (or organizational) subscription where the
Microsoft.Appprovider is registered. On that subscription you can then create a Flex Consumption plan and target Python 3.10/3.11.
- You'll need to upgrade or switch to a Pay-As-You-Go (or organizational) subscription where the
References:
- Azure Functions Flex Consumption plan hosting
- Azure Functions “Consumption (Serverless)” plan (Linux + Python) Hope this helps!
If the resolution was helpful, kindly take a moment to click on and click on Yes for was this answer helpful. And, if you have any further query do let us know