Price the Functions consumption plan in GB-seconds and executions, including the monthly free grants.
The consumption plan charges two meters: resource consumption in GB-seconds, where memory is rounded up to 128 MB blocks and duration has a 100 ms floor, and a flat charge per million executions. Both meters have a monthly free grant, so small workloads genuinely cost nothing while long-running or memory-hungry functions are dominated by the GB-second line. The 100 ms floor and the 128 MB rounding mean thousands of trivial 5 ms functions cost the same as 100 ms ones, so batching work per invocation is usually cheaper than fanning out — check the current GB-second and execution prices in the Azure pricing calculator, and note that Premium and Flex Consumption plans bill differently.
Azure Functions Cost
GB-seconds = executions × billed duration (min 100 ms) × memory rounded up to 128 MB blocks ÷ 1024; cost = (GB-s − 400,000 free) × GB-s price + (executions − 1 M free) ÷ 1 M × execution price.
GB-seconds = executions × billed duration (min 100 ms) × memory rounded up to 128 MB blocks ÷ 1024; cost = (GB-s − 400,000 free) × GB-s price + (executions − 1 M free) ÷ 1 M × execution price. The consumption plan charges two meters: resource consumption in GB-seconds, where memory is rounded up to 128 MB blocks and duration has a 100 ms floor, and a flat charge per million executions. Both meters have a monthly free grant, so small workloads genuinely cost nothing while long-running or memory-hungry functions are dominated by the GB-second line.
The 100 ms floor and the 128 MB rounding mean thousands of trivial 5 ms functions cost the same as 100 ms ones, so batching work per invocation is usually cheaper than fanning out — check the current GB-second and execution prices in the Azure pricing calculator, and note that Premium and Flex Consumption plans bill differently.
This calculator takes 7 inputs: Executions per month, Average execution time, Memory used per execution, Price per GB-second, Price per million executions, Free GB-seconds per month, Free executions per month. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.