4 vCPU, 8 GiB instances: AWS vs Azure
58 current instance types have 4 vCPUs and 8 GiB of memory: 32 on AWS EC2 and 26 on Azure. The cheapest 4 vCPU, 8 GiB option is Standard_B4pls_v2 on Azure at $0.119 per hour on demand (East US). The cheapest on AWS is c6g.xlarge at $0.136, so Azure is 13% cheaper at this size.
Every 4 vCPU, 8 GiB option, cheapest first
| Cloud | Type | vCPUs | Memory (GiB) | On-demand /hr | 1-yr reserved /hr | Spot /hr |
|---|---|---|---|---|---|---|
| Azure | Standard_B4pls_v2 | 4 | 8 | $0.119 | $0.0702 | $0.1071 |
| Azure | Standard_D4pls_v6 | 4 | 8 | $0.124 | $0.0732 | $0.0541 |
| Azure | Standard_B4als_v2 | 4 | 8 | $0.133 | $0.0785 | $0.1197 |
| AWS | c6g.xlarge | 4 | 8 | $0.136 | $0.0857 | $0.0781 |
| Azure | Standard_D4pls_v5 | 4 | 8 | $0.136 | $0.0803 | $0.0288 |
| AWS | c7g.xlarge | 4 | 8 | $0.145 | $0.0955 | $0.0782 |
| Azure | Standard_B4ls_v2 | 4 | 8 | $0.147 | $0.087 | $0.1323 |
| AWS | c6a.xlarge | 4 | 8 | $0.153 | $0.1012 | $0.0672 |
| AWS | c6gd.xlarge | 4 | 8 | $0.1536 | $0.0968 | $0.0519 |
| AWS | c5a.xlarge | 4 | 8 | $0.154 | $0.097 | $0.0636 |
| Azure | Standard_D4plds_v5 | 4 | 8 | $0.154 | $0.0906 | $0.0326 |
| Azure | Standard_D4plds_v6 | 4 | 8 | $0.156 | $0.092 | $0.0681 |
| AWS | c8g.xlarge | 4 | 8 | $0.1595 | $0.1051 | $0.0776 |
| Azure | Standard_D4als_v6 | 4 | 8 | $0.161 | $0.0949 | $0.034 |
| Azure | Standard_D4als_v7 | 4 | 8 | $0.161 | $0.0949 | $0.0312 |
| Azure | Standard_F4s_v2 | 4 | 8 | $0.169 | – | $0.0379 |
| AWS | c7i-flex.xlarge | 4 | 8 | $0.1696 | $0.1122 | $0.062 |
| AWS | c5.xlarge | 4 | 8 | $0.17 | $0.107 | $0.0531 |
| AWS | c6i.xlarge | 4 | 8 | $0.17 | $0.1125 | $0.0589 |
| Azure | Standard_D4ls_v5 | 4 | 8 | $0.17 | $0.1049 | $0.0359 |
| AWS | c5ad.xlarge | 4 | 8 | $0.172 | $0.108 | $0.0577 |
| AWS | c6gn.xlarge | 4 | 8 | $0.1728 | $0.1091 | $0.0595 |
| AWS | c9g.xlarge | 4 | 8 | $0.1739 | – | $0.0775 |
| AWS | c8i-flex.xlarge | 4 | 8 | $0.178 | – | $0.0622 |
| AWS | c7i.xlarge | 4 | 8 | $0.1785 | $0.1181 | $0.0453 |
| Azure | Standard_D4ls_v6 | 4 | 8 | $0.179 | $0.1107 | $0.0378 |
| AWS | c7gd.xlarge | 4 | 8 | $0.1814 | $0.1143 | $0.0653 |
| AWS | c8i.xlarge | 4 | 8 | $0.1874 | – | $0.0679 |
| Azure | Standard_D4alds_v6 | 4 | 8 | $0.19 | $0.1123 | $0.0401 |
| Azure | Standard_D4alds_v7 | 4 | 8 | $0.19 | $0.1123 | $0.0369 |
| Azure | Standard_A4_v2 | 4 | 8 | $0.191 | – | $0.0382 |
| AWS | c5d.xlarge | 4 | 8 | $0.192 | $0.121 | $0.0652 |
| Azure | Standard_D4lds_v5 | 4 | 8 | $0.192 | $0.1132 | $0.0412 |
| AWS | c8gd.xlarge | 4 | 8 | $0.196 | – | $0.0577 |
| Azure | Standard_F4 | 4 | 8 | $0.199 | – | $0.0463 |
| Azure | Standard_F4s | 4 | 8 | $0.199 | – | $0.0463 |
| AWS | c6id.xlarge | 4 | 8 | $0.2016 | $0.1271 | $0.0568 |
| AWS | c7a.xlarge | 4 | 8 | $0.2053 | $0.1358 | $0.0784 |
| AWS | c9gd.xlarge | 4 | 8 | $0.2136 | – | $0.0692 |
| AWS | c8a.xlarge | 4 | 8 | $0.2155 | – | $0.0732 |
| Azure | Standard_D4lds_v6 | 4 | 8 | $0.221 | $0.1368 | $0.0465 |
| AWS | c8id.xlarge | 4 | 8 | $0.2218 | – | $0.0567 |
| AWS | c6in.xlarge | 4 | 8 | $0.2268 | $0.1429 | $0.0492 |
| Azure | Standard_D4nls_v6 | 4 | 8 | $0.227 | $0.1333 | $0.0479 |
| AWS | inf1.xlarge | 4 | 8 | $0.228 | $0.144 | $0.039 |
| Azure | Standard_D4ls_v7 | 4 | 8 | $0.234 | – | $0.0432 |
| AWS | c8gb.xlarge | 4 | 8 | $0.237 | – | $0.1093 |
| AWS | c8gn.xlarge | 4 | 8 | $0.237 | – | $0.0803 |
| Azure | Standard_F4als_v6 | 4 | 8 | $0.242 | $0.15 | $0.051 |
| Azure | Standard_F4als_v7 | 4 | 8 | $0.242 | $0.15 | $0.0469 |
| AWS | c7gn.xlarge | 4 | 8 | $0.2496 | $0.1572 | $0.0913 |
| AWS | c8ib.xlarge | 4 | 8 | $0.2722 | – | $0.0941 |
| AWS | c8in.xlarge | 4 | 8 | $0.2722 | – | $0.084 |
| Azure | Standard_D4lds_v7 | 4 | 8 | $0.277 | – | $0.0512 |
| Azure | Standard_D4nlds_v6 | 4 | 8 | $0.28 | $0.1653 | $0.059 |
| Azure | Standard_F4alds_v7 | 4 | 8 | $0.286 | $0.1774 | $0.0555 |
| AWS | c8ine.xlarge | 4 | 8 | $0.3402 | – | $0.1139 |
| AWS | g5g.xlarge | 4 | 8 | $0.42 | $0.2646 | $0.1136 |
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.