TExcelTAD
Home › Azure & Google Cloud for AWS Users › VNets and Global VPCs

VNets and Global VPCs

Every cloud gives you a private network with your own IP ranges, divided into subnets. The surprise is the scope: an AWS VPC is regional with zonal subnets, an Azure VNet is regional with zone-spanning subnets, and a Google Cloud VPC network is global with regional subnets.

On AWS this is… a VPC with a /16 CIDR and one subnet per tier per AZ, from Amazon VPC and Subnets.

Scope at a glance

AWS VPC Azure VNet Google Cloud VPC network
Network spans one region one region all regions
Subnet spans one AZ the whole region (all zones) one region (all its zones)
Address space primary CIDR + secondary CIDRs one or more address prefixes, editable none for the network itself; each subnet has a primary range (+ secondary ranges)
Reserved IPs per subnet 5 5 (network, .1 gateway, .2/.3 Azure DNS, broadcast) 4 in the primary range (network, .1 gateway, second-to-last, broadcast)
Smallest subnet /28 /29 /29
Default network default VPC per region none (you create VNets) a default auto mode network with a subnet in every region; delete it, use custom mode
Multi-region app one VPC per region + peering/TGW one VNet per region + peering/Virtual WAN one network, subnets in each region, routes between them automatically

Two practical consequences:

  1. Azure doesn't need a subnet per zone. A three-zone design on Azure has one snet-app subnet; VMs choose their zone, not their subnet. Your AWS "9 subnets for 3 tiers × 3 AZs" becomes 3 subnets.
  2. Google Cloud doesn't need peering between regions. A VM in europe-west1 and one in us-central1 in the same VPC network talk over private IPs with no extra setup (cross-region traffic is still billed). Your AWS "one VPC per region plus Transit Gateway" can become one global network.

Model: the same plan on three clouds

Take the AWS plan from the VPC lesson (3 tiers × 3 AZs of /20) and lay it out the way each cloud wants it. The usable count subtracts each cloud's reserved addresses:

python · try it yourself
import ipaddress

RESERVED = {"aws": 5, "azure": 5, "gcp": 4}
tiers = ["public", "app", "data"]

def plan(cloud, cidr, per_zone, zones, regions=("one region",)):
    blocks = ipaddress.ip_network(cidr).subnets(new_prefix=20)
    rows = []
    for region in regions:
        for tier in tiers:
            for zone in (zones if per_zone else ["all zones"]):
                net = next(blocks)
                rows.append((region, tier, zone, net, net.num_addresses - RESERVED[cloud]))
    return rows

layouts = {
    "aws":   plan("aws", "10.20.0.0/16", True, ["a", "b", "c"]),
    "azure": plan("azure", "10.30.0.0/16", False, []),
    "gcp":   plan("gcp", "10.40.0.0/16", False, [], regions=("europe-west1", "us-central1")),
}
for cloud, rows in layouts.items():
    print(f"{cloud}: {len(rows)} subnets")
    for region, tier, zone, net, usable in rows:
        print(f"   {region:<13}{tier:<7}{zone:<10}{str(net):<15}{usable:>6} usable")
aws: 9 subnets
   one region   public a         10.20.0.0/20     4091 usable
   one region   public b         10.20.16.0/20    4091 usable
   one region   public c         10.20.32.0/20    4091 usable
   one region   app    a         10.20.48.0/20    4091 usable
   one region   app    b         10.20.64.0/20    4091 usable
   one region   app    c         10.20.80.0/20    4091 usable
   one region   data   a         10.20.96.0/20    4091 usable
   one region   data   b         10.20.112.0/20   4091 usable
   one region   data   c         10.20.128.0/20   4091 usable
azure: 3 subnets
   one region   public all zones 10.30.0.0/20     4091 usable
   one region   app    all zones 10.30.16.0/20    4091 usable
   one region   data   all zones 10.30.32.0/20    4091 usable
gcp: 6 subnets
   europe-west1 public all zones 10.40.0.0/20     4092 usable
   europe-west1 app    all zones 10.40.16.0/20    4092 usable
   europe-west1 data   all zones 10.40.32.0/20    4092 usable
   us-central1  public all zones 10.40.48.0/20    4092 usable
   us-central1  app    all zones 10.40.64.0/20    4092 usable
   us-central1  data   all zones 10.40.80.0/20    4092 usable

Two regions on Google Cloud still fit in one network and one /16. Note the "public" tier is mostly an AWS idea: on Azure and Google Cloud, whether a VM is reachable from the internet depends on whether it has a public IP (or sits behind a load balancer), not on which subnet's route table points at an internet gateway (next lesson).

Special subnets

Some Azure services need dedicated subnets with fixed names or delegation to the service:

Azure subnet For Notes
GatewaySubnet VPN / ExpressRoute gateway exact name required
AzureFirewallSubnet Azure Firewall exact name, at least /26
AzureBastionSubnet Azure Bastion exact name, at least /26
delegated subnet PostgreSQL flexible server, Container Apps environments, App Service VNet integration … delegated to one service, often nothing else may share it

Google Cloud uses secondary ranges on a subnet for GKE Pod and Service IPs (VPC-native clusters) and proxy-only subnets for its regional Envoy-based load balancers. AKS with Azure CNI Overlay gives Pods addresses from a private overlay range that doesn't consume VNet space. Leave room in your plan for these.

Creating the networks

Sample sessions:

bash
# Azure: VNet with one subnet, then more subnets; make them private (no default outbound)
az network vnet create -g rg-shop-prod-network -n vnet-shop-prod -l westeurope \
    --address-prefixes 10.30.0.0/16 --subnet-name snet-public --subnet-prefixes 10.30.0.0/20
az network vnet subnet create -g rg-shop-prod-network --vnet-name vnet-shop-prod \
    -n snet-app --address-prefixes 10.30.16.0/20 --default-outbound false

# Google Cloud: a custom-mode global network, then regional subnets
gcloud compute networks create shop-vpc --subnet-mode=custom
gcloud compute networks subnets create app-ew1 --network=shop-vpc --region=europe-west1 \
    --range=10.40.16.0/20 --enable-private-ip-google-access
gcloud compute networks subnets create app-uc1 --network=shop-vpc --region=us-central1 \
    --range=10.40.64.0/20 --enable-private-ip-google-access

--enable-private-ip-google-access lets VMs without public IPs reach Google APIs (Cloud Storage, Artifact Registry): the counterpart of S3/ECR VPC endpoints for the common case.

Shared VPC

Google Cloud's Shared VPC lets a central host project own the network while service projects create VMs, GKE clusters and Cloud Run connectors in its subnets. Network admins keep firewall and routing; app teams keep their own projects and IAM. AWS's nearest equivalent is sharing subnets with AWS RAM; on Azure, teams usually get their own spoke VNets peered to a hub (Connectivity).

Test yourself

An AWS design uses 3 tiers × 3 AZs = 9 subnets. How many subnets does the same design typically need in one Azure region?

  1. 9
  2. 3, because Azure subnets span all zones of the region
  3. 1
  4. 27

What is the scope of a Google Cloud VPC network?

  1. Zonal
  2. Regional
  3. Global, with regional subnets
  4. Per project per region

How many addresses does Google Cloud reserve in a subnet's primary range?

  1. 5
  2. 4
  3. 2
  4. 0