/azure-sap-automation:sdaf-plan-and-test-semanticsfrom azure-sap-automation
Explains SDAF plan-only, test, and apply semantics across Local, Azure DevOps, and GitHub Actions surfaces for control plane, workload zone, and SAP system stages. Clarifies that there is no universal dry-run switch and that behavior varies by execution surface and stage.
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.
Context-primer. Answers "what does test / plan-only / apply mean here?" across surfaces. Canonical rule: there is no SDAF-wide dry-run switch. Classify by execution surface and deployment stage before answering.
For the file-by-file evidence matrix, including the hosted wrapper docs and
workflow/pipeline paths, see
references/plan-test-matrix.md.
Trigger on: "what does test do", "is this a dry run", "plan-only vs apply", "control-plane dry-run limitation", "workflow 01 dry-run", "pipeline 02 test", "TEST_ONLY", "which SDAF stages can review a Terraform plan without applying".
Do NOT trigger on: actually deploying a control plane / workload zone / SAP system, or triaging a failed run after the fact.
docs/deployment-options.md is explicit that Local, Azure DevOps, and GitHub
Actions are different execution models. Never answer "test means X in
SDAF" without naming:
| Path | What plan/test means | What apply means |
|---|---|---|
| Local control plane | No separate documented test switch. deploy_controlplane.sh displays Terraform plans and asks for approval before apply. | The same run applies after operator approval. |
| Local workload zone | No separate documented local test path. install_workloadzone.sh shows the plan and waits for approval. | The same run applies after approval. |
| Local SAP system | No separate documented local test path. installer.sh shows the plan and waits for approval. | The same run applies after approval. |
ADO control plane (01) | test exists on the wrapper/template, but current docs say it is not forwarded to the control-plane scripts. Treat it as not plan-only. | The queued run is state-changing. |
ADO workload zone (02) | test: true becomes TEST_ONLY and the hosted installer exits after Terraform plan. | Re-queue the same pipeline with test: false. |
ADO SAP system (03) | test: true becomes TEST_ONLY and the hosted installer exits after Terraform plan. | Re-queue the same pipeline with test: false. |
GitHub control plane (01) | The workflow exposes a dry-run input, but the docs say it does not reach either control-plane script. | Treat the run as state-changing; get a reviewed control-plane plan through a separately validated SDAF path first. |
GitHub workload zone (03) | Enable the test option, review the plan, then rerun with test disabled. The workflow exports TEST_ONLY. | Re-dispatch workflow 03 with test disabled. |
GitHub SAP system (05) | Enable the test option, review the plan, then rerun with test disabled. The workflow exports TEST_ONLY. | Re-dispatch workflow 05 with test disabled. |
For local execution, the docs do not define a universal test flag that
operators should export by hand. Instead, the documented stage commands
themselves are the review gate:
docs/local/03-00-control-plane.md § Run: deploy_controlplane.sh
displays Terraform plans and asks for approval before apply.docs/local/04-00-workload-zone.md § Run: install_workloadzone.sh
displays the plan and asks for approval before apply.docs/local/05-00-sap-system.md § Run: installer.sh displays the plan
and asks for approval before apply.If the operator is on Local, answer with the documented stage command, not
with a hosted-only TEST_ONLY story.
This is the boundary that prevents most bad advice:
For Azure DevOps or GitHub Actions, answer from the documented pipeline or
workflow inputs and outcomes. Do not transfer Local behavior to hosted
automation merely because both surfaces use the word test.
The control plane is different from workload zone and SAP system:
test/dry-run
input, but the reviewed docs say that input is not forwarded to the
control-plane scripts.So the correct answer to "is control-plane test safe?" is no for the
hosted wrappers as currently documented.
test as a
safety gate.--auto-approve
(docs/local/03-00-control-plane.md § Review before execution;
docs/local/04-00-workload-zone.md § Review before execution;
docs/local/05-00-sap-system.md § Review before execution).sdaf-control-plane-bootstrapsdaf-workload-zonesdaf-sap-systemsdaf-failure-triagereferences/plan-test-matrix.mdsdaf-control-plane-bootstrap, sdaf-workload-zone, sdaf-sap-system,
sdaf-failure-triagedocs/deployment-options.md, docs/local/README.md,
docs/local/03-00-control-plane.md, docs/local/04-00-workload-zone.md,
docs/local/05-00-sap-system.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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`).
/sdaf-failure-triageTriage a failed or suspicious SDAF run: distinguish a real failure from a green no-op or a clean plan reported as failure, map the observed symptom to a documented cause in `docs/local/troubleshooting.md`, and hand off to the stage-owning skill for retry. Use when a user says "SDAF run failed", "my deploy exited non-zero", "the plan was clean but exit 1", "the run said success but nothing was deployed", "state lock error", "unexpected replacement", "control plane stopped partway", "generated hosts.yaml missing", "workload-zone private endpoint failure", "workload-zone subnet policy failure", or "SDAF exit 2". Do NOT use to actually deploy or to redesign the workspace layout.
/sdaf-ha-diagnosticsDiagnose a live or recently failed SDAF high-availability cluster without changing cluster state. Start read-first: capture `crm status full` or `pcs status --full`, inspect SBD or fencing evidence, confirm current resource placement, and reuse existing quality-assurance or HCMT artifacts. Grounded in `docs/local/07-10-quality-assurance.md`, the shipped Pacemaker role vars/tasks, and the SAP Automation QA setup role. Use when a user says "diagnose my HANA failover", "crm status", "pcs status", "check fencing", "why is the SCS/ERS cluster unhealthy", "offline_validation/cib", or "review an HCMT result zip". Do NOT use for pre-deploy topology or design choices (see `sdaf-ha-topology`), fresh installation/deploy, or disruptive failover/fencing exercises (see `sdaf-quality-assurance`).
/sdaf-ha-topologyChoose the documented SDAF high-availability design before SAP-system deployment. Use when a user asks which HA topology to deploy, whether to use AFA or SBD, AFS or ANF, HANA scale-up or scale-out, whether ANGI is allowed, or which HA inputs must be set before deployment. Ground answers in the current support matrix, Ansible roles, sample tfvars, and validation logic. Do NOT use for live cluster diagnosis (sdaf-ha-diagnostics) or for running the installers (sdaf-sap-installation).
/sdaf-media-acquisitionAcquire approved SAP media into the SDAF library after SAP-system infrastructure exists. Drives local `deploy/ansible/download_menu.sh` per `docs/local/06-00-software-and-installation.md § Download software`, enforces the documented `BOM_CATALOG` root and the four required `sap-parameters.yaml` BOM keys (`application_bom_name`, `database_bom_name`, `sap_kernel_bom_name`, `save_bom_as`), and explains the documented download and validation flow. Use for "download SAP media", "run download_menu.sh", "acquire software into the library", "BOM Downloader", "BOM_CATALOG", or "assemble application/database/kernel BOMs for download". Do NOT use to choose a BOM, troubleshoot a failed download, or run installation playbooks.
Other plugins' skills for the same job