/idp-skills:complete-idp-deployment-on-azure-from-scratchfrom idp-skills
Orchestrates a complete Internal Developer Platform deployment on Azure: landing zones, AKS, Backstage with PostgreSQL, golden-path templates, and self-service provisioning via Azure AD Workload Identity. Use for end-to-end IDP setup on Azure.
Ships in idp-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
An Azure-hosted Internal Developer Platform touches a Management Group/ subscription hierarchy, an AKS cluster, a Backstage instance, a managed Postgres catalog database, a scaffolding template, a provisioning API, and a scorecard model — each covered in depth by its own skill in this repo. What those skills don't cover is the order these phases have to happen in and the specific handoffs between them on Azure: which subscription hosts the platform tooling, how the AKS cluster's Workload Identity federation is carried into both the Backstage backend and the self-service provisioning layer, and where teams building this for the first time get stuck. This skill is that integration runbook, not a restatement of Azure Policy, AKS, or Backstage mechanics.
kubectl, helm ≥ 3.8, and az aks CLI access for cluster
provisioning.Platform subscription or shares a subscription with early
workloads — dedicated is strongly preferred and assumed below.Phase 1 — Azure landing zone. Design the Management Group hierarchy
(a Platform MG alongside Landing Zones and Sandbox), assign Azure
Policy initiatives at the Management Group level (not per-subscription),
and vend the platform-tooling subscription and a first tenant subscription
through a repeatable process (Azure landing zone Terraform module or ALZ
accelerator), following
azure-landing-zone-setup.
Validate with that skill's canary-subscription step before continuing
— an AKS cluster built in a subscription whose Policy assignments later
tighten (e.g., a "deny public IP" policy added after the cluster's load
balancer is already provisioned) forces avoidable rework in Phase 2.
Phase 2 — AKS cluster with Azure AD Workload Identity. Provision the platform subscription's AKS cluster with a pinned Kubernetes version, node pools sized for Backstage's steady backend load, and Azure AD Workload Identity (OIDC issuer + federated credentials) enabled before any workload is deployed. Record the cluster's OIDC issuer URL — Phase 3 and Phase 6 both construct federated credentials against it. See managed-kubernetes-eks-aks-gke for AKS provisioning, node pool design, and the Workload Identity walkthrough specifically.
Phase 3 — Backstage on AKS, backed by Azure Database for PostgreSQL
Flexible Server. Package Backstage as a Helm chart and deploy it against
a Flexible Server instance (zone-redundant HA beyond a pilot) as the
catalog database, with the Backstage pod's Kubernetes ServiceAccount
federated to a Microsoft Entra ID (Azure AD) application that has
Key Vault Secrets User on the vault holding the database credential —
never a connection string in a plain Secret. Chart packaging and
values-schema design follow
helm-chart-authoring;
any custom auth provider or backend plugin follows
backstage-plugin-development.
Mount the credential via the Azure Key Vault Provider for Secrets Store
CSI Driver rather than syncing it into a Kubernetes Secret at rest.
Phase 4 — Golden-path template design. Author the first golden-path
template producing a Dockerfile, a CI workflow (GitHub Actions or Azure
DevOps Pipelines), catalog registration, and — Azure-specific — a
scaffolded ServiceAccount manifest with the
azure.workload.identity/client-id annotation pre-filled for the
service's own federated identity. Tier by complexity rather than one
template trying to cover every service shape. See
golden-path-template-design-for-developer-platforms.
Phase 5 — Validate the golden path end-to-end. Run the Phase 4 template through a pipeline that scaffolds a real instance, builds it, deploys it to an ephemeral AKS namespace, smoke-tests it, and tears everything down on both success and failure, before it's published as the org default. See golden-path-template-validation-and-testing.
Phase 6 — Self-service API wired to Azure provisioning. Build the
Scaffolder custom actions that let a developer request a Flexible Server
instance or a new Workload Identity federated credential through the
catalog. Model the request as an explicit state machine, gate
production-tier server SKUs and any identity with broader-than-namespace
federation subject behind human approval, and keep policy/budget rules
external to the action code. The Azure-specific provisioning call —
az postgres flexible-server create or an ARM/Bicep deployment scoped by
a managed identity with Contributor narrowed to the target resource
group, and creating a federated credential whose subject is scoped to
the exact system:serviceaccount:<namespace>:<name> — is unique to this
phase; the approval-gate pattern around it is generic. See
platform-self-service-api-and-workflow-design.
Phase 7 — Scorecards. Define checks including Azure-specific ones: is the service's identity Workload-Identity-federated rather than a service principal secret embedded anywhere, does the Flexible Server instance have automated backups and (production tier) zone redundancy enabled, is the resource group tagged per the Phase 1 tagging policy. See service-scorecards-and-maturity-model-design.
Phase 8 — Multi-tenancy. If more than one team shares the Phase 2
cluster, decide namespace-per-team vs. dedicated clusters (or dedicated
subscriptions, an Azure-specific option worth weighing given how cheap
subscription vending is under Phase 1's landing zone), scope each
federated credential's subject to its namespace/ServiceAccount, and
enforce ResourceQuotas before onboarding a second team. See
multi-tenancy-and-team-workspace-design-for-idp.
Phase 9 — Rollout, operating model, and measurement. Sequence adoption starting from a pilot team with genuine current pain, run the platform team per the "thinnest viable platform" discipline, and measure with SPACE/DX Core 4 metrics. See idp-adoption-rollout-and-change-management-strategy, platform-engineering-team-topology-and-operating-model, and developer-experience-measurement-and-platform-adoption.
Symptom: The Phase 6 self-service action fails every real request
with AADSTS70021 (no matching federated identity credential), despite
working in testing.
Fix: This is a Phase 2/Phase 6 sequencing gap — the federated
credential's subject was written against a namespace/ServiceAccount
name Phase 4's template scaffolds differently in practice (e.g., an
environment suffix the credential's subject string didn't
anticipate). Re-derive the subject from the actual scaffolded
manifest, exactly, rather than a hand-typed example.
Symptom: Backstage's catalog shows transient errors during a Flexible Server planned maintenance window, even though Azure classifies the instance as zone-redundant/highly available. Fix: The Backstage backend's Postgres connection pool lacks retry/ reconnect logic tolerant of the brief failover gap zone-redundant HA still has; this is a Phase 3 gap invisible until a real maintenance event. Add connection retry with backoff to the backend's database config.
Symptom: Phase 7's scorecard shows most early services failing the "Workload Identity, not service principal secret" check, despite the platform mandating Workload Identity from the start. Fix: Phase 4's template was published and used before Phase 2's Workload Identity setup was actually finished, so early services scaffolded from an older revision with a service-principal-secret fallback. Re-validate the current template (Phase 5) to confirm the fallback is gone, then batch-remediate the already-scaffolded services.
Symptom: A team lead runs az group delete on what they believe is
an empty resource group to "clean up," and it turns out to be the
resource group holding the Phase 3 Flexible Server instance.
Fix: This is destructive and, without soft delete/backup retention
configured on the server, can be unrecoverable. Never treat resource
group deletion as a routine cleanup step once a phase's production
resources live in it; enable Flexible Server's backup retention and
geo-redundant backup before Phase 3 is considered complete, and require
an explicit confirmation step (separate from a generic "clean up my
sandbox" habit) before any az group delete against a platform-tooling
resource group.
Symptom: A production Flexible Server instance is discovered
provisioned with no record of who approved it.
Fix: The Phase 6 approval gate was enforced only in the Scaffolder
UI's form validation, not on the server-side approval endpoint itself.
Require the policy check and requestedBy != approver guard on every
code path that reaches the provisioning state, not only the UI path a
developer is expected to use.
Scenario: "Contoso Logistics" has an Azure tenant with a root Management Group and no platform tooling. The platform team builds an IDP over one quarter.
Platform Management Group is added under the root
alongside existing Landing Zones and Decommissioned MGs; a
sub-platform-tools subscription and sub-fleet-dev (first tenant) are
vended via the ALZ Terraform module, with an Azure Policy initiative
denying resource creation without an owner tag.sub-platform-tools gets an AKS cluster
platform-aks-weu, with Workload Identity enabled against OIDC issuer
https://weu.oic.prod-aks.azure.com/<TENANT_ID>/<OIDC_ID>/.charts/backstage-contoso,
deployed against Flexible Server contoso-backstage-catalog
(zone-redundant, Standard_D2ds_v5), with the backend's
ServiceAccount backstage-backend federated to an Entra ID app with
Key Vault Secrets User on the vault holding the DB credential.ServiceAccount manifest annotated
azure.workload.identity/client-id: <SERVICE_APP_CLIENT_ID>.test-svc-001, builds,
deploys to an ephemeral-validation namespace, curls /healthz, and
tears down — required before the template is marked default.custom:azure:provisionFlexServer
checks an OPA policy (auto-approve Standard_B1ms/dev, require
approval otherwise), and on approval runs a Bicep deployment via a
managed identity scoped to the requesting team's resource group.fleet-tracking is recruited as the pilot team (highest
infra-ticket volume last quarter); after two sprints their Flexible
Server provisioning turnaround drops from a multi-day ticket to a
same-day auto-approved or next-business-day approved request, and that
result is published before the template goes org-wide.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin idp-skills20 skills in this plugin
/backstage-plugin-developmentGuides authoring a custom Backstage plugin — scaffolding a frontend or backend plugin package with `yarn new`, wiring a frontend API client via `createApiRef`, building a backend plugin on the new backend system (`createBackendPlugin`), and registering either into the app's routes or an entity page tab. Use when a user asks to "write a custom Backstage plugin," "add a backend plugin to Backstage," "build a Backstage frontend component that talks to a new API," or "create a Backstage plugin that surfaces X" — this goes beyond catalog/TechDocs/template configuration.
/complete-idp-deployment-on-aws-from-scratchSequences a complete, from-scratch Internal Developer Platform deployment on AWS: landing zone → EKS cluster → Helm-deployed Backstage backed by RDS PostgreSQL → golden-path scaffolding template → self-service API wired to AWS provisioning (IRSA roles, RDS instances) → scorecards. This is the integration runbook that orders the individual AWS/EKS/Backstage skills correctly and flags the handoffs between them. Use when a user asks to "deploy an IDP on AWS from scratch," "stand up Backstage on EKS end-to-end," "build our internal developer platform on AWS," "wire self-service database/IAM provisioning into Backstage on AWS," or "sequence an AWS platform rollout from account creation to golden-path templates."
Other plugins' skills for the same job