Pricing/hosting plans
For Azure Functions, the consumption plan and App Service Plan can both be utilized:
- Consumption plan: In consumption plan hosting, we only pay for the time of execution of the function and not for the entire duration.
- App Service plan: In App Service plan hosting, we need to pay for all the resources allocated under the App Service plan for the entire time the App Service plan exists:

In earlier chapters, we have utilized the consumption plan for all our functions. Go to App Services
and verify the plan:

Go to Function Apps
in Azure Portal and verify the App Service plan; it is the same as the consumption plan:

Let's see how to create Azure Functions in the App Service plan:
- Create a new Function App.
- In the App Service plan, click on
Create New
. - Provide the
App Service plan
name,Location
, andPricing tier
details.
- Click on
OK
:

- Click on
Create
to create the Function App in the App Service plan:

- Now, we have two Function Apps in the Azure dashboard available. One has the consumption...