4 vCPU, 32 GiB instances: AWS vs Azure

95 current instance types have 4 vCPUs and 32 GiB of memory: 43 on AWS EC2 and 52 on Azure. The cheapest 4 vCPU, 32 GiB option is Standard_E4ps_v6 on Azure at $0.184 per hour on demand (East US). The cheapest on AWS is r6g.xlarge at $0.2016, so Azure is 9% cheaper at this size.

Every 4 vCPU, 32 GiB option, cheapest first

CloudTypevCPUsMemory (GiB)On-demand /hr1-yr reserved /hrSpot /hr
AzureStandard_E4ps_v6432$0.184$0.1088$0.0856
AWSr6g.xlarge432$0.2016$0.127$0.0596
AzureStandard_E4ps_v5432$0.202$0.1189$0.0427
AWSr7g.xlarge432$0.2142$0.1417$0.0873
AWSr5a.xlarge432$0.226$0.142$0.076
AzureStandard_E4as_v5432$0.226$0.1333$0.0476
AzureStandard_EC4as_cc_v5432$0.226–$0.0477
AzureStandard_EC4as_v5432$0.226$0.1808$0.0477
AWSr6a.xlarge432$0.2268$0.15$0.0944
AzureStandard_E4pds_v5432$0.23$0.136$0.0486
AWSr6gd.xlarge432$0.2304$0.1452$0.1073
AzureStandard_E4pds_v6432$0.234$0.138$0.1089
AWSr8g.xlarge432$0.2356$0.1559$0.0846
AzureStandard_A4m_v2432$0.237–$0.0474
AzureStandard_E4as_v6432$0.238$0.1406$0.0502
AzureStandard_E4as_v7432$0.238$0.1406$0.0444
AWSr5.xlarge432$0.252$0.159$0.0569
AWSr6i.xlarge432$0.252$0.1667$0.1655
AzureStandard_E4_v3432$0.252–$0.0504
AzureStandard_E4_v4432$0.252$0.1482$0.053
AzureStandard_E4_v5432$0.252$0.1555$0.0531
AzureStandard_E4a_v4432$0.252$0.1482$0.053
AzureStandard_E4as_v4432$0.252$0.1482$0.053
AzureStandard_E4s_v3432$0.252–$0.0504
AzureStandard_E4s_v4432$0.252$0.1482$0.053
AzureStandard_E4s_v5432$0.252$0.1486$0.0531
AWSr9g.xlarge432$0.2568–$0.1161
AWSr5ad.xlarge432$0.262$0.165$0.0943
AzureStandard_E4ads_v5432$0.262$0.1546$0.0552
AzureStandard_EC4ads_cc_v5432$0.262–$0.0553
AzureStandard_EC4ads_v5432$0.262$0.2096$0.0553
AzureStandard_EC4as_v6432$0.262$0.2098$0.0553
AWSr8i-flex.xlarge432$0.2639–$0.0867
AWSr7i.xlarge432$0.2646$0.175$0.0912
AzureStandard_E4s_v6432$0.265$0.164$0.055
AWSr7gd.xlarge432$0.2722$0.171$0.087
AWSr8i.xlarge432$0.2778–$0.0915
AWSr5d.xlarge432$0.288$0.181$0.1456
AzureStandard_E4d_v4432$0.288$0.1693$0.0605
AzureStandard_E4d_v5432$0.288$0.1699$0.0609
AzureStandard_E4ds_v4432$0.288$0.1693$0.0605
AzureStandard_E4ds_v5432$0.288$0.1699$0.0609
AzureStandard_E4ads_v6432$0.29$0.1713$0.0612
AzureStandard_E4ads_v7432$0.29$0.1713$0.0541
AzureStandard_EC4es_v6432$0.291$0.2329$0.0538
AWSr8gd.xlarge432$0.2939–$0.1784
AWSr5b.xlarge432$0.298$0.1877$0.0957
AWSr5n.xlarge432$0.298$0.188$0.0996
AzureStandard_E4bs_v5432$0.298$0.1758$0.0628
AWSr6id.xlarge432$0.3024$0.1901$0.1189
AWSr7a.xlarge432$0.3043$0.2013$0.0837
AWSi4g.xlarge432$0.3089$0.2005$0.0709
AzureStandard_EC4ads_v6432$0.319$0.2556$0.0673
AWSr8a.xlarge432$0.3195–$0.0756
AWSr9gd.xlarge432$0.3204–$0.1175
AzureStandard_E4ds_v6432$0.327$0.2027$0.0683
AWSr8id.xlarge432$0.3326–$0.084
AWSr5dn.xlarge432$0.334$0.21$0.1768
AzureStandard_E4bds_v5432$0.334$0.197$0.0716
AWSi4i.xlarge432$0.343$0.223$0.0765
AzureStandard_L4s432$0.343–$0.0634
AWSi8g.xlarge432$0.3432–$0.0876
AzureStandard_L4as_v4432$0.344$0.2098$0.0721
AzureStandard_E4s_v7432$0.347–$0.0654
AzureStandard_L4s_v4432$0.348$0.2123$0.073
AWSr6in.xlarge432$0.3487$0.2197$0.1188
AzureStandard_E4bs_v6432$0.349$0.2058$0.0649
AzureStandard_E4ns_v6432$0.349$0.205$0.0724
AzureStandard_F4ams_v6432$0.358$0.2219$0.0755
AzureStandard_F4ams_v7432$0.358$0.2219$0.0695
AzureStandard_EC4eds_v6432$0.36$0.2878$0.0665
AWSr8gb.xlarge432$0.3644–$0.1317
AWSr8gn.xlarge432$0.3644–$0.132
AWSr7iz.xlarge432$0.372$0.2344$0.1209
AWSz1d.xlarge432$0.372$0.234$0.086
AWSi7i.xlarge432$0.3775–$0.0918
AzureStandard_DC4s_v3432$0.384–$0.0846
AWSr6idn.xlarge432$0.3908$0.2462$0.2049
AzureStandard_E4bds_v6432$0.391$0.2306$0.0726
AzureStandard_E4nds_v6432$0.391$0.2298$0.0816
AzureStandard_L4as_v5432$0.407$0.2483$0.0814
AzureStandard_E4ds_v7432$0.416–$0.0784
AWSr8ib.xlarge432$0.4184–$0.1227
AWSr8in.xlarge432$0.4184–$0.1303
AzureStandard_F4amds_v7432$0.436$0.2703$0.0846
AWSi3en.xlarge432$0.452$0.308$0.0944
AzureStandard_DC4ds_v3432$0.452–$0.0996
AzureStandard_L4aos_v4432$0.452$0.2893$0.0948
AWSr8idb.xlarge432$0.4689–$0.1325
AWSr8idn.xlarge432$0.4689–$0.1228
AWSi8ge.xlarge432$0.4746–$0.1163
AWSd3.xlarge432$0.499$0.315$0.0992
AWSi7ie.xlarge432$0.5198–$0.1058
AzureStandard_L4aos_v5432$0.61$0.3597$0.122
AWSg6e.xlarge432$1.861$1.172$1.552

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.