sdaf-workload-zone
Skill148 starsChanged 3 months agoMITView on GitHub
Deploy an SDAF workload zone (landscape network, peering, zone Key Vault) after the control plane exists. Drives `install_workloadzone.sh` per `docs/local/04-00-workload-zone.md`, reviews the plan, and validates the state blob and summary. This skill owns the decision boundary for workload-zone private-endpoint / subnet-policy conflicts — inspect the actual Azure error and the workload-zone tfvars against `docs/local/04-00-workload-zone.md § Configuration preparation` before changing settings, and do not auto-apply a cloud-specific workaround outside its documented scope. Use when a user says "deploy a workload zone", "deploy the landscape", "run install_workloadzone.sh", "connect the workload zone to control-plane state", "workload-zone private endpoint failure", or "workload-zone subnet policy failure". Do NOT use for the control plane (see sdaf-control-plane-bootstrap) or SAP system (see sdaf-sap-system).
In this repository21 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- Webapp/.github/copilot-instructions.mdCopilot instructions
- code-reviewSkill
- sdaf-bom-selectionSkill
- sdaf-control-plane-bootstrapSkill
- sdaf-failure-triageSkill
- sdaf-ha-diagnosticsSkill
- sdaf-ha-topologySkill
- sdaf-media-acquisitionSkill
- sdaf-media-diagnosticsSkill
- sdaf-orientation-and-surfaceSkill
- sdaf-plan-and-test-semanticsSkill
- sdaf-quality-assuranceSkill
- sdaf-readiness-checkSkill
- sdaf-safe-removalSkill
- sdaf-sap-installationSkill
- sdaf-sap-systemSkill
- sdaf-sovereign-cloudSkill
- sdaf-state-managementSkill
- sdaf-workspace-and-tfvarsSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 35
Do NOT trigger on: control plane, SAP system, install, removal.
- Very specific: line 76
Run from the directory that contains the tfvars.
- Distinctive: line 96
Read the exact Azure error text from the run log.
- Distinctive: line 98
Read the current values of the workload-zone private-endpoint and subnet-policy settings in the tfvars actually being applied.
- Distinctive: line 112
If the log's error text, the tfvars values, and the doc section do not line up cleanly, say docs are silent on the specific combination and …
- Distinctive: line 114
Do not synthesize a fix from analogous settings elsewhere.
- Distinctive: line 130
Do not run before the control plane exists.
- Very specific: line 131
Do not pass --auto-approve (docs/local/04-00-workload-zone.md § Review before execution).
- Very specific: line 133
Do not --force casually (docs/local/04-00-workload-zone.md § Safe retry).
- Distinctive: line 135
Do not auto-apply a cloud-specific workaround outside the cloud the doc scopes it to (see the decision boundary above).
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SDAF Workload Zone
Action-loop skill. Deploys the workload zone per
docs/local/04-00-workload-zone.md. Canonical owner of workload-zone
private-endpoint / subnet-policy decisions — the failure-triage skill
routes those symptoms here.
When to invoke
Trigger on: "deploy a workload zone", "deploy the landscape", "run install_workloadzone.sh", "workload-zone Key Vault", "workload-zone private endpoint failure", "workload-zone subnet policy failure".
Do NOT trigger on: control plane, SAP system, install, removal.
Preconditions
- Control plane deployed (
docs/local/04-00-workload-zone.md § Before you begin; the WZ reads control-plane / deployer state per§ What the automation does). - Landscape tfvars prepared under the documented WORKSPACES layout — see
sdaf-workspace-and-tfvars(§ Configuration preparation,§ Inputs). - Remote-state / storage / connectivity / quota reviewed
(
§ Before you begin) — seesdaf-readiness-check.
Recipe
Step 1 — Review the plan
Re-read the landscape tfvars once and cross-check network, storage, Key
Vault, and peering
(docs/local/04-00-workload-zone.md § Review before execution).
Step 2 — Run install_workloadzone.sh (documented shape)
From the landscape parameter directory, exactly per
docs/local/04-00-workload-zone.md § Run:
set -e
cd "$CONFIG_REPO_PATH/WORKSPACES/LANDSCAPE/<WORKLOAD_ZONE>-INFRASTRUCTURE"
"$SAP_AUTOMATION_REPO_PATH/deploy/scripts/install_workloadzone.sh" \
--parameterfile "<WORKLOAD_ZONE>-INFRASTRUCTURE.tfvars" \
--control_plane_name "<CONTROL_PLANE>" \
--deployer_tfstate_key "<DEPLOYER_STATE_KEY>" \
--storageaccountname "<STATE_STORAGE_ACCOUNT>" \
--state_subscription "<STATE_SUBSCRIPTION_ID>" \
--subscription "<WORKLOAD_SUBSCRIPTION_ID>" || {
rc=$?
echo "workload-zone exit=$rc — route to sdaf-failure-triage"
exit "$rc"
}Run from the directory that contains the tfvars; pass the basename only
(docs/local/troubleshooting.md § A parameter file is not found).
Step 3 — Validate
docs/local/04-00-workload-zone.md § Validate and § Outcome:
- Workload-zone
.tfvarsand backend metadata written to the state account'stfvarscontainer (§ What the automation does). - Zone Key Vault deployed (
§ Outcome). - Summary written.
Decision: workload-zone private-endpoint and subnet-policy failures
Canonical owner. The failure-triage skill routes any workload-zone private-endpoint or subnet-policy failure here rather than restating the fix inline.
Decision boundary — apply on every occurrence, do not shortcut:
- Read the exact Azure error text from the run log. Do not assume the error class from the operator's paraphrase.
- Read the current values of the workload-zone private-endpoint and subnet-policy settings in the tfvars actually being applied.
- Read
docs/local/04-00-workload-zone.md § Configuration preparationfor the current documented setting names, allowed values, and the specific cloud / condition under which the doc prescribes a change. Treat that section as the source of truth — it may evolve; this skill deliberately does not restate the setting name, allowed values, or the exact error string, so it cannot go stale against the doc. - Change only what the doc prescribes for the cloud you are deploying in. Do not auto-apply a cloud-specific workaround (e.g. an Azure Government setting) to any other cloud — the same doc section warns against that.
- Re-review the plan (Step 1) before rerunning Step 2.
If the log's error text, the tfvars values, and the doc section do not line up cleanly, say docs are silent on the specific combination and stop. Do not synthesize a fix from analogous settings elsewhere.
If the run fails
Route to sdaf-failure-triage, which walks the full symptom map. The
workload-zone-owned preventive checks that stay here rather than in
triage:
- Filename / directory / basename mismatch — fix before rerun
(
docs/local/troubleshooting.md § A parameter file is not found). - Private-endpoint / subnet-policy failures — walk the decision boundary above.
Hard rules
- Documented behaviour only (D19).
- Do not run before the control plane exists.
- Do not pass
--auto-approve(docs/local/04-00-workload-zone.md § Review before execution). - Do not
--forcecasually (docs/local/04-00-workload-zone.md § Safe retry). - Do not auto-apply a cloud-specific workaround outside the cloud the doc scopes it to (see the decision boundary above).
- Repo-wide rules apply: do not run
terraform fmtand follow the Terraform / Ansible / Python guidance in.github/copilot-instructions.md.
See also
sdaf-control-plane-bootstrap,sdaf-workspace-and-tfvars,sdaf-sap-system,sdaf-state-management,sdaf-failure-triage.docs/local/04-00-workload-zone.md,docs/local/troubleshooting.md,.github/copilot-instructions.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

