
AWS Lambda is one serverless service with one pricing model; Azure Functions is a programming model you run on one of five hosting plans, and the plan you pick sets its time limit, its operating system and its price. For most small business automations either works, so the deciding question is which plan Azure would put you on: if your code needs Windows or runs longer than ten minutes, Azure narrows to plans that cost more, while Lambda's single model handles runs of up to 30 minutes on Linux-based runtimes.
Below are the three differences that change a decision, a priced example, and what Google's equivalent adds.
How to compare AWS Lambda and Azure Functions on one workload
Take an application that sits quiet most of the week and then processes a batch of invoices on Friday afternoon. Write down three numbers before comparing anything: how many executions a month, how much memory each needs, and the longest a single run can take. Every figure below was read from the vendors' documentation and pricing on December 2, 2026.
| AWS Lambda | Azure Functions | |
|---|---|---|
| Hosting choice | One model; optional Provisioned Concurrency to keep environments warm | Flex Consumption, Premium, Dedicated (App Service), Container Apps, and the legacy Consumption plan |
| Longest run | 1,800 seconds (30 minutes) | Legacy Consumption: 5 minutes default, 10 maximum. Flex Consumption and Premium: 30 minutes default, no enforced maximum. HTTP-triggered functions must respond within 230 seconds on every plan |
| Memory | 128 MB to 10,240 MB in 1 MB steps | Flex Consumption instance sizes of 512 MB, 2,048 MB or 4,096 MB |
| Operating system for new serverless apps | Managed runtimes or container images | Flex Consumption is Linux only; Windows needs Premium, Dedicated or the legacy Consumption plan |
| Free monthly grant | 1 million requests and 400,000 GB-seconds | Flex Consumption: 250,000 executions and 100,000 GB-seconds. Legacy Consumption: 1 million executions and 400,000 GB-seconds |
| Price after the grant | $0.20 per million requests; $0.0000166667 per GB-second (x86, US East) | Flex Consumption on demand: $0.40 per million executions; $0.000026 per GB-second (East US) |
Difference 1: Azure makes you choose a hosting plan, and the plan has rules
Microsoft's hosting comparison now calls the original Consumption plan legacy and tells new serverless apps to use Flex Consumption. It also says hosting function apps on Linux in the Consumption plan retires on September 30, 2028, while Windows apps on that plan are not currently affected. Flex Consumption brings virtual network integration and always-ready instances to reduce cold starts, but it supports Linux only.
That matters when your function depends on Windows, for example a PowerShell module or the full .NET Framework, which Microsoft lists as a reason to stay on the Windows Consumption plan. Lambda has no equivalent fork: you pick a runtime and memory size, and the Lambda quotas page sets the limits.
Difference 2: the time limit depends on the plan, and HTTP calls stop at 230 seconds
Lambda's limit is one number: a function can run for up to 1,800 seconds. Azure's depends on the plan: 10 minutes at most on legacy Consumption, no enforced maximum on Flex Consumption and Premium, with a 60 minute grace period when the platform scales in. Separately, Microsoft states that 230 seconds is the most an HTTP-triggered function can take to respond, whatever the timeout setting, and recommends handing longer work to Durable Functions or a queue.
For the Friday invoice batch this is the decision. If one run can take 20 minutes, Lambda handles it as is; on Azure it rules out the legacy Consumption plan and, if a person triggers it from a web page, needs an asynchronous pattern. Splitting the batch into small pieces removes the issue on both.
Difference 3: billing units look alike but are measured differently
Both bill executions plus memory multiplied by time. Lambda bills the memory you configure for the duration of each run (Lambda pricing). Microsoft says Flex Consumption bills on executions and on the memory of instances while they are actively executing functions, plus any always-ready instances you keep. Because several executions can share one instance, the billed time on Flex can come out lower than the per-run arithmetic below. Measure it with a week of real traffic.
Example, illustrative: 2 million executions a month, 512 MB each, 0.8 seconds on average, which is 800,000 GB-seconds. Prices are list prices in US East as of December 2026.
| AWS Lambda | Azure Flex Consumption | Azure legacy Consumption (Windows) | |
|---|---|---|---|
| Executions after the free grant | 1,000,000 × $0.20 per million = $0.20 | 1,750,000 × $0.40 per million = $0.70 | 1,000,000 × $0.20 per million = $0.20 |
| GB-seconds after the free grant | 400,000 × $0.0000166667 = $6.67 | 700,000 × $0.000026 = $18.20 | 400,000 × $0.000016 = $6.40 |
| Month, before sharing effects | $6.87 | $18.90 | $6.60 |
Azure's rates and free grants are from Microsoft's Azure Functions pricing page, East US, pay as you go (Flex Consumption runs on Linux; the legacy Consumption column here is Windows), as of December 2026. Lambda's are from AWS's Lambda pricing page, US East (N. Virginia), x86, as of December 2026. At this scale none of these bills matters to a business. The cost that does matter is a developer's week spent working around a limit you found in production.
Where Azure Logic Apps and Google Cloud Functions fit
People searching "aws lambda vs azure" are sometimes really comparing Lambda with Azure Logic Apps or Azure Service Fabric. Microsoft describes Logic Apps as a platform for automating business process workflows with little or no code and more than 1,400 prebuilt connectors: closer to Power Automate than to Lambda. Service Fabric is a distributed systems platform for microservices and containers with a focus on stateful services, not a pay-per-run function service. If you want code that runs on an event, compare Lambda with Azure Functions.
On Google's side, what was Cloud Functions (2nd gen) is now Cloud Run functions. Google's comparison page says these are deployed as services on Cloud Run, allow up to 60 minutes for HTTP-triggered functions and up to 1,000 concurrent requests per instance, and that the first generation allowed 9 minutes and one request per instance. They are billed at Cloud Run rates. The full comparison with Lambda is in Google Cloud Run vs AWS Lambda, and Azure Functions against Google's product is in Azure Functions vs Google Cloud Functions.
Picking a platform for the Friday invoice batch
- Your company already runs Azure and Microsoft 365, the code is .NET on Linux, and runs finish in minutes: Azure Functions on Flex Consumption. The bill is small either way, and one cloud is simpler to secure than two.
- The function needs Windows-only components: Azure Functions on the Windows Consumption or Premium plan, or rewrite the dependency.
- Your applications already live on AWS, or a single run can last up to half an hour: Lambda.
- Recovery: on either platform, keep the function code and its configuration in source control and redeploy it into a second region from there, and make sure any half-processed batch can be run again without paying an invoice twice. The platform restarts failed runs; it does not make your code safe to repeat.
NetSys provides AWS consulting for event-driven workloads and also manages Azure for firms that choose it. To have your batch sized against both platforms' limits, Scope my AWS workload.
More on this topic: AWS operations guides.
Frequently asked questions
Is AWS Lambda cheaper than Azure Functions?
On list price, Lambda's per-GB-second rate ($0.0000166667) is lower than Azure Flex Consumption's on-demand rate ($0.000026) as of December 2026, and its free grant is larger. Azure's legacy Consumption plan is priced like Lambda, but Microsoft marks it legacy and is retiring Linux hosting on it on September 30, 2028. Flex bills instance memory while executing, so shared instances can narrow the gap.
What is the difference between an Azure function app and an AWS Lambda function?
An Azure function app is the unit you deploy and scale: it holds one or more functions and lives on a hosting plan. A Lambda function is deployed and scaled on its own. In practice, a function app is closer to a small Lambda project than to a single Lambda function.
How do Azure Functions and AWS Lambda compare on performance?
Both scale out automatically. Azure documents up to 1,000 instances per function group on Flex Consumption and always-ready instances to reduce cold starts; Lambda documents a default of 1,000 concurrent executions per Region, increasable, and Provisioned Concurrency for warm starts. Real performance depends on your code and memory size, so test with your workload.
How do AWS Lambda, Azure Functions and Google Cloud Functions compare?
Lambda allows runs of up to 30 minutes; Azure depends on the hosting plan; Google's Cloud Run functions allow up to 60 minutes for HTTP functions and many concurrent requests per instance. Choose the one in the cloud where your data and other applications already live.
Sources
Read on December 2, 2026:
Discuss AWS Consulting for Business for your business.
Tell us about your current systems, the result you need and your timeline. We will discuss the work, responsibilities and pricing before you decide on an engagement.

