TExcelTAD
Home › Azure & Google Cloud for AWS Users › Managed Relational Databases

Managed Relational Databases

Managed PostgreSQL and MySQL look much the same on every cloud: you pick an engine version and a size, the provider runs backups, patching and failover. The translation work is in the names, the HA switch, and the private networking, which differs more than you'd expect.

On AWS this is… Amazon RDS (Multi-AZ, read replicas, parameter groups) and Aurora, from RDS and Aurora.

Which service?

Need AWS Azure Google Cloud
Managed PostgreSQL RDS for PostgreSQL Azure Database for PostgreSQL flexible server Cloud SQL for PostgreSQL
Managed MySQL RDS for MySQL / MariaDB Azure Database for MySQL flexible server Cloud SQL for MySQL
SQL Server RDS for SQL Server Azure SQL Database, Azure SQL Managed Instance, SQL Server on VMs Cloud SQL for SQL Server
Cloud-native PostgreSQL-compatible, high performance Aurora PostgreSQL Azure HorizonDB (announced as a preview; check its current status) AlloyDB for PostgreSQL
Globally distributed relational Aurora DSQL, Aurora Global Database Cosmos DB for PostgreSQL (Citus) Spanner
Oracle RDS for Oracle Oracle Database@Azure Oracle Database@Google Cloud

The HA switch

AWS RDS Azure flexible server Cloud SQL
Standby in another zone --multi-az zone-redundant HA (--zonal-resiliency Enabled, standby in another zone) --availability-type=REGIONAL
Failover automatic, DNS endpoint moves automatic automatic, same IP
Read replicas yes, cross-region too yes, cross-region too yes, cross-region too
Backups / PITR automated, PITR automated, PITR (geo-redundant backup option) automated, PITR
Engine settings parameter groups server parameters (az postgres flexible-server parameter set) database flags (--database-flags)

Model: what survives?

A quick way to compare designs is to ask what each survives and how much data you could lose (RPO). The values below are typical shapes, not SLAs:

python · try it yourself
designs = {
    "single zone":                 {"zones": 1, "sync_standby": False, "x_region_replica": False},
    "HA (zone-redundant standby)": {"zones": 2, "sync_standby": True,  "x_region_replica": False},
    "HA + cross-region replica":   {"zones": 2, "sync_standby": True,  "x_region_replica": True},
}

def outcome(d, failure):
    if failure == "instance crash":
        return "failover to standby, RPO 0" if d["sync_standby"] else "restart in place, RPO 0"
    if failure == "zone outage":
        return "failover to standby, RPO 0" if d["zones"] > 1 else "DOWN: restore from backup, RPO minutes"
    if failure == "region outage":
        return ("promote replica, RPO seconds (async)" if d["x_region_replica"]
                else "DOWN: geo-restore if geo-backups enabled, RPO up to hours")

for name, d in designs.items():
    print(name)
    for f in ["instance crash", "zone outage", "region outage"]:
        print(f"   {f:<15} {outcome(d, f)}")
single zone
   instance crash  restart in place, RPO 0
   zone outage     DOWN: restore from backup, RPO minutes
   region outage   DOWN: geo-restore if geo-backups enabled, RPO up to hours
HA (zone-redundant standby)
   instance crash  failover to standby, RPO 0
   zone outage     failover to standby, RPO 0
   region outage   DOWN: geo-restore if geo-backups enabled, RPO up to hours
HA + cross-region replica
   instance crash  failover to standby, RPO 0
   zone outage     failover to standby, RPO 0
   region outage   promote replica, RPO seconds (async)

The same three designs exist on all three clouds; only the flag names change.

Private networking: three different models

This is where RDS habits mislead. An RDS instance gets a network interface in your VPC subnets. The other two clouds do it differently:

AWS RDS Azure PostgreSQL flexible server Cloud SQL
Private option A ENI in your DB subnet group VNet integration: deployed into a delegated subnet, needs a private DNS zone private services access: a peering between your VPC and Google's service producer network, using an IP range you allocate
Private option B — private endpoint (public-access server, private endpoint added) Private Service Connect endpoint
Choose when? at creation VNet integration vs public/private endpoint is chosen at creation and can't be switched later can add private IP later

Sample session, Azure: PostgreSQL 17 with VNet integration and zone-redundant HA.

bash
az network vnet subnet create -g rg-shop-prod-network --vnet-name vnet-shop-prod -n snet-pg \
    --address-prefixes 10.30.48.0/24 --delegations Microsoft.DBforPostgreSQL/flexibleServers
az network private-dns zone create -g rg-shop-prod-network -n shop-prod.private.postgres.database.azure.com

az postgres flexible-server create -g rg-shop-prod-data -n pg-shop-prod -l westeurope \
    --version 17 --tier GeneralPurpose --sku-name Standard_D2ds_v5 --storage-size 128 \
    --zonal-resiliency Enabled --zone 1 --standby-zone 2 \
    --vnet vnet-shop-prod --subnet snet-pg \
    --private-dns-zone shop-prod.private.postgres.database.azure.com \
    --admin-user shopadmin --admin-password "$PG_ADMIN_PASSWORD"

The Azure CLI has renamed HA flags across versions (older docs show --high-availability ZoneRedundant); check az postgres flexible-server create --help for your CLI version.

Sample session, Google Cloud: allocate a range for private services access, then a regional (HA) instance with private IP only.

bash
gcloud compute addresses create google-managed-services --global --purpose=VPC_PEERING \
    --prefix-length=20 --network=shop-vpc
gcloud services vpc-peerings connect --service=servicenetworking.googleapis.com \
    --ranges=google-managed-services --network=shop-vpc

gcloud beta sql instances create pg-shop-prod --database-version=POSTGRES_17 \
    --edition=ENTERPRISE --cpu=2 --memory=8GB --region=europe-west1 \
    --availability-type=REGIONAL --network=shop-vpc --no-assign-ip \
    --storage-type=SSD --storage-size=100GB --storage-auto-increase

Cloud SQL's default edition for PostgreSQL 16 and later is Enterprise Plus (with its own machine tiers); pass --edition=ENTERPRISE for the custom CPU/memory shapes, as here.

Connecting with identities

Both clouds can avoid database passwords for applications:

  • Azure: Microsoft Entra authentication for PostgreSQL flexible server; the app's managed identity gets a token and uses it as the password.
  • Google Cloud: IAM database authentication, usually through the Cloud SQL Auth Proxy or the language connectors, which also handle TLS. The service account needs roles/cloudsql.client (and roles/cloudsql.instanceUser for IAM login).

Test yourself

What is the Cloud SQL equivalent of RDS Multi-AZ?

  1. A read replica
  2. --availability-type=REGIONAL
  3. A regional bucket
  4. Private Service Connect

How does Cloud SQL usually get a private IP in your VPC?

  1. An ENI in your subnet
  2. Private services access: a peering with Google's service producer network using a range you allocate
  3. A NAT gateway
  4. A public IP with firewall rules

What must an Azure PostgreSQL flexible server subnet have for VNet integration?

  1. A NAT Gateway
  2. Delegation to Microsoft.DBforPostgreSQL/flexibleServers
  3. A public IP
  4. A route to the internet