AWS Lambda vs Azure Functions
AWS Lambda and Azure Functions run code in response to events and bill for the time it runs. Amazon Web Services makes Lambda. Microsoft makes Azure Functions. This page compares them on hosting options, cold starts, time and memory limits, languages, triggers and pricing, and says which fits which workload.
Lambda is one service with several compute types under its name. Azure Functions runs on a hosting plan you choose, and the plan sets the limits, networking and price. Both offer ways to keep instances warm, and both run long multi-step workflows.
Prices and other facts are as of October 29, 2026. Vendors change prices; confirm them on the vendor’s own pricing page. Independent analysis: neither project nor any vendor named here paid for or reviewed this page.
The quick read
Choose AWS Lambda when
- your events come from AWS services such as S3, SQS, DynamoDB or Kinesis
- you want to set memory per function anywhere from 128 MB to 10,240 MB
- you want shorter Java, Python or .NET start times without paying for idle instances, through SnapStart
Choose Azure Functions when
- your events and data live in Azure services such as Service Bus, Cosmos DB or Event Hubs
- single executions must run longer than 15 minutes
- you need Windows, PowerShell or .NET Framework 4.8.1
How they compare
Compared on vendor documentation and pricing pages as of October 29, 2026. Prices are US list prices as of October 2026: AWS in US East (N. Virginia), Azure in East US.
Hosting options
AWS Lambda
Event Functions bill per request and per GB-second. Lambda Managed Instances run Event Functions on EC2 instances in your VPC, for a fee of 15% on top of the EC2 On-Demand price. Web Functions and MicroVMs are separate compute types with their own pricing.
Azure Functions
Flex Consumption runs on Linux only, with one app per plan. Premium runs on EP1, EP2 or EP3 instances, with at least one instance always billed. Dedicated runs on App Service plans at App Service rates. Container Apps hosts function apps as containers.
On Azure the plan decides the limits and the bill, so pick it before you design the app.
Cold starts
AWS Lambda
Provisioned concurrency keeps execution environments initialized, at an extra charge, on a published version or alias. SnapStart starts new environments from a snapshot on Java 11 and later, Python 3.12 and later, and .NET 8 and later. SnapStart costs nothing extra on Java runtimes.
Azure Functions
Flex Consumption offers always-ready instances per function or function group. The default is 0. Premium keeps at least one instance running and adds a prewarmed instance as it scales. Dedicated runs on a fixed number of instances.
Both charge for warm capacity; only Lambda offers a snapshot option that needs no idle instances.
Run time and memory
AWS Lambda
Up to 15 minutes per invocation. Lambda Managed Instances allow 90 minutes for asynchronous and event source mapping invocations. Memory from 128 MB to 10,240 MB in 1 MB steps, with CPU in proportion. Synchronous requests and responses up to 6 MB each.
Azure Functions
Flex Consumption and Premium default to 30 minutes and enforce no maximum, with a 60-minute grace period at scale-in. An HTTP-triggered function must respond within 230 seconds. Flex Consumption instances have 512 MB, 2,048 MB or 4,096 MB. Premium instances have up to 14 GB. The legacy Consumption plan stops at 10 minutes and 1.5 GB.
Azure takes longer single executions; Lambda sizes memory more finely, function by function.
Languages and runtimes
AWS Lambda
Managed runtimes for Node.js 22 and 24, Python 3.10 to 3.14, Java 8 to 25, .NET 8 and 10, and Ruby 3.3 to 4.0, all on Amazon Linux. Every supported runtime runs on x86 and Arm. Go and Rust run on the OS-only runtime. Container images can be up to 10 GB uncompressed.
Azure Functions
Generally available: .NET 8 to 10 and .NET Framework 4.8.1, Java 8 to 25, Node.js 22 and 24, PowerShell 7.4 and 7.6, and Python 3.11 to 3.14. Go runs only on Flex Consumption. Other languages, such as Rust, run as custom handlers. Python runs only on Linux.
Azure adds PowerShell and Windows; Lambda adds Ruby.
Triggers and integrations
AWS Lambda
More than 200 AWS services can trigger an Event Function. S3, SNS and EventBridge push events to it. Lambda reads SQS, Kinesis, DynamoDB, Kafka and Amazon MQ through event source mappings. Code reads and writes other services through the AWS SDKs.
Azure Functions
Triggers include HTTP, Timer, Blob Storage, Cosmos DB, Azure SQL, Event Grid, Event Hubs, Service Bus, Kafka, Redis and Model Context Protocol. Input and output bindings read and write data in services such as Cosmos DB, Azure SQL and Table Storage without SDK code.
Azure bindings replace data-access code that a Lambda function writes with an SDK.
Pricing
AWS Lambda
Free each month: 1 million requests and 400,000 GB-seconds. Then $0.20 per million requests and $0.0000166667 per GB-second on x86, rounded up to 1 ms. Provisioned concurrency adds $0.0000041667 per GB-second while enabled and gets no free tier.
Azure Functions
Flex Consumption is free each month for 250,000 executions and 100,000 GB-seconds. Then $0.40 per million executions and $0.000026 per GB-second, with a 1,000 ms minimum per execution. Always-ready instances add a baseline of $0.000004 per GB-second. Premium costs $126.29 per vCPU and $8.979 per GB of memory a month.
Flex Consumption bills an instance's memory while it runs executions, and one instance runs several at once, so the per-GB-second rates do not compare directly.
Which has faster cold starts?
Neither vendor publishes a figure that compares the two. Start time depends on the language, the package size and the initialization code. Both sell warm capacity that removes most cold starts for a price. Measure your own function on both, with and without that capacity.
What each one is
AWS now calls the original Lambda function type an Event Function. Lambda also offers Web Functions, which run Node.js web servers, and MicroVMs, which give each user or job its own environment for up to 8 hours. The function APIs, SDKs and resource names are unchanged.
Azure Functions runs on the Flex Consumption, Premium, Dedicated or Consumption plan, or on Azure Container Apps. Microsoft calls the Consumption plan legacy and recommends Flex Consumption for new serverless apps.
Which fits your situation
Processing queue or stream messages from the same cloud
The one that hosts the queue. Lambda reads SQS, Kinesis and DynamoDB streams through event source mappings. Azure Functions has triggers for Service Bus, Event Hubs and Cosmos DB.
A job that runs for 30 minutes or more in one execution
Azure Functions on Flex Consumption or Premium, where no maximum is enforced. A Lambda Event Function stops at 15 minutes, or 90 minutes on Lambda Managed Instances for asynchronous calls.
Code that depends on Windows or .NET Framework
Azure Functions on Premium or Dedicated. Lambda runtimes run on Amazon Linux.
A Java API that must answer quickly after idle periods
Either. Lambda SnapStart costs nothing extra on Java. Azure Flex Consumption always-ready instances bill a baseline while idle.
Quick answers
Is the Azure Functions Consumption plan being retired?
On Linux, yes. Linux hosting on the Consumption plan retires on September 30, 2028, and gets no new features or language versions. Windows apps on the Consumption plan are not currently affected. Microsoft recommends Flex Consumption for new apps.
Can either run long multi-step workflows?
Yes. Lambda durable functions run multi-step workflows for up to one year and charge no compute while waiting. Durable Functions extends Azure Functions with orchestrator, activity and entity functions that keep state between steps.
Does the in-process .NET model still work on Azure Functions?
Support for the in-process model ends on November 10, 2026. Microsoft recommends moving to the isolated worker model, which supports .NET 8 to 10 and .NET Framework 4.8.1.
Sources
- What is AWS Lambda?
- AWS Lambda pricing
- Lambda quotas
- Lambda Event Function runtimes
- Configuring provisioned concurrency
- Lambda SnapStart
- Invoking Lambda with events from other AWS services
- Lambda durable functions
- Azure Functions pricing
- Azure Functions scale and hosting
- Azure Functions Flex Consumption plan
- Azure Functions Premium plan
- Supported languages in Azure Functions
- Triggers and bindings in Azure Functions
- Durable Functions overview
Keep reading
Weekly stories built from government data: tech jobs, software prices, AI adoption and more.
Capability models, architecture templates and IT strategy tools to download.