Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Azure Functions

by Microsoft

Run small pieces of code without servers.

Hosting and deploymentOfficial MCP server

WebsitePricingGitHub

1. Price

“"tierMinimumUnits":25000.0,"retailPrice":0.000004,"unitPrice":0.000004,"armRegionName":"eastus"”

Free tier: Flex Consumption: 250,000 executions and 100,000 GB-s per month (Consumption plan: 1 million executions and 400,000 GB-s). As reported on the official pricing page, checked Oct 10, 2026.

azure.microsoft.com/en-us/pricing/details/functions/

Checked against the maker's official pages, pricing on Oct 10, 2026. Tap a verdict to see its source.How we checkedReport an error

What Azure Functions does

Azure Functions is a Microsoft cloud service that runs small pieces of your code when something happens, such as a web request, a file upload or a set time. You do not rent or manage a server; you pay for the runs and the memory used, with a monthly free allowance. It is a hosting platform for your own code, not a ready-made service with its own features.

  • Azure Functions is one of 17 APIs in the Hosting and deployment category on AgentGid.
  • It is one of 15 that can be started for free.
  • It ships an official MCP server, like 4 others here.
  • Its official SDK is the 3rd most downloaded in the category (3.8M a week).

What people build with it

A small backend for your site

Give your website or app a few server addresses, such as "save this form" or "get my orders", without running a server.

Jobs that run on a schedule

Clean up old records, send a daily report or refresh a cache every few minutes.

React to uploaded files

When a user uploads a photo or document, make a thumbnail, read the text or move the file.

Your own tools for AI assistants

Host a small server that gives AI assistants your own tools, such as "look up an order", on Azure.

React to database changes

Run your own logic when a record is created or updated, such as sending a welcome email for a new customer.

Receive payment notifications Idea

Give a payment or form service an address to call when something happens, and update your records from there.

Azure Functions popularity

3.8M
SDK downloads a week
+34.6% on the 4-week average
41
public agent repos use its SDK
2,026
GitHub stars, Azure/azure-functions-host
SDK downloads per weeknpm @azure/functions, pypi azure-functions 3,768,281

SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026.

Pricing

Free tier

Flex Consumption: 250,000 executions and 100,000 GB-s per month (Consumption plan: 1 million executions and 400,000 GB-s)

Cheapest plan

No monthly plan

Usage price

Flex Consumption on-demand (East US): $0.000026 per GB-s, $0.40 per million executions; Consumption plan: $0.000016 per GB-s, $0.20 per million executions

Plans

Rates from Microsoft's retail prices API (prices.azure.com) for East US, since the pricing page renders prices client-side; prices vary by region.

What one action costs

ActionPrice
10 on-demand executions on Flex Consumption above the free grant (East US, retail prices API)$0.000004
1 GB-second of on-demand execution time on Flex Consumption above the free grant (East US)$0.000026
10 executions on the legacy Consumption plan above the free grant (East US)$0.000002

As reported on the official pricing page, checked Oct 10, 2026. Prices change: confirm before you buy. azure.microsoft.com/en-us/pricing/details/functions

Limits

Flex Consumption

Function timeout 30 minutes by default, can be unbounded

Consumption (legacy)

Function timeout 5 minutes by default, 10 at most

All plans, web requests

230 seconds to answer an HTTP request

Flex Consumption

Instance memory of 512, 2,048 (default) or 4,096 MB

Flex Consumption

App start must finish within 30 seconds

From the official docs. learn.microsoft.com/en-us/azure/azure-functions/functions-scale

Key and access

How it signs in

Calling a function: an access key in the ?code= query string or the x-functions-key header, unless the function is anonymous. Deploying and managing: your Azure account (Microsoft Entra ID) through az login.

Environment variable
None for function keys; the app reads its storage connection from the AzureWebJobsStorage app setting
Safe in browser code
No, keep it on your server
Card at sign-up

Not stated on the pages we read

Steps only a person can do

  • Create an Azure account and a pay-as-you-go subscription (the free grant applies only to paid subscriptions). Run az login, then create the resource group, storage account and function app with the quickstart's az commands.
  • Choose a region that supports Flex Consumption and, if needed, request a higher regional memory quota. Use that region in az functionapp create --flexconsumption-location.
  • Set a budget alert in the Azure portal so heavy traffic does not cause a surprise bill. No code change.

Commercial use and your data

Azure Functions is a paid Microsoft cloud service billed by use, with a monthly free allowance on pay-as-you-go accounts. The engine that runs functions and the Node.js package are open source under the MIT license.

In a paid app
Yes

A paid cloud service used under your Azure subscription; the runtime and the @azure/functions package are MIT.

“MIT License Copyright (c) .NET Foundation. All rights reserved.” source

inside-app-bundle
Yes

The @azure/functions package is MIT; keep its license notice.

“"license":"MIT"” source

client-work
Yes

Build and deploy function apps for clients, ideally in the client's own Azure subscription so they own the bill.

“Free grants apply to paid, consumption subscriptions only.” source

Where data is stored

The region you pick for the function app; Flex Consumption is available in a list of regions you can query with the Azure command line.

“Use the az functionapp list-flexconsumption-locations command to view the list of currently supported regions.” source

Errors to handle

HTTP 502 after 230 seconds

The HTTP function did not answer in time; it keeps running but cannot reply.

Return early and process the work asynchronously (queue or Durable Functions); retrying will hit the same limit.

Azure Functions Runtime is unreachable

The runtime cannot start, most often because the app lost access to its storage account.

Check that the storage account exists and that AzureWebJobsStorage is set and allowed through the firewall.

Function timeout

A run took longer than functionTimeout in host.json; the language worker restarts.

Raise functionTimeout within the plan's maximum, or split the work into smaller runs.

System.TimeoutException at startup (Flex Consumption)

The app took longer than 30 seconds to start.

Make startup lighter (smaller deployment, fewer startup calls); the timeout cannot be changed.

HTTP 404 on /admin or /runtime routes

Those paths are reserved for the Functions host and never reach your code.

Rename the function or route; do not retry.

Use it from an agent

Our agent check

4 of 6: llms.txt no, OpenAPI no, SDK yes, MCP yes, status page yes, AI assistants allowed yes

Checked Nov 13, 2026.

MCP server

Azure MCP Server (Azure Functions tools)

In Visual Studio 2022 version 17.14.30 or later, Azure MCP tools are included with the Azure development workload. No separate extension is required.

npm
npm install @azure/functions
PyPI
pip install azure-functions

Instructions in its docs to check first

The docs say

“This example prompt for Copilot Chat updates the existing function code to retrieve parameters from either the query string or JSON body.”

The quickstart includes ready prompts for an AI assistant that rewrite the generated code; review the change with the person instead of applying it blindly.

Alternatives

Azure Functions This page

from $0.000016 per GB-sFree tierOfficial MCP

Cloudflare Workers

Pick Cloudflare Workers when you want small functions running at the edge, close to users, in JavaScript, Rust, C or C++.

See its pageNo free tier

Vercel

Pick Vercel when you host a Next.js or other web app and want its serverless functions deployed with the site.

Free planFree tierOfficial MCP

OCI Functions

Pick OCI Functions when you already use Oracle Cloud; our catalog lists it at $0.0002 per 1,000 calls on 2026-11-10.

$0.0002 / 1k requestsFree tier

All hosting and deployment APIs

Get started

Tell your AI assistant

“Create an Azure Functions app for me with the Node.js v4 programming model (@azure/functions, app.http), test it with func start, and plan it for the Flex Consumption plan; keep function keys and connection strings in app settings, never in browser code.”

  1. Install Azure Functions Core Tools version 4 and Node.js 22 or newer on your computer.

    npm i -g azure-functions-core-tools@4 --unsafe-perm true

    From learn.microsoft.com/en-us/azure/azure-functions/how-to-create-function-azure-cli?pivots=programming-language-javascript

  2. Create a project with one web function and run it locally.

    func init --worker-runtime node --language javascript
    func new --name HttpExample --template "HTTP trigger" --authlevel "function"
    func start

    From learn.microsoft.com/en-us/azure/azure-functions/how-to-create-function-azure-cli?pivots=programming-language-javascript

  3. Sign in to Azure, create a function app on the Flex Consumption plan, and deploy (the quickstart lists the az commands).

    az login

    From learn.microsoft.com/en-us/azure/azure-functions/how-to-create-function-azure-cli?pivots=programming-language-javascript

First request

func init --worker-runtime node --language javascript
func new --name HttpExample --template "HTTP trigger" --authlevel "function"
func start

Mistakes to avoid

Creating a new app on the Consumption plan, especially on Linux.
Create new serverless apps on the Flex Consumption plan.

The Consumption plan is legacy and its Linux option retires on 30 September 2028.

Using the default (polling) blob trigger on a Flex Consumption app.
Set the trigger source to EventGrid and set up the Event Grid subscription.

Flex Consumption supports only the event-based blob trigger.

Writing a five-field cron schedule such as '*/5 * * * *' for a timer trigger.
Use six fields with seconds first, for example '0 */5 * * * *'.

Azure Functions reads NCRONTAB, which adds a seconds field at the start.

Doing long work inside a web request handler.
Return quickly and hand long work to a queue or Durable Functions, then report the result.

After 230 seconds the load balancer returns HTTP 502 even though the function keeps running.

Putting a function key in browser or mobile app code to protect an endpoint.
Keep keys on servers you control; for public clients add App Service authentication or API Management.

Function keys are shared secrets and the docs say not to distribute them in public apps.

Questions

Is there a free tier?

Yes, a monthly free grant on pay-as-you-go subscriptions; on Flex Consumption it is 250,000 runs and 100,000 GB-s.

Which plan should I choose for a new app?

Flex Consumption. The older Consumption plan is legacy, and its Linux version retires on 30 September 2028.

Which languages can I write functions in?

C#, Java, JavaScript, PowerShell, Python or Go, and others such as Rust through custom handlers.

Can I call a protected function from my web page?

Not with a function key in public code. Keys are shared secrets; for public clients use sign-in through App Service authentication or another layer.

How long can a function run?

On Flex Consumption the default limit is 30 minutes and it can be unbounded, but web requests must answer within 230 seconds.