|
|
@@ -0,0 +1,66 @@
|
|
|
+# Phase 0 evidence: Azure and GCP (retrieved 2026-10-16)
|
|
|
+
|
|
|
+Raw evidence behind [the phase 0 findings](2026-10-16-multicloud-phase0-findings.md). Collected by a research agent from official vendor documentation and price lists; rows marked UNVERIFIED have no official source yet.
|
|
|
+
|
|
|
+Method notes. Azure marketing price pages render "$-" without JavaScript, so Azure prices come from Microsoft's public, unauthenticated Retail Prices API (https://prices.azure.com/api/retail/prices, queried with no credentials). GCP network prices were read from raw HTML of cloud.google.com/vpc/network-pricing and /nat/pricing. GCP VM (e2) prices could not be extracted from Google's JS-rendered page: marked UNVERIFIED. All prices USD list/retail, 730 h/month. Retrieved column is 2026-10-16 for every row.
|
|
|
+
|
|
|
+## AZURE
|
|
|
+
|
|
|
+| # | Fact | Value | Source URL | Retrieved |
|
|
|
+|---|---|---|---|---|
|
|
|
+| 1 | Hierarchy names | Tenant (Entra directory) > management groups > subscriptions > resource groups > resources. Docs say four ARM scope levels: management group, subscription, resource group, resource. Every directory has one root management group, default display name "Tenant root group", ID = tenant ID; new subscriptions default into it. No one has default access to the root group; only Global Admins can elevate. | https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/overview ; https://learn.microsoft.com/en-us/azure/governance/management-groups/overview | 2026-10-16 |
|
|
|
+| 1b | What a new individual learner starts with | Free account: $200 credit usable within 30 days, plus 12 months of 750 h each of B1s, B2pts v2 (Arm), B2ats v2 (AMD) burstable VMs, plus always-free services; credit/debit card (non-prepaid) required. Creator of a tenant is Global Administrator. That a new signup creates exactly one tenant plus one "Free Trial" subscription is NOT stated on the pages I read: UNVERIFIED. | https://azure.microsoft.com/en-us/free/ ; https://learn.microsoft.com/en-us/entra/fundamentals/security-defaults | 2026-10-16 |
|
|
|
+| 2 | Network model | VNet is a regional private network; subnets inside it; VNets and subnets span all availability zones of the region. No charge for the VNet itself. | https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-overview | 2026-10-16 |
|
|
|
+| 3a | NSG attachment | Associated to a subnet or to a NIC (docs show both). Stateful via flow records. Rules: priority 100-4096, evaluated lowest number first, first match stops. Rule changes affect only new connections. | https://learn.microsoft.com/en-us/azure/virtual-network/network-security-groups-overview | 2026-10-16 |
|
|
|
+| 3b | NSG default rules | Inbound: AllowVNetInBound 65000, AllowAzureLoadBalancerInBound 65001, DenyAllInbound 65500. Outbound: AllowVnetOutBound 65000, AllowInternetOutBound 65001, DenyAllOutBound 65500. Defaults cannot be removed, only overridden by lower-number rules. Note: inbound is deny-all from Internet, but VNet-to-VNet inbound is ALLOWED by default. | same | 2026-10-16 |
|
|
|
+| 3c | Service tags / ASGs | Service tag = Microsoft-maintained group of IP prefixes (e.g. Internet, VirtualNetwork, AzureLoadBalancer). ASG groups NICs so rules name app tiers instead of IPs; all NICs in an ASG must be in the same VNet. A rule cannot list multiple service tags or multiple ASGs. | same ; https://learn.microsoft.com/en-us/azure/virtual-network/application-security-groups | 2026-10-16 |
|
|
|
+| 3d | Standard public IP is closed by default | "Secure by default": Standard SKU public IP is closed to inbound traffic until an NSG allows it. Basic SKU public IPs were retired 2025-09-30. | https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/public-ip-addresses | 2026-10-16 |
|
|
|
+| 4a | Default outbound access status | Doc (updated 2026-09-10) says: for the API version released AFTER 2026-03-31, subnets in NEW VNets get defaultOutboundAccess=false (private subnet) by default; Azure portal already defaulted to private subnets. Earlier API versions (ARM templates, Terraform pinned to older versions) keep the old null/allowed behaviour. Existing VNets are NOT changed. "Not a blanket shutdown." Stopping/deallocating the VM is needed for a subnet change to apply to existing NICs. | https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/default-outbound-access | 2026-10-16 |
|
|
|
+| 4b | Supported explicit outbound methods | NAT gateway on subnet (recommended for most cases), standard public LB with outbound rules, Standard public IP on the VM NIC, Azure Firewall/NVA via UDR. Basic public LB backend also listed in one place. Private-subnet side effects: Windows activation/updates need explicit egress; UDR next-hop "Internet" routes break. | same ; https://learn.microsoft.com/en-us/azure/nat-gateway/nat-overview | 2026-10-16 |
|
|
|
+| 4c | NAT gateway price | Standard: $0.045/h (about $32.85/mo) + $0.045/GB processed. Standard and StandardV2 same price. Retail API returned the meter with region "Global" only (no East US row). The public IP attached to it is billed separately ($0.005/h). | https://prices.azure.com/api/retail/prices?$filter=serviceName eq 'NAT Gateway' ; https://learn.microsoft.com/en-us/azure/nat-gateway/nat-overview | 2026-10-16 |
|
|
|
+| 4d | Standard LB outbound rules price | Standard LB meter "Included LB Rules and Outbound Rules" $0.025/h (about $18.25/mo; listed as Global/placeholder region, East US row not returned) + $0.005/GB processed. East US applicability: UNVERIFIED. | https://prices.azure.com/api/retail/prices?$filter=serviceName eq 'Load Balancer' | 2026-10-16 |
|
|
|
+| 4e | NAT gateway behaviour | Outbound-only: only return packets of outbound flows pass; takes precedence over LB and instance public IPs. | https://learn.microsoft.com/en-us/azure/nat-gateway/nat-overview | 2026-10-16 |
|
|
|
+| 5 | Machine identity | Managed identity: Entra-managed credential-less identity for Azure compute. System-assigned (lifecycle tied to the VM, one resource only) or user-assigned (standalone, shareable). No extra cost. | https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/overview | 2026-10-16 |
|
|
|
+| 6a | B-series candidates (East US, Linux, pay-as-you-go, per hour) | B1ls $0.0052 (legacy, not in current B-family page: availability UNVERIFIED); B1s $0.0104 (x86); B2ats_v2 $0.0094 (AMD x86); B2pts_v2 $0.0084 (Arm64, Ampere Altra); B2ts_v2 $0.0104 (Intel x86). Memory per size not read from the size pages (family min is 1 GiB): exact RAM UNVERIFIED. | https://prices.azure.com/api/retail/prices?$filter=armRegionName eq 'eastus' and serviceName eq 'Virtual Machines' ; https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/b-family | 2026-10-16 |
|
|
|
+| 6b | Twingate sizing | Best practices: Linux VM 1 CPU / 2 GB RAM is "sufficient for hundreds of remote users"; GCP starting point e2-small; AWS t3a.micro; Azure guidance is Container Instances (no size given). Any Linux with systemd/Docker/Helm on x86, AMD64 or ARM. Proxmox LXC floor 1 vCPU / 512 MB (via secondary search result, not fetched). Min 2 connectors per Remote Network. Outbound only: TCP 443, TCP 30000-31000, UDP/QUIC 1-65535 for P2P. | https://www.twingate.com/docs/connector-best-practices | 2026-10-16 |
|
|
|
+| 6c | Azure free account VM conditions | 12 months from account creation, 750 h each of B1s, B2pts v2, B2ats v2; new customers only; must move to pay-as-you-go within 30 days of start to keep 12-month services; not available for direct pay-as-you-go signup in China/India. Whether public IP and disk are covered: page silent, UNVERIFIED. | https://azure.microsoft.com/en-us/free/ ; https://azure.microsoft.com/en-us/pricing/free-services/ | 2026-10-16 |
|
|
|
+| 7 | Standard public IPv4 | $0.005/h = $3.65/mo (730 h). Basic static $0.0036/h (retired SKU). IPv6 free. | https://prices.azure.com/api/retail/prices?$filter=armRegionName eq 'eastus' and serviceName eq 'Virtual Network' ; https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/public-ip-addresses | 2026-10-16 |
|
|
|
+| 8 | Fixed monthly estimate, 2 VMs + 2 public IPs + OS disk, no NAT | Using B2ats_v2: 2 x $0.0094 x 730 = $13.72; IPs 2 x $0.005 x 730 = $7.30; disk 2 x Standard SSD E4 (32 GiB LRS) $2.40 = $4.80 (default OS disk type NOT verified, Premium SSD would differ). Total about $25.82/mo. With B2pts_v2 (Arm): 2 x 0.0084 x 730 = $12.26, total about $24.36/mo. Excludes egress bandwidth and any free-tier credit. | prices.azure.com queries above | 2026-10-16 |
|
|
|
+| 9 | Spacelift auth to Azure | Spacelift-managed integration (auto secret creation/rotation), OR static service principal via ARM_CLIENT_ID/ARM_CLIENT_SECRET (or cert)/ARM_SUBSCRIPTION_ID/ARM_TENANT_ID env vars (manual rotation), OR managed identity (ARM_USE_MSI=true) for private workers on Azure VMs. OIDC guide is linked but its content was not read: OIDC details UNVERIFIED. | https://docs.spacelift.io/integrations/cloud-providers/azure | 2026-10-16 |
|
|
|
+| 10 | Budgets | Cost Management budgets alert on actual or forecast cost, up to 5 thresholds and 5 emails; evaluated every 24 h on data that lags 8-24 h; emails normally within an hour. "Resources aren't affected, and your consumption isn't stopped." Can trigger an action group (subscription/resource-group scope) which can call automation (Functions, webhooks), so a stop can be BUILT but is not built in. Separate feature: spending limit exists only on credit-type subscriptions (free account = $200, not changeable); when hit, VMs are stopped/deallocated and VIP settings are lost; not available on pay-as-you-go. Marketplace items can still bill. | https://learn.microsoft.com/en-us/azure/cost-management-billing/costs/tutorial-acm-create-budgets ; https://learn.microsoft.com/en-us/azure/cost-management-billing/manage/spending-limit | 2026-10-16 |
|
|
|
+| 11 | Account hygiene (Azure) | MFA: security defaults are on by default for new tenants (24 h grace), require MFA registration for all users, MFA for admins, MFA for Azure portal/CLI/PowerShell, block legacy auth; since 2026-07-01 new tenants also block device-code flow. RBAC: max 3 subscription owners, least privilege, narrow scope, prefer job-function roles over privileged roles, use PIM just-in-time, assign to groups. Free account: card needed, $1 temporary authorization possible; spending protection on; when credit ends or 30 days pass, services are disabled unless upgraded. Emergency (break-glass) accounts recommended for real tenants. | https://learn.microsoft.com/en-us/entra/fundamentals/security-defaults ; https://learn.microsoft.com/en-us/azure/role-based-access-control/best-practices ; https://azure.microsoft.com/en-us/free/ | 2026-10-16 |
|
|
|
+
|
|
|
+## GCP
|
|
|
+
|
|
|
+| # | Fact | Value | Source URL | Retrieved |
|
|
|
+|---|---|---|---|---|
|
|
|
+| 1 | Hierarchy names | Organization (root; needs Google Workspace or Cloud Identity) > folders (optional; require an organization) > projects (the fundamental unit; every resource lives in a project). | https://docs.cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy | 2026-10-16 |
|
|
|
+| 1b | What a new individual learner starts with | Free-trial/free-tier users can only create projects and resources inside them; projects can sit at the top with no parent. A plain Gmail account has NO domain-linked organization. Docs are slightly inconsistent: one page says a "standalone organization" is auto-created at Google Account signup; I could not verify what that means for Gmail. Treat as: project-only, no folders, no org policy, no hierarchical firewall policies, unless the learner sets up Cloud Identity Free. Trial: $300 credit over 90 days, card required, $0-$1 auth hold, "no automatic charges": when credit runs out or 90 days pass the trial billing account closes, resources stop, 30-day grace to upgrade before deletion. | https://docs.cloud.google.com/resource-manager/docs/creating-managing-organization ; https://docs.cloud.google.com/free/docs/free-cloud-features | 2026-10-16 |
|
|
|
+| 2 | Network model | VPC networks (with routes and firewall rules) are GLOBAL; subnets are REGIONAL. Auto mode: one subnet per region auto-created (10.128.0.0/9), new regions added automatically. Custom mode: no subnets until you create them. Google: "We recommend that you use custom mode VPC networks in production." Each new project starts with a `default` auto-mode network with pre-populated IPv4 rules unless disabled. | https://docs.cloud.google.com/vpc/docs/vpc | 2026-10-16 |
|
|
|
+| 3a | VPC firewall rules | Targets: omitted = all instances in the network; or network tags; or target service accounts. Ingress source: IPv4/IPv6 CIDR (default 0.0.0.0/0 IPv4 only, not IPv6), source tags, or source service accounts (same-VPC instances only); valid combos are ranges+tags or ranges+service accounts. Cannot use target service accounts and target tags together; "Network tags and service accounts cannot be used in the same firewall rule." Service accounts give stricter control (tags can be edited by anyone who can edit the instance). Priority 0-65535, default 1000. | https://docs.cloud.google.com/firewall/docs/firewalls | 2026-10-16 |
|
|
|
+| 3b | Implied rules / state | Implied deny ingress and implied allow egress (lowest priority; exact priority number not stated on the page I read, so do not teach "65535" as sourced). Stateful: response traffic of an allowed connection is allowed and cannot be denied. Note: the pre-populated `default` network rules use priority 65534. | same | 2026-10-16 |
|
|
|
+| 3c | Hierarchical firewall policies | Attach at organization or folder level; group rules into a policy object applied to many VPC networks in many projects; evaluated before VPC rules; Google recommends using them to block traffic that should never be allowed. Requires an organization. goto_next and tag targeting not covered on the page read: UNVERIFIED. | https://docs.cloud.google.com/vpc/docs/firewall-policies-overview ; firewalls page above | 2026-10-16 |
|
|
|
+| 4a | Outbound with no external IP | Cloud NAT: VMs without external IPs reach the internet, subject to egress firewall rules; only translates responses to connections the VM started, no unsolicited inbound. Alternative is an external IP on the VM. | https://docs.cloud.google.com/nat/docs/overview | 2026-10-16 |
|
|
|
+| 4b | Cloud NAT price (public NAT, up to 32 VMs) | $0.0014 per VM instance per hour + $0.045/GiB processed (in and out) + $0.005/h per NAT external IP. Over 32 VMs: $0.044/h per gateway. Google's own example: 14 VMs, 1 IP, 100 GiB = $22.21 (720 h). For 2 VMs, 1 NAT IP, near-zero data: 2 x 0.0014 x 730 + 0.005 x 730 = $2.04 + $3.65 = about $5.69/mo + data. | https://cloud.google.com/nat/pricing | 2026-10-16 |
|
|
|
+| 5 | Machine identity | Service account attached to the VM (one SA per VM; one SA can serve many VMs). Default Compute Engine SA may auto-receive Editor depending on org policy: enforce `iam.automaticIamGrantsForDefaultServiceAccounts`, replace Editor if present. Best practice: dedicated user-managed SA per workload, least-privilege roles, avoid default SAs, avoid SA keys ("avoid using service account keys whenever possible"), use fine-grained roles not broad access scopes. | https://docs.cloud.google.com/compute/docs/access/service-accounts ; https://docs.cloud.google.com/iam/docs/best-practices-service-accounts | 2026-10-16 |
|
|
|
+| 6a | e2-micro / e2-small on-demand price, us-central1 | UNVERIFIED from Google: the VM pricing page is JavaScript-rendered with no prices in static HTML, and Google docs fetch returned no numbers. Third-party sites conflict (0.0084/h vs 0.0465/h for e2-micro). Working figure, to be confirmed in the Cloud Pricing Calculator: e2-micro about $0.0084/h (about $6.1/mo), e2-small about $0.0168/h (about $12.3/mo). Treat the 0.0465 figure as wrong. | https://cloud.google.com/compute/vm-instance-pricing (page loaded, prices absent) | 2026-10-16 |
|
|
|
+| 6b | Architecture note | E2 shared-core is x86. Twingate says GCP starting point is e2-small (2 GB RAM); e2-micro (1 GB) is below the 2 GB guidance. Arm shared-core on GCP: UNVERIFIED. | https://www.twingate.com/docs/connector-best-practices | 2026-10-16 |
|
|
|
+| 6c | Always-free e2-micro | One non-preemptible e2-micro per month, only in us-west1 (Oregon), us-central1 (Iowa) or us-east1 (South Carolina); limit counted in hours across those regions combined (not per instance); 30 GB-months standard persistent disk; 1 GB/month egress from North America (excluding China and Australia); needs an active, good-standing Cloud Billing account; no rollover; per billing account. External IP is NOT covered by this VM free tier. | https://docs.cloud.google.com/free/docs/free-cloud-features | 2026-10-16 |
|
|
|
+| 7 | External IPv4 | $0.005/h for static or ephemeral IPs in use on standard VMs = $3.65/mo; $0.0025/h on Spot/preemptible VMs; free tier limited to 1 hour per month per account (negligible). Unattached (reserved, unused) static IPs are charged at a higher rate. A static IP counts as in use if attached to a VM even when stopped; an ephemeral IP is in use only while the VM runs. | https://cloud.google.com/vpc/network-pricing | 2026-10-16 |
|
|
|
+| 8 | Fixed monthly estimate, 2 VMs + 2 external IPs + boot disk, no NAT | e2-small (Twingate guidance): 2 x 0.0168 x 730 = $24.5; IPs 2 x 0.005 x 730 = $7.30; boot disk 2 x 10 GB: price UNVERIFIED (about $1-$2 each if pd-standard to pd-balanced). Total roughly $34-$36/mo (the arithmetic: $24.53 + $7.30 + $2 to $4 for disks), VM price unverified. With e2-micro: 2 x 0.0084 x 730 = $12.3 + 7.30 + disks, about $21-$22/mo; if one e2-micro is in the always-free tier its VM and 30 GB disk are free, leaving IPs about $7.30 + second VM. | arithmetic on rows 6a, 7 | 2026-10-16 |
|
|
|
+| 9 | Spacelift auth to GCP | Service account created for the stack, with a short-lived OAuth token generated per run and exposed as GOOGLE_OAUTH_ACCESS_TOKEN (no long-lived static credentials). Spacelift page: "We strongly recommend using OIDC for the GCP integration"; OIDC / workload identity federation details not read: UNVERIFIED. | https://docs.spacelift.io/integrations/cloud-providers/gcp | 2026-10-16 |
|
|
|
+| 10 | Budgets | Alerts-only budgets: "doesn't automatically cap Google Cloud ... usage or spending." Defaults 50%, 90%, 100% of actual spend; forecast alerts unavailable for custom date ranges. Pub/Sub notifications can drive automation such as disabling billing on a project, but data is estimated, delivery is at-least-once and out of order, failures are silent, first notification may take hours, and usage-to-cost reporting lags, so a cap can fire after overspend. Separate "spend cap" budgets exist only for eligible services and pause them until manually lifted. Monthly budgets keep tracking 2 days into the next month. | https://docs.cloud.google.com/billing/docs/how-to/budgets ; https://docs.cloud.google.com/billing/docs/how-to/notify | 2026-10-16 |
|
|
|
+| 11 | Account hygiene (GCP) | Billing account is required for any paid use and for the always-free tier. 2-step verification for the Google Account: no page read, UNVERIFIED (state as general practice, not sourced). Org policy needs an organization: constraints `iam.automaticIamGrantsForDefaultServiceAccounts` (stop Editor grant), `compute.vmExternalIpAccess` (control which VMs may have external IPs), `iam.disableServiceAccountCreation`; `iam.disableServiceAccountKeyCreation` and secure-by-default org policies not confirmed (secure-by-default page returned 404). Org policies are inherited and mostly not retroactive; dry-run mode exists. Avoid default Compute SA with Editor; use dedicated user-managed SA. A Gmail-only learner has no org, so no org policy: compensate with a custom-mode VPC, no `default` network, and dedicated SAs. | https://docs.cloud.google.com/resource-manager/docs/organization-policy/overview ; https://docs.cloud.google.com/compute/docs/access/service-accounts | 2026-10-16 |
|
|
|
+
|
|
|
+## Summary of surprises (10 lines)
|
|
|
+
|
|
|
+1. Azure default outbound is not "off for all new VNets": only subnets created with the post-2026-03-31 API version default to private; older API versions (including Terraform pinned to older ones) and all existing VNets keep default outbound. Lessons must say "set defaultOutboundAccess=false explicitly".
|
|
|
+2. Azure NAT gateway is $0.045/h (about $32.85/mo) plus IP plus $0.045/GB: far more than two Standard public IPs ($7.30/mo). On Azure, "no inbound" is cheapest as public IP + deny-all NSG, not NAT.
|
|
|
+3. GCP flips that: Cloud NAT for 2 VMs is about $5.69/mo + data, cheaper than 2 external IPs ($7.30/mo), so private VMs + Cloud NAT is the lower-cost zero-inbound pattern there.
|
|
|
+4. An Azure Standard public IP is closed inbound by default (NSG required to open), and the NSG default AllowVNetInBound means VNet-internal traffic is allowed unless you add a deny.
|
|
|
+5. GCP "VM free tier" does not cover the external IP ($0.005/h still applies) and only three US regions qualify; e2-micro (1 GB) is below Twingate's 2 GB guidance, Twingate itself suggests e2-small on GCP.
|
|
|
+6. Twingate gives no Azure VM size (it points to Container Instances); Azure B1ls is legacy and absent from the current B-family page, so use B2ats_v2 (x86) or B2pts_v2 (Arm, also in the free account).
|
|
|
+7. Neither cloud's budget stops spend. Azure: only the free-account/credit spending limit does, by deallocating VMs (and losing VIP settings). GCP: alerts-only never caps; automation via Pub/Sub is delayed and unreliable; spend-cap budgets cover only eligible services.
|
|
|
+8. A GCP Gmail learner has no organization, so no folders, no org policy, no hierarchical firewall policies; the org needs Cloud Identity/Workspace. Azure always gives a tenant root management group.
|
|
|
+9. GCP firewall: tags and service accounts cannot be mixed in one rule (target side hard-stated); implied-rule priority number is not stated in current docs, so do not teach 65535 as sourced.
|
|
|
+10. UNVERIFIED items to recheck: GCP e2 on-demand prices and disk prices, Azure RAM per B-size, Azure East US row for NAT/LB meters, Azure free-account coverage of public IP/disk, GCP 2-step verification and secure-by-default org policies, Spacelift OIDC specifics for both clouds.
|