8 vCPU, 32 GiB instances: AWS vs Azure
94 current instance types have 8 vCPUs and 32 GiB of memory: 49 on AWS EC2 and 45 on Azure. The cheapest 8 vCPU, 32 GiB option is t4g.2xlarge on AWS at $0.2688 per hour on demand (US East (N. Virginia)). The cheapest on Azure is Standard_B8ps_v2 at $0.269, about the same price.
Every 8 vCPU, 32 GiB option, cheapest first
| Cloud | Type | vCPUs | Memory (GiB) | On-demand /hr | 1-yr reserved /hr | Spot /hr |
|---|---|---|---|---|---|---|
| AWS | t4g.2xlarge | 8 | 32 | $0.2688 | $0.1686 | $0.0654 |
| Azure | Standard_B8ps_v2 | 8 | 32 | $0.269 | $0.1586 | $0.2421 |
| Azure | Standard_D8ps_v6 | 8 | 32 | $0.281 | $0.1656 | $0.1227 |
| AWS | t3a.2xlarge | 8 | 32 | $0.3008 | $0.1886 | $0.063 |
| Azure | Standard_B8as_v2 | 8 | 32 | $0.301 | $0.1775 | $0.2709 |
| AWS | m6g.2xlarge | 8 | 32 | $0.308 | $0.1932 | $0.1102 |
| Azure | Standard_D8ps_v5 | 8 | 32 | $0.308 | $0.1817 | $0.0651 |
| AWS | m7g.2xlarge | 8 | 32 | $0.3264 | $0.2159 | $0.139 |
| AWS | t3.2xlarge | 8 | 32 | $0.3328 | $0.2086 | $0.0661 |
| Azure | Standard_B8ms | 8 | 32 | $0.333 | – | – |
| Azure | Standard_B8s_v2 | 8 | 32 | $0.333 | $0.1963 | $0.2997 |
| AWS | m5a.2xlarge | 8 | 32 | $0.344 | $0.217 | $0.0907 |
| Azure | Standard_D8as_v5 | 8 | 32 | $0.344 | $0.2122 | $0.0726 |
| Azure | Standard_DC8as_cc_v5 | 8 | 32 | $0.344 | – | $0.0726 |
| Azure | Standard_DC8as_v5 | 8 | 32 | $0.344 | $0.2752 | $0.0726 |
| AWS | m6a.2xlarge | 8 | 32 | $0.3456 | $0.2286 | $0.1426 |
| AWS | m8g.2xlarge | 8 | 32 | $0.359 | $0.2375 | $0.0752 |
| AWS | m6gd.2xlarge | 8 | 32 | $0.3616 | $0.2278 | $0.0768 |
| Azure | Standard_D8pds_v5 | 8 | 32 | $0.362 | $0.2134 | $0.0765 |
| Azure | Standard_D8as_v6 | 8 | 32 | $0.363 | $0.2143 | $0.0766 |
| Azure | Standard_D8as_v7 | 8 | 32 | $0.363 | $0.2143 | $0.0704 |
| Azure | Standard_D8pds_v6 | 8 | 32 | $0.367 | $0.2167 | $0.1602 |
| AWS | t2.2xlarge | 8 | 32 | $0.3712 | $0.23 | $0.0734 |
| AWS | m7i-flex.2xlarge | 8 | 32 | $0.383 | $0.2534 | $0.1352 |
| AWS | m5.2xlarge | 8 | 32 | $0.384 | $0.242 | $0.129 |
| AWS | m6i.2xlarge | 8 | 32 | $0.384 | $0.254 | $0.1247 |
| Azure | Standard_D8_v3 | 8 | 32 | $0.384 | – | $0.0768 |
| Azure | Standard_D8_v4 | 8 | 32 | $0.384 | $0.2266 | $0.081 |
| Azure | Standard_D8_v5 | 8 | 32 | $0.384 | $0.2369 | $0.0811 |
| Azure | Standard_D8a_v4 | 8 | 32 | $0.384 | $0.2258 | $0.081 |
| Azure | Standard_D8as_v4 | 8 | 32 | $0.384 | $0.2258 | $0.081 |
| Azure | Standard_D8s_v3 | 8 | 32 | $0.384 | – | $0.0768 |
| Azure | Standard_D8s_v4 | 8 | 32 | $0.384 | $0.2258 | $0.081 |
| Azure | Standard_D8s_v5 | 8 | 32 | $0.384 | $0.2369 | $0.0811 |
| AWS | m9g.2xlarge | 8 | 32 | $0.3914 | – | $0.1236 |
| AWS | m4.2xlarge | 8 | 32 | $0.4 | $0.2478 | $0.1561 |
| Azure | Standard_DC8as_v6 | 8 | 32 | $0.4 | $0.3196 | $0.0844 |
| AWS | m8i-flex.2xlarge | 8 | 32 | $0.4022 | – | $0.1348 |
| Azure | Standard_D8s_v6 | 8 | 32 | $0.403 | $0.25 | $0.085 |
| AWS | m7i.2xlarge | 8 | 32 | $0.4032 | $0.2667 | $0.1468 |
| AWS | m5ad.2xlarge | 8 | 32 | $0.412 | $0.26 | $0.2359 |
| Azure | Standard_D8ads_v5 | 8 | 32 | $0.412 | $0.243 | $0.087 |
| Azure | Standard_DC8ads_cc_v5 | 8 | 32 | $0.412 | – | $0.087 |
| Azure | Standard_DC8ads_v5 | 8 | 32 | $0.412 | $0.3296 | $0.087 |
| AWS | m8i.2xlarge | 8 | 32 | $0.4234 | – | $0.1683 |
| AWS | m7gd.2xlarge | 8 | 32 | $0.4271 | $0.2691 | $0.0813 |
| Azure | Standard_DC8es_v6 | 8 | 32 | $0.444 | $0.3548 | $0.0821 |
| AWS | m5d.2xlarge | 8 | 32 | $0.452 | $0.285 | $0.2296 |
| Azure | Standard_D8d_v4 | 8 | 32 | $0.452 | $0.2658 | $0.0957 |
| Azure | Standard_D8d_v5 | 8 | 32 | $0.452 | $0.2667 | $0.097 |
| Azure | Standard_D8ds_v4 | 8 | 32 | $0.452 | $0.2658 | $0.0957 |
| Azure | Standard_D8ds_v5 | 8 | 32 | $0.452 | $0.2667 | $0.097 |
| Azure | Standard_D8ads_v6 | 8 | 32 | $0.456 | $0.2691 | $0.0961 |
| Azure | Standard_D8ads_v7 | 8 | 32 | $0.456 | $0.2691 | $0.0885 |
| AWS | m8gd.2xlarge | 8 | 32 | $0.4613 | – | $0.0949 |
| AWS | m7a.2xlarge | 8 | 32 | $0.4637 | $0.3067 | $0.1846 |
| AWS | h1.2xlarge | 8 | 32 | $0.468 | $0.318 | $0.1622 |
| AWS | m6id.2xlarge | 8 | 32 | $0.4746 | $0.299 | $0.1621 |
| AWS | g6f.2xlarge | 8 | 32 | $0.475 | – | $0.198 |
| AWS | m5n.2xlarge | 8 | 32 | $0.476 | $0.3 | $0.1915 |
| AWS | m8a.2xlarge | 8 | 32 | $0.4869 | – | $0.1402 |
| Azure | Standard_D8ds_v6 | 8 | 32 | $0.498 | $0.3089 | $0.1049 |
| Azure | Standard_DC8ads_v6 | 8 | 32 | $0.502 | $0.4013 | $0.1059 |
| AWS | m9gd.2xlarge | 8 | 32 | $0.5028 | – | $0.1764 |
| AWS | m8id.2xlarge | 8 | 32 | $0.5221 | – | $0.1802 |
| Azure | Standard_D8s_v7 | 8 | 32 | $0.529 | – | $0.0978 |
| AWS | g4ad.2xlarge | 8 | 32 | $0.5412 | – | $0.1942 |
| AWS | m5dn.2xlarge | 8 | 32 | $0.544 | $0.343 | $0.2889 |
| Azure | Standard_F8as_v6 | 8 | 32 | $0.546 | $0.3388 | $0.1151 |
| Azure | Standard_F8as_v7 | 8 | 32 | $0.546 | $0.3388 | $0.1059 |
| Azure | Standard_DC8eds_v6 | 8 | 32 | $0.548 | $0.4385 | $0.1013 |
| AWS | m6in.2xlarge | 8 | 32 | $0.5569 | $0.3509 | $0.1943 |
| Azure | Standard_D8ns_v6 | 8 | 32 | $0.557 | $0.3275 | $0.1175 |
| AWS | m8gb.2xlarge | 8 | 32 | $0.582 | – | $0.1987 |
| AWS | m8gn.2xlarge | 8 | 32 | $0.582 | – | $0.2339 |
| Azure | Standard_D8nds_v6 | 8 | 32 | $0.636 | $0.3756 | $0.1339 |
| AWS | m6idn.2xlarge | 8 | 32 | $0.6365 | $0.401 | $0.2319 |
| Azure | Standard_D8ds_v7 | 8 | 32 | $0.653 | – | $0.1207 |
| AWS | m5zn.2xlarge | 8 | 32 | $0.6607 | $0.4162 | $0.197 |
| Azure | Standard_NV8ads_V710_v5 | 8 | 32 | $0.667 | $0.5167 | $0.1233 |
| AWS | m8ib.2xlarge | 8 | 32 | $0.6683 | – | $0.2629 |
| AWS | m8in.2xlarge | 8 | 32 | $0.6683 | – | $0.2545 |
| Azure | Standard_F8ads_v7 | 8 | 32 | $0.686 | $0.4253 | $0.1331 |
| AWS | im4gn.2xlarge | 8 | 32 | $0.7276 | $0.4666 | $0.1814 |
| AWS | g4dn.2xlarge | 8 | 32 | $0.752 | $0.474 | $0.2762 |
| AWS | m8idb.2xlarge | 8 | 32 | $0.7638 | – | $0.2738 |
| AWS | m8idn.2xlarge | 8 | 32 | $0.7638 | – | $0.3201 |
| Azure | Standard_DC8_v2 | 8 | 32 | $0.768 | – | $0.2072 |
| AWS | m8ine.2xlarge | 8 | 32 | $0.8354 | – | $0.3525 |
| AWS | g6.2xlarge | 8 | 32 | $0.9776 | $0.6364 | $0.7146 |
| AWS | d3en.2xlarge | 8 | 32 | $1.051 | $0.662 | $0.1941 |
| AWS | g5.2xlarge | 8 | 32 | $1.212 | $0.7636 | $0.8303 |
| AWS | trn1.2xlarge | 8 | 32 | $1.344 | $0.8268 | $0.1666 |
| AWS | g7.2xlarge | 8 | 32 | $2.52 | – | $0.4831 |
Other sizes
On-demand Linux prices in USD per hour, in each cloud's home region: US East (N. Virginia) for AWS, East US for Azure. Previous-generation types are left out.