AWS vs Azure - Цены на compute-инстансы

AWS, Azure

AWS vs Azure — Compute Instance Pricing

AWS EC2 and Azure Virtual Machines are the two most widely used compute services, and choosing between them on цена alone can save your team thousands of dollars per month. This сравнение puts equivalent general-purpose инстанс families side by side, using published list ценаs for the baseline US регионs (us-east-1 for AWS, East US for Azure).

Equivalent General-Purpose Instances

The table below matches AWS m5 and m6i инстансs with the Azure Dv4/Dv5 series by vCPU and memory. All ценаs are for Linux on-demand hourly rates.

vCPURAMAWS instanceAWS on-demandAzure instanceAzure on-demand
28 GiBm5.large$0.096D2s_v5$0.096
416 GiBm5.xlarge$0.192D4s_v5$0.192
832 GiBm5.2xlarge$0.384D8s_v5$0.384
1664 GiBm5.4xlarge$0.768D16s_v5$0.768

On-demand pricing for these general-purpose families is effectively identical between AWS and Azure at the list level. The real стоимость difference appears when you apply reservation скидкаs.

1-Year Reserved Instance Pricing

vCPURAMAWS 1-yr RI (No Upfront)Azure 1-yr RI
28 GiB$0.058 (-40%)$0.057 (-41%)
416 GiB$0.115 (-40%)$0.114 (-41%)
832 GiB$0.230 (-40%)$0.228 (-41%)
1664 GiB$0.460 (-40%)$0.456 (-41%)

Azure’s 1-year Reserved Instances come in fractionally cheaper for the equivalent size, but the difference is within 1 percent and rarely the deciding factor. The bigger lever is whether your рабочая нагрузка is steady-state enough to justify the commitment in the first place — see our reserved инстансs руководство for the strategy.

Spot / Preemptible Pricing

vCPURAMAWS SpotAzure Spot VM
28 GiB~$0.029 (-70%)~$0.025 (-74%)
416 GiB~$0.058 (-70%)~$0.050 (-74%)

Spot pricing fluctuates with supply, but Azure Spot VMs are consistently 10 to 15 percent cheaper than AWS Spot Instances for equivalent general-purpose sizes. If your рабочая нагрузка is interruptible — batch jobs, CI runners, stateless web tiers — Azure Spot can be the cheaper default. See our spot инстансs руководство for interruption-handling patterns.

Key Differences Beyond Price

  • Billing granularity — AWS bills per second with a 60-second minimum; Azure bills per minute rounded up. For short-lived рабочая нагрузкаs, the per-minute rounding can add 5 to 10 percent to the bill.
  • B-series burstable — Azure’s B-series is significantly cheaper than AWS t3 for the same vCPU/RAM at low utilization, because Azure does not charge for CPU credits above the baseline.
  • Azure Hybrid Benefit — organizations with existing Windows Server or SQL Server licenses can reuse them on Azure for up to 85 percent off, a скидка AWS cannot match.

Verdict

For Linux general-purpose on-demand and reserved рабочая нагрузкаs, AWS and Azure are within 1 percent of each other and the choice should be driven by team expertise and existing tooling. For Windows рабочая нагрузкаs with existing licenses, Azure Hybrid Benefit typically wins. For interruptible рабочая нагрузкаs, Azure Spot VMs are the cheaper default.

Other languages