Azure Functions provide a serverless development experience supporting a robust set of event triggers and data bindings.
Azure Functions pricing
Azure Functions consumption plan is billed based on per-second resource consumption and executions. Consumption plan pricing includes a monthly free grant of 1 million requests and 400,000 GB-s of resource consumption per month per subscription in pricing across all function apps in that subscription. Customers can also run Functions within their App Service plan at regular App Service plan rates .
METER | PRICE | FREE GRANT (PER MONTH) |
---|---|---|
Execution Time * | ¥ 0.000113/GB-s | 400,000 GB-s |
Total Executions * | ¥ 1.30 per million executions | 1 million executions |
Note - A storage account is created by default with each Functions app. The storage account is not included in the free grant. Standard storage rates and networking rates charged separately as applicable.
View details on region availability
Pricing details
Executions
Functions are billed based on total number of requested executions each month for all functions. Executions are counted each time a function is executed in response to an event, triggered by a binding. The first million executions are included free each month.
Resource consumption
Functions are billed based on observed resource consumption measured in gigabyte seconds (GB-s). Observed resource consumption is calculated by multiplying average memory size in gigabytes by the time in milliseconds it takes to execute the function. Memory used by a function is measured by rounding up to the nearest 128 MB, up to the maximum memory size of 1,536 MB, with execution time calculated by rounding up to the nearest 1 ms. The minimum execution time and memory for a single function execution is 100 ms and 128 mb respectively. Functions pricing includes a monthly free grant of 400,000 GB-s.
Premium plan
Azure Functions Premium plan provides the same features and scaling mechanism used on the Consumption plan (based on number of events) with no cold start, enhanced performance and VNET access. Azure Functions Premium plan is billed based on the vCPU and memory that your functions consume.
METER | PRICE |
---|---|
vCPU duration | vCPU: ¥1.626 vCPU/hour |
Memory duration | Memory: ¥0.1158 GB/hour |
METER | PRICE |
---|---|
vCPU duration | vCPU: ¥1.724 vCPU/hour |
Memory duration | Memory: ¥0.123 GB/hour |
Functions Proxies
The same pricing applies to Functions Proxies. A proxy is a function that is triggered by an HTTP request. Memory used by a proxy is less than 128 MB. Proxy execution time is the round-trip time (request to response), because the proxy needs to stay up to keep the HTTP connection alive. If a proxy triggers a function, the function execution and memory usage is counted separately.
Pricing example
A function with observed memory consumption of 512 MB executes 3,000,000 times during the month and has an execution duration of one second. Monthly billing would be calculated as follows:
Resource Consumption Billing Calculation
Resource consumption (seconds)
Executions Execution duration (seconds) |
3 million executions x 1 second |
---|---|
Resource consumption Total | 3 million seconds |
Resource consumption (GB-s)
Resource consumption converted to GBs Execution time (seconds) |
512 MB / 1,024 MB x 3 million seconds |
Total GB-s | 1.5 million GB-s |
Billable resource consumption
Resource consumption Monthly free grant |
1.5 million GB-s - 400,000 GB-s |
Total billable consumption | 1.1 million GB-s |
Monthly resource consumption cost
Billable resource consumption Resource consumption price |
1.1 million GB-s x ¥ 0.000113/GB-s |
Total cost | ¥ 124.3 |
Executions billing calculation
Billable executions
Total monthly executions Monthly free executions |
3 million executions - 1 million executions |
---|---|
Monthly billable executions | 2 million executions |
Monthly executions cost
Monthly billable executions Price per million executions |
2 million executions x ¥ 1.3 |
Monthly execution cost | ¥ 2.6 |
Total consumption billing calculation
Total monthly cost
Monthly resource consumption cost Monthly executions cost |
¥ 124.3 + ¥ 2.6 |
---|---|
Total monthly cost | ¥ 126.9 |
More information
- Functions can also be hosted on App Service Virtual Machines
- Check out Azure Functions documentation for the latest information
- Azure Functions developer reference
Support & SLA
If you have any questions or need help, please visit Azure Support and select self-help service or any other method to contact us for support.
We guarantee that apps running in a customer subscription will be available 99.95% of the time. To learn more about the details of our Service Level Agreement, please visit the Service Level Agreements page.