Azure Functions Flex Consumption plan hosting
By: Date: 27/08/2026 Categories: azure Tags:

A Linux-based serverless plan that extends the classic Consumption model with: VNet integration, configurable instance memory sizes (512 MB / 2048 MB / 4096 MB), always-ready instances for reduced cold starts, per-function scaling, up to 1,000 scale-out instances, and Azure Files mounts. Pay only for what you use, scales to zero.


Supported Languages

LanguageVersions
C# (isolated worker).NET 8, 9, 10
Java8, 11, 17, 21, 25
Node.js22, 24
Python3.10 – 3.14
PowerShell7.4
Go / Custom Handlers1.0

⚠️ C# in-process model is not supported. Migrate to isolated worker model.


Prerequisites

  • Azure account with an active subscription
  • Azure CLI v2.60.0+ (or Azure Cloud Shell)
  • A local function project (HTTP-triggered is easiest for testing)

Step 1: Set Up Your Azure Account

  1. Create an Azure Account: If you don’t already have one, sign up for Azure.
  2. Log In to Azure Portal: Go to the Azure Portal and log in with your credentials.

Step 2: Create a Resource Group

  1. In the Azure Portal, click on Resource groups in the left-hand menu.
  2. Click + Add to create a new resource group.
  3. Enter a name for your resource group (e.g., myResourceGroup).
  4. Select a region for your resource group.
  5. Click Review + create and then Create.

Step 3: Create a Storage Account

  1. In the Azure Portal, click on Create a resource.
  2. Search for Storage Account and select it.
  3. Click Create.
  4. Choose your subscription and the resource group you created.
  5. Provide a unique name for your storage account.
  6. Select the region, performance, redundancy, and other settings as per your requirements.
  7. Click Review + create and then Create.

Step 4: Create an Azure Function App

  1. In the Azure Portal, click on Create a resource.
  2. Search for Function App and select it.
  3. Click Create.
  4. Fill in the basics:
    • Subscription: Choose your subscription.
    • Resource Group: Select the resource group you created.
    • Function App name: Provide a unique name.
    • Publish: Select Code.
    • Runtime stack: Choose your preferred runtime (e.g.,.NET, JavaScript, Python).
    • Version: Choose the version that matches your runtime stack.
    • Region: Select the region that is closest to you or your users.
  5. Go to the Hosting tab:
    • Operating System: Choose your OS (Windows or Linux).
    • Plan: Select Consumption (Elastic). This is the Flexible Consumption plan.
    • Storage: Select the storage account you created.
  6. Click
user avatar

Step 1: Check Supported Regions Step 2: Create a Resource Group Step 3: Create a Storage Account Step 4: Create the Function App (Flex Consumption) Step 5: Deploy Your Code Step 6: Configure Instance Memory (Optional) Step 7: Set Always-Ready Instances (Optional) Step 8: Configure VNet Integration (Optional) Step 9: Set HTTP Concurrency (Optional)

model avatar

Certainly! Here’s a more detailed step-by-step guide that includes all the steps you’ve listed:

Step 1: Check Supported Regions

  1. Verify Supported Regions: Ensure that the region you want to use supports the Flexible Consumption plan. You can check this in the Azure documentation or by contacting Azure support.

Step 2: Create a Resource Group

  1. In the Azure Portal, click on Resource groups in the left-hand menu.
  2. Click + Add to create a new resource group.
  3. Enter a name for your resource group (e.g., myResourceGroup).
  4. Select a region for your resource group.
  5. Click Review + create and then Create.

Step 3: Create a Storage Account

  1. In the Azure Portal, click on Create a resource.
  2. Search for Storage Account and select it.
  3. Click Create.
  4. Choose your subscription and the resource group you created.
  5. Provide a unique name for your storage account.
  6. Select the region, performance, redundancy, and other settings as per your requirements.
  7. Click Review + create and then Create.

Step 4: Create the Function App (Flex Consumption)

  1. In the Azure Portal, click on Create a resource.
  2. Search for Function App and select it.
  3. Click Create.
  4. Fill in the basics:
    • Subscription: Choose your subscription.
    • Resource Group: Select the resource group you created.
    • Function App name: Provide a unique name.
    • Publish: Select Code.
    • Runtime stack: Choose your preferred runtime (e.g.,.NET, JavaScript, Python).
    • Version: Choose the version that matches your runtime stack.
    • Region: Select the region that is closest to you or your users.
  5. Go to the Hosting tab:
    • Operating System: Choose your OS (Windows or Linux).
    • Plan: Select Consumption (Elastic). This is the Flexible Consumption plan.
    • Storage: Select the storage account you created.
  6. Click Review + create and then Create.

Step 5: Deploy Your Code

  1. Local Development: Develop your function locally using Visual Studio Code, Visual

Key Constraints

  • One app per plan (but you can have many plans)
  • Linux only (no Windows)
  • App initialization times out after 30 seconds
  • Regional quota: 250 cores shared across all Flex Consumption apps in a subscription/region (can request increase)

Start with the default 2048 MB instance, no always-ready, and scale from there once you see real traffic patterns. Full docs: Microsoft Learn