Share via

how to create python function app in azure free tier account

sanjay baskaran 0 Reputation points
2026-04-04T11:12:14.6766667+00:00

User's image

image

When i try to create python function app using azure free tier account i'm not able to create because i know with free tier account i can't choose flex consumption okay so i need to choose consumption plan but there is only one option called consumption(windows) but if i choose consumption(windows) hosting plan i dont see any option to choose python Which i have clearly mentioned in the images

--> so tell me how to create python function app using free tier account

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Pravallika KV 12,820 Reputation points Microsoft External Staff Moderator
    2026-04-06T04:23:39.5566667+00:00

    Hi @sanjay baskaran ,

    Thanks for reaching out to Microsoft Q&A.

    You are running into a known Azure Functions limitation: Python isn’t supported on Windows-based function apps (even in Consumption), so you won’t see “Python” in the runtime drop-down when you pick the Consumption (Windows) plan. To host Python you need a Linux-based Function App.

    You have two easy ways to get there on your free subscription:

    1. Portal approach
      • Go to Create > Function App
      • On the Basics tab change Operating system from Windows to Linux
      • You’ll now see Python in the Runtime stack picklist
      • Finish the wizard with Consumption plan selected (you still get the 1 M free executions/month)
    2. CLI approach If you prefer a one-liner, just run in Cloud Shell or your local Azure CLI:
         
         az functionapp create \
         
         --resource-group   myResourceGroup \
         
         --consumption-plan-location <your-region> \
         
         --name              myPythonFuncApp \
         
         --storage-account   myStorageAccount \
         
         --runtime           python \
         
         --runtime-version   3.9 \
         
         --os-type           Linux
         
      
      That spins up a Linux Consumption plan Function App with Python support.

    References:

    Hope this helps!


    If the resolution was helpful, kindly take a moment to click on User's imageand click on Yes for was this answer helpful. And, if you have any further query do let us know.


  2. Q&A Assist
    2026-04-04T11:12:33.9966667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Python is supported for Azure Functions on the standard Consumption plan, but only on Linux. In the portal flow being used, the only Consumption option shown is Consumption (Windows), which is why Python does not appear in the runtime list.

    To create a Python Function App on a free-tier subscription, use a Linux-based Consumption plan instead of Consumption (Windows). The easiest supported path in the provided context is to create the app from tooling (VS Code or Azure CLI), which automatically selects a compatible Linux Consumption plan and Python runtime.

    Using Visual Studio Code (free account works the same as paid):

    1. Install Visual Studio Code and the Azure Functions extension.
    2. Create a local Python Functions project (HTTP trigger) following the Python quickstart.
    3. In VS Code, press F1 and run Azure Functions: Create function app in Azure...(Advanced).
    4. When prompted:
      • Enter a globally unique function app name (only a-z, 0-9, and -).
      • For Select a hosting plan, choose Consumption (or Flex Consumption if/when it becomes available to the subscription; both are supported for Python per language-specific guidance).
      • For Select a runtime stack, choose the Python stack/version.
      • Create or select a Resource group.
      • Choose a supported Region.
      • Create or select a Storage account.
      • Create an Application Insights resource.
    5. Complete the prompts; VS Code creates the Function App on a compatible Linux Consumption plan and can then deploy the Python code.

    If the portal still only offers Consumption (Windows) and no Python runtime, use VS Code or Azure CLI to create the app so that a Linux Consumption plan is selected automatically.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.