Platform · Customer onboarding

Subscription Factory: Customer Onboarding That Starts by Minting Subscriptions

The customer chain provisions isolated lower and upper environments, creating cloud subscriptions first because every other resource needs their ids.

  • Terraform
  • Azure
  • AKS
  • Istio
  • Vault
  • Apps Script
  • GitHub Actions
  • Python

// Overview

The Vault-population workflow has three jobs: populate Vault (defaults, then CSV overwrite, then archive), create subscriptions with Terraform, then trigger onboarding. Onboarding fetches subscription ids, deploys lower and upper in parallel, and a post-apply job configures the mesh gateway on each cluster. The subscription module can adopt pre-existing subscriptions.

// The problem

Each customer needs isolated subscriptions per environment plus consistent networking and Kubernetes, and subscriptions must exist before anything else.

// Flow

Subscription Factory: Customer Onboarding That Starts by Minting Subscriptions flow1. Form and Apps Script → 2. Populate Vault → 3. Create subscriptions → 4. Trigger onboarding → 5. Prepare → 6. Deploy lower and upper → 7. Branch: HA → 8. Configure cluster01Form and Apps Script02Populate Vault03Create subscriptions04Trigger onboarding05Prepare06Deploy lower and upper07 · GATEBranch: HA08Configure cluster
  1. Form and Apps Scriptresponses transposed and pushed as a CSV
  2. Populate Vaultstandard defaults then CSV overwrite; CSV archived with a timestamp
  3. Create subscriptionsone Terraform state for both environments; ids stored in Vault
  4. Trigger onboardingcalled natively with customer and environment
  5. Prepareresolve environments and fetch subscription ids
  6. Deploy lower and uppernetwork with hub peering, subnets, cluster with mesh, managed identity (parallel)
  7. Branch: HA gateHA customers get two regions, two clusters and cross-region peering
  8. Configure clusterper-cluster gateway and internal load balancer

// Design decisions & guardrails

  • The subscription module can adopt an existing subscription under a distinct alias and import its management-group association.
  • Docs call out that dropping an environment already in state plans a destroy of that subscription.
  • Documented caveat: whoever deploys a subscription first becomes its Owner.
  • Hub-and-spoke: every VNet is peered to a hub.
  • Offboarding mirrors the build: destroy, cancel subscriptions, release network, archive Vault config last.

// Outcome

Isolated customer environments in minutes of pipeline time instead of days of tickets; 3 jobs for populate, 5 for onboarding.

// Related