Skip to content
New Atlanta
Topics

AWS vs Azure VM Pricing for Comparable Linux Instances

Compare on-demand Linux prices for AWS m7i.xlarge and Azure D4s v5 in two regional pairs, then test whether runtime, storage or commitments change the choice.

Published 7 min read
AWS Northern Virginia Linux compute
0.2016 USD/Hrs
Azure East US Linux compute
0.192 USD/1 Hour
AWS Ireland Linux compute
0.2247 USD/Hrs
Azure West Europe Linux compute
0.23 USD/1 Hour

Decision guide

AWS EC2 m7i.xlarge
Choose m7i.xlarge when the AWS region meets placement requirements and the measured cost per completed workload or the complete regional bill favors EC2.
Azure Standard_D4s_v5
Choose D4s v5 when the Azure deployment passes the same performance and location tests and the charge for the required operating schedule is lower.
Deciding factor
Use job runtime for batch work and service capacity at the latency target for sustained traffic. Preserve purchase terms, region and attached services throughout the comparison.

On-demand Linux compute by regional pair

USD per running compute hour. Each row is a pair of distinct provider regions, with the same nominal CPU count and memory. Verified
Decision factorAWS EC2 m7i.xlargeAzure Standard_D4s_v5
Northern Virginia / East US 0.2016 USD/Hrs 0.192 USD/1 Hour
Ireland / West Europe 0.2247 USD/Hrs 0.23 USD/1 Hour

Which matched VM has the lower listed price?

Compare the m7i.xlarge on AWS with Standard_D4s_v5 on Azure for a general-purpose Linux workload. Azure has the lower sample rate in East US versus Northern Virginia. AWS has the lower rate in Ireland versus West Europe.

In the US pair the EC2 meter is $0.2016 per hour and the Azure meter is $0.192. At 730 billable hours, those inputs produce $147.17 and $140.16 respectively after rounding. In the European pair the observed AWS rate is $0.2247 against $0.23 on Azure. The same hours produce $164.03 in Ireland and $167.90 in West Europe. An unqualified answer about the cheaper provider would reverse one of these results.

Begin with the actual regions your workload is allowed to use. Ireland and West Europe are different locations. An application that must stay in one country, remain near a particular data source or meet a maximum round-trip time can have a shorter list of eligible regions than the price table suggests. Apply those constraints first. Once a pair passes, write down the full provider region name next to every hourly input.

What does matching four vCPUs and 16 GiB establish?

These two sizes each provide four virtual CPUs and 16 GiB of memory. Matching that basic shape makes it possible to compare publicly listed compute meters without accidentally comparing a larger machine to a smaller one.

For an existing service, record memory in use during peak load, time spent waiting for storage, network throughput and the CPU consumed by one unit of useful work. Equal core counts need not produce equal transaction throughput. The instance families can have different processor characteristics, disk limits and network behavior. The guest image and application build also influence performance, even if the service is configured with the same memory limit in each environment.

For example, a database that reads its working set from disk can spend much of the test waiting for a volume. If the EC2 experiment uses a provisioned high-performance disk and the Azure experiment uses a modest default, the resulting latency difference says little about CPU value. Specify the volumes, caching assumptions and data set before running either test. A separate compute-only exercise can still be useful if it is labeled with the narrower question it answers.

How can workload duration reverse an hourly result?

Calculate dollars per completed job for batch work. For an always-on service, calculate the number of machines required to hold the target response time under the same request mix. Both measures connect billed hours with delivered work.

Consider an illustrative batch job taking 30 minutes on an already billable EC2 VM and 32 minutes on the corresponding Azure VM in the US pair. Ignoring startup time and other resources, the attributed compute is $0.1008 on EC2 and $0.1024 on Azure. The example demonstrates how a small runtime difference can consume the hourly discount. It makes no prediction about which instance will finish your own job sooner.

Run enough repetitions to see variation between workers and times of day. Include the initialization phase if new machines start for every batch. If the machines remain running between jobs, allocate idle intervals as well. For a web service, record the highest sustainable throughput that meets your chosen latency threshold. Divide the cost of the full serving fleet by successful requests during the same interval. A test that compares average latency while one candidate drops requests will misprice the work completed.

Which costs belong beside the instance rate?

List the boot and data volumes, snapshots, provisioned disk performance, addresses and network traffic that the deployment actually needs. Add operating system or commercial image charges when the selected image carries them.

The matched sample uses public Linux compute rates. A paid marketplace image or a Windows deployment changes the billing identity. Keep the listing, OS and licensing terms with the quote so procurement can reproduce the choice. On the storage side, size each volume for the same capacity and recovery requirement. A persistent backup policy can keep generating charges while compute scales down, so using one shared hourly multiplier for the entire system can conceal a significant residual bill.

Traffic may extend beyond the VM's local region. Identify the destinations for user responses, backups and dependencies. A compute location that saves a few dollars per month can introduce an extra network boundary on every request. Where a transfer price is still missing, leave a visibly unresolved line in the comparison and ask the network owner for a route. Entering zero in that row makes an incomplete estimate look definitive.

How do purchase terms change the case?

Price the same running schedule on both platforms first. Then compare a commitment, interruptible capacity or a contract discount as a separate alternative with its own eligibility, utilization and operational assumptions.

For a machine scheduled only during office hours, estimate the real billable interval rather than multiplying by 730. Confirm that the operating procedure actually releases billable compute. A stopped guest and a released capacity allocation are different operational states on some platforms. Reconcile the meter after a planned shutdown, and keep separately billed resources on the estimate for the time they remain allocated.

For a purchase covering a steadier fleet, write down which account, regions and machine families can consume the commitment. Ask what happens to the paid obligation if the workload shrinks or the team changes architecture before the term ends. Compare three totals over the same period: expected utilization, a conservative low-utilization case and the on-demand fallback. A reviewer can then see how much of the proposed saving relies on a forecast and how much follows from a verified list-price difference.

Frequently asked questions

Does this comparison identify an equivalent Azure region for Ireland?

It supplies a European price pair for a budget illustration. Check physical placement, latency and residency independently. Where a region is mandatory, exclude a provider location that cannot satisfy it even if its published compute rate is attractive.

How should a migration team use the result?

Use the four measured hourly inputs to build a first estimate, then substitute the benchmarked quantity of machines and hours. Record migration labor and any temporary period with both stacks running separately from the steady-state amount. The invoice saving after cutover and the time to recover migration cost answer different investment questions.

Methodology and sources

Rates checked December 3, 2026 are public USD consumption or on-demand Linux compute prices. Worked examples exclude taxes, private discounts and attached services. Amazon Web Services, public price list; scoped list-price facts. Microsoft Azure Retail Prices; scoped public retail rates.

About Tessa Novak
Cloud FinOps & Observability Analyst

Editorial pen name. Covers cloud billing, telemetry costs and the assumptions behind pricing comparisons.