/azure-sap-automation:sdaf-failure-triagefrom azure-sap-automation
Triages failed SDAF runs by distinguishing real failures from false positives, mapping symptoms to documented causes, and routing to the appropriate stage-owning skill for retry.
Ships in azure-sap-automation. 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.
Read when SKILL.md points to them.
Action-loop skill. The entry point for "it broke". Maps observed symptoms to
the documented cause in docs/local/troubleshooting.md (and the stage docs'
own § Validate / § Configuration preparation sections), then hands off
to the stage-owning skill. This skill is a router, not the owner of any
per-stage fix.
Trigger on: "SDAF run failed", "the plan was clean but the run exited 1", "success but nothing deployed", "state lock", "unexpected replacement", "control plane stopped partway", "generated hosts.yaml missing", "BOM files not found", "removal is incomplete", "Ansible playbook failed", "workload-zone private endpoint failure", "workload-zone subnet policy failure", "SDAF exit 2".
Do NOT trigger on: pre-flight readiness (sdaf-readiness-check), authoring
tfvars (sdaf-workspace-and-tfvars), fresh deploy of a stage.
0 — Terraform / script signalled success. Still worth verifying the
expected artefacts exist (some symptoms below are "success but nothing
deployed").exit 2 from
validate.sh or a stage script). Treat exit 2 as a validation gate
that was intentionally tripped, not a bug; do not silence it.Walk references/symptom-map.md, which lists
every named failure class from docs/local/troubleshooting.md plus the
documented workload-zone private-endpoint / subnet-policy case, with the
owning skill for removal/state/install/HA/media/sovereign routes. Pick the
first row whose symptom matches the observed signature.
If nothing matches, walk the "canonical 'clean plan reported as failure'
note" in references/symptom-map.md, which walks the stage § Validate
sections. If nothing there matches either, say docs are silent on this
symptom and stop — do not invent a cause.
Route to the stage-owning skill for the actual retry:
| Stage / symptom | Owning skill |
|---|---|
| Control plane | sdaf-control-plane-bootstrap |
| Workload zone (including the private-endpoint / subnet-policy workaround) | sdaf-workload-zone |
| SAP system | sdaf-sap-system |
| SAP installation / numbered playbooks | sdaf-sap-installation |
| Media acquisition preconditions / clean downloader path | sdaf-media-acquisition |
| Media archive / checksum / extractor / BOM-processing failures | sdaf-media-diagnostics |
HA cluster evidence / crm / pcs / fencing | sdaf-ha-diagnostics |
| Explicit Terraform state lock / import / remove / drift repair | sdaf-state-management |
| Safe teardown / incomplete removal / control-plane step trap | sdaf-safe-removal |
| Azure Government / sovereign-cloud deltas | sdaf-sovereign-cloud |
| WORKSPACES/tfvars authoring issue | sdaf-workspace-and-tfvars |
| BOM file location / selection | sdaf-bom-selection |
The retry safety rules — no --force / no --auto-approve / no state
edits / no concurrent execution / do not delete .progress markers — are
enforced by the shipped repo instructions (.github/copilot-instructions.md)
and by each stage skill's own recipe. This triage skill defers to the
stage-owning skill's retry section rather than restating those rules.
docs/local/troubleshooting.md § Removal is incomplete and
docs/local/07-00-operations.md § Remove resources: an interrupted
control-plane removal can exit "successfully" after step=1 without
deleting the deployer. Diagnostic path: inspect
.sap_deployment_automation, persisted step, library destroy result, and
remaining deployer state / resources. Do not edit step to bypass the
guard. sdaf-safe-removal owns the documented diagnostic path and any
approved retry.
success but nothing was deployedCross-check the expected artefacts for the stage:
.sap_deployment_automation, summary written
(docs/local/03-00-control-plane.md § Validate, § Outcome)..tfvars and backend metadata in the state account's
tfvars container, zone Key Vault deployed
(docs/local/04-00-workload-zone.md § Validate, § Outcome).<SID>_hosts.yaml /
sap-parameters.yaml present
(docs/local/05-00-sap-system.md § Validate, § Outcome).If artefacts are missing, treat the "success" as false and route to the stage-owning skill.
docs/local/troubleshooting.md section, a documented § Configuration preparation / § Validate cross-check, or a named owner row in
references/symptom-map.md, say docs are silent and stop.sdaf-state-management owns that..github/copilot-instructions.md own those.sdaf-sovereign-cloud, air-gapped, or undocumented ARM_ENVIRONMENT
flows).sdaf-control-plane-bootstrap, sdaf-workload-zone, sdaf-sap-system,
sdaf-sap-installation, sdaf-media-acquisition, sdaf-media-diagnostics,
sdaf-ha-diagnostics, sdaf-state-management, sdaf-safe-removal,
sdaf-sovereign-cloud, sdaf-workspace-and-tfvars, sdaf-bom-selection.docs/local/troubleshooting.md, docs/local/07-00-operations.md,
docs/local/04-00-workload-zone.md § Configuration preparation.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
sdaf, failure-triage, terraform, deployment, troubleshooting
npx claudepluginhub azure/sap-automation --plugin azure-sap-automation18 skills in this plugin
/sdaf-bom-selectionPick the right SDAF BOM for a target SAP product / release / DB platform / version / kernel / topology. Explains where BOMs live in the samples repo (`SAP/` for whole products, `BOM/` for components), decodes the `ms`, `v####`, and `latest` suffix conventions, points at the compatibility guardrails (`supportedPlatforms`, `supportedDBVersions`, `supportedKernels`), and reminds the operator that the download flow needs four explicit BOM keys in `sap-parameters.yaml`. Use when a user says "which BOM do I use", "product BOM vs component BOM", "SAP samples BOM catalog", "BOM_CATALOG", "S4/2023 BOM", "HANA BOM", or "how do I pick a BOM for HANA/Oracle/DB2/ASE". Do NOT use to author a new BOM, to acquire media (`sdaf-media-acquisition`), or to troubleshoot a checksum / 404 (`sdaf-media-diagnostics`).
/sdaf-control-plane-bootstrapDeploy the SDAF control plane locally: prepare DEPLOYER and LIBRARY tfvars, review the plan, run `deploy_controlplane.sh` per `docs/local/03-00-control-plane.md § Run`, and validate the deployer + library + state hand-off. Grounded in `docs/local/03-00-control-plane.md`. Use when a user says "deploy the SDAF control plane", "run deploy_controlplane.sh", "bootstrap SDAF from an empty subscription", "install the deployer" or "create the SAP library". Do NOT use for workload zone (see sdaf-workload-zone), SAP system (see sdaf-sap-system), removal (`sdaf-safe-removal`), or Azure Government / sovereign-cloud deltas (`sdaf-sovereign-cloud`).
Other plugins' skills for the same job