Azure Compute Pricing
Azure Virtual Machine (VM) Pricing
Microsoft Azure has many virtual machines in a wide range of types and sizes, such as:
- General purpose VMs
- Compute-optimised VMs
- Memory-optimised VMs
- Storage-optimised VMs
- Accelerated VMs (GPU/FPGA)
- High-performance computing VMs (with RDMA network connections)
Take time to understand your workload and determine whether it’s skewed towards storage, CPU, or memory. Or maybe it’s a general-purpose workload? Then, find the VM tier and type fits best.
Now, let’s lay out an example of prices for Windows VMs in East US with pay-as-you-go pricing:
Virtual Machines |
Prices from |
Description + Use Case |
1. General Purpose |
$0.0140/hour |
Balanced CPU-to-memory ratio, ideal for testing, development, small to medium databases, and low to medium traffic web servers. |
2. Compute Optimised |
$0.0957/hour |
High CPU-to-memory ratio, suited for medium-traffic web servers, network appliances, batch processing, and application servers. |
3. Memory Optimised |
$0.2050/hour |
High memory-to-core ratio, designed for relational databases, medium to large caches, and in-memory analytics. |
4. Storage Optimised |
$0.8890/hour |
High disk throughput and IOPS, perfect for Big Data, SQL, and NoSQL databases. |
5. GPU |
$0.4170/hour |
Designed for heavy graphic rendering, video editing, and AI/ML workloads, available with single or multiple GPUs. |
6. High performance compute |
$1.7540/hour |
Ultra-fast CPU virtual machines designed for intensive workloads, featuring optional high-throughput RDMA (Remote Direct Memory Access) network interfaces for maximum performance. |
Check the latest pricing for Windows VMs and also Linux VMs (Linux VMs cost less as they often don’t have a the licensing cost).
Azure Kubernetes Service (AKS)
If you’re thinking about using containers, Azure Kubernetes Service (AKS) is the go-to option. While AKS itself is free, you pay for what it runs on – the compute, storage, and networking resources your Kubernetes cluster consumes. The more resources your cluster uses, the higher the cost.
For example, a D2 series VM costs around $0.15 per hour. But actual costs vary by VM type and configuration.
Azure Functions Pricing
Azure Functions follows a serverless pricing model, charging based on the number of executions and the compute time consumed each month.
- Executions: The first 1,000,000 executions are free of charge. After that, you’ll get charged $0,20 per million executions.
- Execution time: Free monthly grant of 400,000 GB-seconds (great for small workloads). Beyond this, usage is billed at $0.000016 per GB-second.
There are currently three types of hosting plans for an app running on Azure Functions, each with its own pricing model:
- Consumption Plan: Pay only for execution time. Includes a free grant per subscription. Best for event-driven apps with unpredictable usage.
- Premium Plan: Similar to the Consumption Plan but with better performance, VNet access, and fixed pricing based on the selected tier. Ideal for high-performance, scalable apps needing dedicated resources.
- Dedicated (App Service) Plan: Runs on a dedicated VM or isolated environment, allowing custom images and full VM control. Best for long-running processes or custom compute needs.
For a detailed cost breakdown, check Microsoft’s Functions pricing page.
Azure Storage Pricing
With Azure Storage, you get massive scalability for object storage, a reliable file system, secure messaging, and a NoSQL store, built for durability and availability.
Azure Storage pricing varies as each service has its own pricing model. The most known are Azure Blob Storage and Azure Files.
Azure Blob Storage
Azure Storage scales infinitely, with pricing reducing as volume grows. Pricing starts from $0.00099 per GB for the Archive tier and reaches up to $0.15 per GB for the Premium tier (only for first 50TB).
Azure Files
Azure Files is a cloud-based file sharing service that supports SMB and NFS protocols, making it easy to migrate and integrate on-premises applications.
Azure Files pricing starts at:
- $0.0228 per GiB/month for the Cool tier
- $0.0287 per GiB/month for the Hot tier
- $0.0600 per GiB/month for Transaction Optimized storage (depending on access frequency and performance needs).
Extra fees apply for snapshots, data transactions, and transfer volume, adding to your cloud bill.
You can also save on storage costs with Azure Reserved Capacity by committing to long-term storage plans of 1 or 3 years. What’s more, you must consider operational costs like per-10,000 write request charges and data egress fees.
Note that prices are subject to change, and the region selected for this example is East US with LRS redundancy. Checkout the official pricing page of Azure Blob Storage Pricing and Azure Files Pricing.
Azure Networking Pricing
Networking is a major part of your Azure costs, regardless which service you use, they’ll always be there.
Virtual Network Pricing
Azure Virtual Network (VNet) lets you create a private network in the cloud. It is free to a limit of 1,000 VNets per subscription. However, VNet Peering incurs charges for inbound and outbound traffic at both ends.
Same region Peering is more affordable, costing as much as $0.01 per GB.
Costs of VNET Peering within the same region:
Inbound data transfer |
$0.01 per GB |
Outbound data transfer |
$0.01 per GB |
- Global VNet peering is cheapest in the US and Europe ($0.035/GB)
- Higher in Australia and Asia ($0.09/GB)
- And most costly in South America and Africa ($0.16/GB)
|
Zone 1 |
Zone 2 |
Zone 3 |
US Gov1 |
Inbound data transfer |
$0.035 per GB |
$0.9 per GB |
$0.16 per GB |
$0.044 per GB |
Outbound data transfer |
$0.035 per GB |
$0.9 per GB |
$0.16 per GB |
$0.044 per GB |
Additionally, network appliances like VPN Gateway and Application Gateway running inside a VNet incur extra charges.
VPN Gateway Pricing
Azure VPN Gateway provides secure cross-premises connectivity between your Azure VNet and on-prem infrastructure while enabling encrypted communication over the internet.
While creating a Virtual Network (VNet) is free, VPN Gateway incurs charges based on its provisioning time and availability. Costs depend on the gateway SKU and the amount of data transferred.
Pricing starts from $0.04 per hour for a bandwidth of 100 Mbps, max 10 S2S Tunnels and max 128 P2S Tunnels. Compare VPN options and pricing in the chart below.
VPN Gateway Type |
Price |
Bandwidth |
S2S Tunnels |
P2S Tunnels |
Basic |
0.04/hour |
100 Mbps |
Max 10 1-10: Included |
Max 128 1-128: Included |
VpnGw1 |
$0.19/hour |
650 Mbps |
Max 30 1-10: Included 11-30: $0.015/hour per tunnel |
Max 250 1-128: Included 129-250: $0.01/hour per connection |
VpnGw2 |
$0.49/hour |
1 Gbps |
Max 30 1-10: Included 11-30: $0.015/hour per tunnel |
Max 500 1-128: Included 129-500: $0.01/hour per connection |
VpnGw3 |
$1.25/hour |
1.25 Gbps |
Max 30 1-10: Included 11-30: $0.015/hour per tunnel |
Max 1,000 1-128: Included 129-1,000: $0.01/hour per connection |
VpnGw4 |
$2.10/hour |
5 Gbps |
Max 100 1-10: Included 11-100: $0.015/hour per tunnel |
Max 5,000 1-128: Included 129-5,000: $0.01/hour per connection |
VpnGw5 |
$3.65/hour |
10 Gbps |
Max 100 1-10: Included 11-100: $0.015/hour per tunnel |
Max 10,000 1-128: Included 129-10,000: $0.01/hour per connection |
Azure Bandwidth Pricing
Bandwidth is another networking cost you’ll likely face in your Azure subscription. Bandwidth includes data transfer into and out of Azure data centres and data moving between them.
Data coming into (inbound data) Azure is always free, but sending data out (outbound data) isn’t.
The first 5 GB per month are free, after which charges apply. Organisations tend to overlook bandwidth costs in their monthly estimates, resulting in unexpected charges.
Closing thoughts
In the end, the price you pay in Azure depends on many factors, as we’ve discussed here. If you want to get a sense of how much you will pay in Microsoft Azure, use the Azure Pricing Calculator. With this free tool, you can calculate the costs (an estimate) of various Azure products and services to see how much it will cost when moving workloads to Azure.
If you're looking for ways to cut down costs in Azure, check out these Azure Cost Optimisation Tips.