Azure Function Pricing

Azure Function Pricing

In this Azure tutorial, we will discuss Azure Function Pricing. Along with this, we will also discuss a few other topics as below

  • Azure Pricing
  • Azure Storage Pricing
  • Azure Blob Storage Pricing
  • Azure Bot Services Pricing
  • Azure Monitor pricing
  • Azure Data Lake Storage pricing
  • Azure Managed Disks pricing
  • Azure Files Pricing
  • Azure App Service Pricing
  • Azure Cloud Services pricing
  • Azure Function Timeout
  • Azure Cosmos DB Pricing
  • Azure Functions

Azure Function Pricing

The Azure Functions Pricing model is basically based on three plans as below. You can choose the plan based on your requirement

  • Consumption plan
  • Premium plan
  • App Service plan

Consumption plan:

As per the Consumption plan, Azure provides you all the computing resources that are needed for the activity. You need not worry about the compute resources. You just need to pay for the time your code is running. Azure functions are billed based on the resource consumption that is measured by GB seconds.

Functions those are running on a Consumption Plan have a timeout of five minutes by default.

How this will be calculated exactly is they will multiply the average memory size in GB by the execution time that takes to execute the function in milliseconds. The memory used by the function is calculated from 128 MB to the max 1,536 MB.

The minimum execution time is 100 ms and the minimum memory for a single function execution is 128 MB. Functions pricing that includes a monthly free grant of 4,00,000 GB seconds.

Premium plan:

As per the Premium plan, Azure will provide you if any of the additional computing resources needed for the activity. You need to pay for the resources running continuously that are initially defined by you and also any additional instances you need to use as Azure scales your application in and out operations.

App Service plan:

As per the App Service plan, If you using your App Service for your other applications, your Azure functions can run on the same App Service plan at no extra cost.

It is unlimited for this plan. No default time out for this particular plan.Your Function may run for as long as it needs to.

As part of this plan, we need to provision a dedicated Virtual Machine meaning you need to pay for those resources even if you are not using them completely.

If you will go little in depth

MeterPricing DetailsFREE GRANT (PER MONTH)
Execution TimeYou need to pay ₹0.001058/GB-s4,00,000 GB-s
Total ExecutionsYou will have to pay ₹13.220 / million executions1 million executions

As per the Premium Plan

MeterPricing Details
vCPU durationvCPU: You need to pay ₹11.434652 vCPU/hour
Memory durationMemory: You will have to pay ₹0.812984 GB/hour

For more information on the Azure Functions billing details, you can refer to the Microsoft Official site.

Azure Pricing

We will discuss here about the Azure Pricing. In this context, we will discuss about each Azure key services pricing details. Let’s discuss each Azure service pricing one by one.

Azure Bot Services Pricing

Below is the Azure Bot Services Pricing Details

Different ChannelsFree S1
Standard channelsYou will get unlimited messagesYou will get unlimited messages
Premium channelsYou will get 10,000 messages/monthYou will have to pay $0.50 per 1,000 messages

Check out more details on Azure Bot Services Pricing now.

Azure Machine Learning pricing

Azure Machine Learning pricing is based on the Bs-series, Av2 Standard, D2-64 v3, D2s-64s v3, D1-5 v2, D1s-5s v2, Fsv2-series, F-series, E2-64 v3, E2s-64s v3, D11-15 v2, D11S-15S v2, G-series, M-series, etc.

Instance Details
vCPU(s)
RAM SizePrice of Linux VM
Total Price(Pay As You Go)
One Year Reserved
Total Price
Three Year Reserved
Total Price
For B2S24 GiBYou need to pay $0.042 per hourYou will have to pay $0.042 per hourYou need to pay $0.025/hour per hourYou need to pay $0.016 per hour 
For B2MS28 GiBYou need to pay $0.084 per hourYou will have to pay $0.084 per hourYou need to pay $0.049 per hourYou need to pay
$0.032 per hour
For B4MS416 GiBYou need to pay $0.166 per hourYou will have to pay $0.166 per hourYou need to pay $0.098 per hourYou need to pay $0.063 per hour
For B8MS832 GiBYou need to pay $0.333 per hourYou will have to pay $0.333 per hourYou need to pay $0.195 per hourYou need to pay $0.126 per hour
For B12MS1248 GiBYou need to pay $0.499 per hourYou will have to pay $0.499 per hourYou need to pay $0.293 per hourYou need to pay $0.188 per hour
For B16MS1664 GiBYou need to pay $0.666 per hourYou will have to pay $0.666 per hourYou need to pay $0.390 per hourYou need to pay $0.251 per hour
For B20MS2080 GiBYou need to pay $0.832 per hourYou will have to pay $0.832 per hourYou need to pay $0.487 per hourYou need to pay
$0.314 per hour

For more details you can check the Azure Machine Learning pricing now.

Azure Monitor pricing

Well, let’s discuss about the Azure Monitor pricing details.

Capacity Reservations

The below price is based on the capacity reservations where it’s based on the selected capacity reservation for ingesting data.

Capacity1Price
For 100 GB per dayYou need to pay $219.52 per day
For 200 GB per dayYou need to pay $412.16 per day
For 300 GB per dayYou need to pay $604.80 per day
For 400 GB per dayYou need to pay $788.48 per day
For 500 GB per dayYou need to pay $968.80 per day
For more than 500 GB per dayYou need to pay $968.80 per day and $193.76 per day for every 100 increments.

For more information, you need to check out Azure Monitor pricing now.

Azure VM Pricing

Here we will discuss Azure VM Pricing. As part of Azure VM Pricing, we will discuss Windows Virtual Machines Pricing and Linux Virtual Machines Pricing.

Windows Virtual Machines Pricing

Let’s discuss the Windows Virtual Machines Pricing details.

DetailsSpecsPricing Details
General purpose—Av2A1 v2
1 vCPU(s)
2 GiB RAM
You need to pay $0.005 per hour
Compute optimised—Fsv2F2s v2
2 vCPU(s)
4 GiB RAM
You need to pay $0.011 per hour
General purpose—Dv3D2 v3
2 vCPU(s)
8 GiB RAM
You need to pay $0.013 per hour
Memory optimised—Ev3E2 v3
2 vCPU(s)
16 GiB RAM
You need to pay $0.016 per hour

For more details, you can check out the Windows Virtual Machines Pricing now.

Linux Virtual Machines Pricing

Let’s discuss the Linux Virtual Machines Pricing details.

DetailsSpecsPricing Details (Spot)
General purpose—Av2A1 v2
1 vCPU(s)
2 GiB RAM
You need to pay $0.005 per hour
Compute optimised—Fsv2F2s v2
2 vCPU(s)
4 GiB RAM
You need to pay $0.0103 per hour
General purpose—Dv3D2 v3
2 vCPU(s)
8 GiB RAM
You need to pay $0.0124 per hour
Memory optimised—Ev3E2 v3
2 vCPU(s)
16 GiB RAM
You need to pay $0.0151 per hour

Check out the Linux Virtual Machines Pricing for more details now.

Azure Storage Pricing

Azure Storage Pricing depends on multiple storage options like Block Blobs, Azure Data Lake Storage, Managed Disks, Files, etc. we will discuss all these storage options pricing one by one.

Azure Blob Storage Pricing

Well, let’s discuss about the Azure Blob Storage Pricing.

The pricing of the block blob storage depends on multiple factors like the selected Data redundancy option, volume of data stored, the operation type and the quantity, etc. The Redundancy options are LRS, ZRS, GRS, RA GRS, GZRS, RAGZRS, etc.

Prices for the Data Storage

DetailsPremiumHotCoolArchive
For the First 50 terabyte (TB) / monthYou need to pay $0.15/GBYou will have to pay $0.0208/GBYou need to pay $0.0152/GBYou will have to pay $0.00099/GB
For the Next 450 TB / monthYou will have to pay $0.15/GBYou need to pay $0.0200/GBYou need to pay $0.0152/GBYou need to pay $0.00099/GB
For the Next Over 500 TB / monthYou need to pay $0.15/GBYou need to pay $0.0192/GBYou need to pay $0.0152/GBYou need to pay $0.00099/GB

For more information, you can check out the Azure Block blob pricing now.

Azure Data Lake Storage pricing

You need to pay for the Azure Data Lake Storage Pricing based on few factors like Redundancy options, File Structure, etc.

DetailsPremiumHotCoolArchive
For the First 50 terabyte (TB) / monthYou need to pay $0.15/GBYou will have to pay $0.0208/ GBYou need to pay $0.0152/GBYou will have to pay $0.00099/GB
For the Next 450 TB / monthYou need to pay $0.15/GBYou will have to pay $0.02/GBYou need to pay $0.0152/GBYou need to pay $0.00099/GB
For Over 500 TB / monthYou need to pay $0.15/GBYou need to pay $0.0191/GBYou need to pay $0.0152/GBYou need to pay $0.00099/GB

For more information, you can check out the Azure Data Lake Storage pricing now.

Azure Managed Disks pricing

Microsoft offers different types of managed disks and those are Ultra Disk, Premium SSD Managed Disks, Standard SSD Managed Disks, Standard HDD Managed Disks. Microsoft uses to charge you on an hourly basis for Azure managed disks. Basically, we use the Azure managed disks along with the Virtual machine.

DetailsDisk Size GiB/TiBPrice/month
1-Year Reserved
Price/Month
IOPS/disk
Throughput/disk
Price per mount/month (Shared Disk)
P1The Disk Size will be 4 GiBYou need to pay $0.60 per monthYou can get Up to 3,500 Provisioned 120You can get 170 MB/second Provisioned 25 MB/second
P2The Disk Size will be 8 GiBYou need to pay $1.20 per monthYou can get Up to 3,500 Provisioned 120You can get 170 MB/second Provisioned 25 MB/second
P3The Disk Size will be 16 GiBYou need to pay $2.40 per monthYou can get Up to 3,500 Provisioned 120You can get 170 MB/second Provisioned 25 MB/second
P4The Disk Size will be 32 GiBYou need to pay $2.40 per monthYou can get Up to 3,500 Provisioned 120You can get 170 MB/second Provisioned 25 MB/second
P6The Disk Size will be 64 GiBYou need to pay $2.40 per monthYou can get Up to 3,500 Provisioned 240You can get 170 MB/second Provisioned 50 MB/second
P10The Disk Size will be 128 GiBYou need to pay $19.71 per monthYou can get Up to 3,500 Provisioned 500You can get 170 MB/second Provisioned 100 MB/second
P15The Disk Size will be 256 GiBYou need to pay $38.02 per monthYou can get Up to 3,500 Provisioned 1,100You can get 170 MB/second Provisioned 125MB/secondYou need to pay $1.83 per month
P20The Disk Size will be 512 GiBYou need to pay $73.22 per monthYou can get Up to 3,500 Provisioned 2,300You can get 170 MB/second Provisioned 150 MB/secondYou need to pay $3.29 per month
P30The Disk Size will be 1 TiBYou need to pay $135.17 per monthYou need to pay $128.4167 per monthProvisioned 5,000Provisioned 200 MB/secondYou need to pay $6.57 per month
P40The Disk Size will be 2 TiBYou need to pay $259.05 per monthYou need to pay $246.0834 per monthProvisioned 7,500Provisioned 250 MB/secondYou need to pay $13.14 per month
P50The Disk Size will be 4 TiBYou need to pay $495.57 per monthYou need to pay $470.8334 per monthProvisioned 7,500Provisioned 250 MB/secondYou need to pay $25.55 per month
P60The Disk Size will be 8 TiBYou need to pay $946.08 per monthYou need to pay $898.75
per month
Provisioned 16,000Provisioned 500 MB/secondYou need to pay $51.10 per month
P70The Disk Size will be 16 TiBYou need to pay $1,802.06 per monthYou need to pay $1,712
per month
Provisioned 18,000Provisioned 750 MB/secondYou need to pay $109.50 per month
P80The Disk Size will be 32 TiBYou need to pay $3,604.11 per monthYou need to pay $3,423.9167
per month
Provisioned 20,000Provisioned 900 MB/secondYou need to pay $219 per month

For more information, you can check out Azure Managed Disks pricing now.

Azure Files Pricing

Well, let’s discuss on the pricing structure of the Azure Files.

DetailsPremiumTransaction OptimizedHot Cool
For Data at-rest (GiB/month)You need to pay $0.16 per provisioned GiBYou need to pay $0.06 per used GiBYou need to pay $0.0287 per used GiBYou need to pay $0.0228 per used GiB
For Snapshots (GiB/month)You need to pay $0.136 per used GiBYou will have to pay $0.06 per used GiBYou need to pay $0.0287 per used GiBYou need to pay $0.0228 per used GiB
For Metadata at-rest (GiB/month)Here it is includedHere it is includedYou need to pay $0.030 per used GiBYou need to pay $0.030 per used GiB

For more information, check out the Azure Files Pricing now.

Azure App Service Pricing

Well, here we will discuss Azure App Service Pricing. One thing to remember here is App Service plans are billed on a per second basis.

Basic Service Plan

Instance DetailsCoresRAM capacityStoragePricing
For B11Here it is 1.75 GB
10 GB
You need to pay $0.075/hour
For B22Here it is 3.50 GB
10 GB
You need to pay $0.15/hour
For B34Here it is 7 GB
10 GB
You need to pay $0.30/hour

For more information, check out the Azure App Service Pricing now.

Azure Cloud Services pricing

Well, let’s discuss here the details on the Cloud Services pricing.

Instance DetailsCoresRAM sizeTemporary Storage CapacityPricing Details
A01You will get 0.75 GBYou will get 20 GBYou need to pay $0.02/hour
A11You will get 1.75 GBYou will get 225 GBYou will have to pay $0.08/hour
A22You will get 3.50 GBYou will get 490 GBYou need to pay $0.16/hour
A34You will get 7.00 GBYou will get 1,000 GBYou will have to pay $0.32/hour
A48You will get 14.00 GBYou will get 2,040 GBYou need to pay $0.64/hour

Check out Azure Cloud Services pricing for more information now.

Azure Function Timeout

Remember, that there is a default time out duration for the function app based on the plan you have and the runtime version you are using. As we know already, there are different plans are available for the Azure functions and those are Consumption Plan, Premium Plan, App Service Plan.

You can also change the default time out duration to a specific time based on the plan and the runtime version you are using.

The below table will show you the default timeout option based on your Azure Function App plan.

PlanRuntime VersionDefault time out durationMaximum Time out duration you can update
For Consumption PlanIf you are using Runtime version 1.x5 minutesYou can set the maximum time out as 10 minutes
For Consumption PlanIf you are using Runtime version 2.x5 minutesYou can set the maximum time out as 10 minutes
For Consumption PlanIf you are using Runtime version 3.x5 minutesYou can set the maximum time out as 10 minutes
For Premium PlanIf you are using Runtime version 1.x30 minutesYou can set the unlimited maximum time out
For Premium PlanIf you are using Runtime version 2.x30 minutesYou can set the unlimited maximum time out
For Premium PlanIf you are using Runtime version 3.x30 minutesYou can set the unlimited maximum time out
For App Service PlanIf you are using Runtime version 1.xUnlimitedYou can set the unlimited maximum time out
For App Service PlanIf you are using Runtime version 2.x30You can set the unlimited maximum time out
For App Service PlanIf you are using Runtime version 3.x30You can set the unlimited maximum time out

Azure Cosmos DB Pricing

Well, For the Azure Cosmos DB, you need to pay based on the database operations and how much storage you consumed.

With the Azure Cosmos DB free tier, you can get 5 GBs storage per month and 400 request units/second throughput. You can check out the Azure Cosmos DB Pricing for more information.

Azure Functions

Azure Functions is simply a “Functions-as-a-service” that helps us by providing the solution to run a few lines of code or functions in the cloud environment. You just need to worry about writing the code. No need to take any headache for the whole application or the infrastructure.

Check out more information on Azure Functions now.

You may also like following the below articles

Wrapping Up

In this article, we have discussed, Azure Function Pricing, Azure Pricing, Azure Bot Services Pricing, Azure Monitor pricing, Azure Data Lake Storage pricing and we also discussed Azure Managed Disks pricing, Azure Files Pricing, Azure Storage Pricing, Azure Blob Storage Pricing, Azure App Service Pricing, Azure Cloud Services pricing, Azure Function Timeout, Azure Cosmos DB Pricing, Azure Functions. Hope you have enjoyed this article !!!