The Hosting Plan parameter

As mentioned earlier, the Azure Functions have two options for hosting: the Consumption plan and the App Service plan.

The Consumption plan is the default pricing plan, which is billed based on resource consumption and the number of executions. Resource consumption is measured in gigabyte-seconds and is calculated by multiplying the average memory size used by the function by the time in seconds it takes to execute. The plan comes with 400,000 gigabyte-seconds and 1 million executions a month for free with every subscription, which is very useful for dev/test environments. The Consumption plan will scale on demand to fit the needs of your application.

An App Service plan is billed based on the plan tier (Free, Shared, ...

Get Serverless computing in Azure with .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.