/azure-sap-automation:sdaf-workspace-and-tfvarsfrom azure-sap-automation
Explains and validates the SDAF WORKSPACES layout (DEPLOYER/LIBRARY/LANDSCAPE/SYSTEM), region-code naming conventions, and how the four tfvars files are structured. Grounded in official SDAF docs.
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 "where does each tfvars go, and what must the directory names look like?" — grounded in the shipped docs. Hands off to the matching deploy skill.
Trigger on: "WORKSPACES layout", "which tfvars", "region code", "SDAF naming convention", "location_short", "unkn fallback", "DEPLOYER/LIBRARY/LANDSCAPE/ SYSTEM".
Do NOT trigger on: deploying, running validate.sh (that's
sdaf-readiness-check), selecting a BOM (sdaf-bom-selection).
Docs (docs/local/README.md § Configuration and state layout) show a
WORKSPACES/ tree outside the SDAF checkout with four leaves. Each leaf
holds a same-named .tfvars file:
WORKSPACES/
├── DEPLOYER/<ENV>-<CODE>-<DEPLOYER>-INFRASTRUCTURE/<same>.tfvars
├── LIBRARY/<ENV>-<CODE>-SAP_LIBRARY/<same>.tfvars
├── LANDSCAPE/<ENV>-<CODE>-<VNET>-INFRASTRUCTURE/<same>.tfvars
└── SYSTEM/<ENV>-<CODE>-<VNET>-<SID>/<same>.tfvars
Sources: docs/local/README.md § Configuration and state layout;
sample layout also documented in
sap-automation-samples/docs/01-00-terraform-samples.md § Inputs.
docs/region-codes.md § Where the region code appears defines the tokens
and the pattern:
<ENV> — DEV / QA / PRD / MGMT / LAB.<CODE> — the uppercase region code from docs/region-codes.md § Supported regions; unmapped regions fall back to unkn per
§ Unmapped regions fall back to unkn.<DEPLOYER> — deployer identifier (e.g. DEP00, DEP01).<VNET> — network identifier (e.g. SAP01, SAP02).<SID> — SAP SID (e.g. X00, HA2, WIN).Documented examples:
MGMT-WEEU-DEP01-INFRASTRUCTUREMGMT-WEEU-SAP_LIBRARYDEV-WEEU-SAP01-INFRASTRUCTUREDEV-WEEU-SAP01-X00See references/naming-and-region-codes.md
for the doc-cited example set plus the "region codes appear in six places"
note.
Every documented example uses the same name for the directory and the
.tfvars file inside it. Deploy scripts require you to cd into the
directory containing the tfvars and pass the basename only
(docs/local/troubleshooting.md § A parameter file is not found). Mismatch
between directory name / file name / declared environment/region/network/SID
is one of the shipped stage-script validation gates.
Do not "fix" a mismatch by editing state — re-name to match, or fix the tfvars content.
The enforced deploy order (control plane → workload zone → SAP system) is
stated in sdaf-orientation-and-surface § The spine (order is enforced),
which is the canonical statement. Doc anchors: docs/local/README.md § Complete the journey; each stage doc's § What the automation does /
§ Outcome.
For the GitHub Actions surface, docs say 04-create-system-environment.yml
generates and commits the SAP-system WORKSPACES
(docs/documentation-source-map.md § Lifecycle capability sources). Do not
hand-author the SYSTEM tfvars in that flow; treat the generation step as the
source of truth.
sdaf-readiness-check (drives
validate.sh).sdaf-control-plane-bootstrap → sdaf-workload-zone →
sdaf-sap-system.sdaf-bom-selection.sdaf-readiness-check, sdaf-control-plane-bootstrap,
sdaf-workload-zone, sdaf-sap-system, sdaf-bom-selection.docs/local/README.md, docs/region-codes.md,
sap-automation-samples/docs/01-00-terraform-samples.md.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
sdaf, workspace-layout, tfvars, naming-convention, sap-automation
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