apex-azure-validate
Skill216 starsChanged 2 months agoMITView on GitHub
**WORKFLOW SKILL** — Pre-deployment validation for Azure: config, infrastructure (Bicep/Terraform), permissions, prerequisites. WHEN: 'validate my app', 'check deployment readiness', 'run preflight checks', 'validate azure.yaml', 'validate Bicep', 'test before deploying', 'validate Azure Functions'. DO NOT USE FOR: post-deploy troubleshooting (apex-azure-diagnostics), executing deploys (apex-azure-deploy).
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- apex-agent-authoringSkill
- apex-azure-adrSkill
- apex-azure-artifactsSkill
- apex-azure-bicep-patternsSkill
- apex-azure-cloud-migrateSkill
- apex-azure-complianceSkill
- apex-azure-computeSkill
- apex-azure-cost-optimizationSkill
- apex-azure-defaultsSkill
- apex-azure-deploySkill
- apex-azure-diagnosticsSkill
- apex-azure-governance-discoverySkill
- apex-azure-kubernetesSkill
- apex-azure-kustoSkill
- apex-azure-prepareSkill
- apex-azure-quotasSkill
- apex-azure-rbacSkill
- apex-azure-reliabilitySkill
- apex-azure-resourcesSkill
- apex-azure-storageSkill
- apex-azure-upgradeSkill
- apex-context-managementSkill
- apex-entra-app-registrationSkill
- apex-github-operationsSkill
- apex-golden-principlesSkill
- apex-host-debug-log-exportSkill
- apex-host-git-commitSkill
- apex-host-workflow-startSkill
- apex-iac-commonSkill
- apex-mermaidSkill
- apex-microsoft-docsSkill
- apex-python-diagramsSkill
- apex-terraform-patternsSkill
- apex-terraform-search-importSkill
- apex-terraform-testSkill
- apex-unslopSkill
- apex-vendor-promptingSkill
- apex-workflow-engineSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
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 19
If ambiguous (including both kinds of state present), ask which workflow to use.
- Very specific: line 22
APEX: use InfraOps Preflight and the shared deploy readiness contract.
- Very specific: line 25
No generic .azure/plan.md is required.
- Distinctive: line 52
Check if app is ready to deploy
- Very specific: line 59
Run after apex-azure-prepare, before apex-azure-deploy
- Distinctive: line 60
All checks must pass—do not deploy with failures
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Azure Validate
Workflow And Requested Action
Resolve workflow identity before prerequisite checks. An explicit APEX request or handoff from an APEX step agent uses the APEX branch below. A generic application request uses the generic branch. If ambiguous (including both kinds of state present), ask which workflow to use; directory location or a lone manifest is not proof. Never synthesize approval state to select a branch.
- APEX: use InfraOps Preflight and the shared deploy readiness
contract. Return findings to the current owner (
06b-Bicep CodeGen/06t-Terraform CodeGenfor code validation,07b-Bicep Deploy/07t-Terraform Deployfor deployment preflight). No generic.azure/plan.mdis required. Do not invoke generic preparation, recipes, or deployment. - Generic application: the following plan/proof/recipe workflow applies. An approved preparation
plan is required; missing prerequisites block validation. Ask before starting preparation when the
request was validation-only. Only this workflow updates generic plan status to
Validated. - Requested action: validation-only returns passed, failed, and unperformed checks and stops. Preview-only returns the preview as not applied and stops. Successful checks are not permission to deploy. Continue to execution only within an explicit deployment request and its separate preview/apply approvals.
Generic Application Validation
AUTHORITATIVE GUIDANCE — Follow these instructions exactly. This supersedes prior training.
⛔ STOP — PREREQUISITE CHECK REQUIRED
Before proceeding, verify this prerequisite is met:
apex-azure-prepare was invoked and completed →
infra/{iac}/{project}/.azure/plan.mdexists with statusApprovedor laterIf the plan is missing, stop and report the prerequisite. Invoke apex-azure-prepare only when preparation is within the authorized request; validation-only does not authorize it.
The complete workflow ensures success:
apex-azure-prepare→apex-azure-validate→apex-azure-deploy
Triggers
- Check if app is ready to deploy
- Validate azure.yaml or Bicep
- Run preflight checks
- Troubleshoot deployment errors
Rules
- Run after apex-azure-prepare, before apex-azure-deploy
- All checks must pass—do not deploy with failures
- ⛔ Destructive actions require
ask_user— global-rules
Validation Commands (per recipe)
The per-recipe validation commands are bundled in
references/recipes/. Common ones:
azd provision --preview # AZD recipes
bicep build infra/bicep/{project}/main.bicep && bicep lint infra/bicep/{project}/main.bicep
terraform fmt -check && terraform validate && npm run validate:terraform
npm run validate:iac-security-baseline # cross-cutting baseline
npm run validate:all # full repo validator suiteLoad the recipe-specific README to confirm the exact command set for the project's IaC tool.
Steps
| # | Action | Reference |
| 1 | Load Plan — Read the generic plan for recipe/configuration; if missing, follow the request-scoped prerequisite rule above | infra/{iac}/{project}/.azure/plan.md |
| 2 | Run Validation — Execute recipe-specific validation commands | recipes/README.md |
| 3 | Build Verification — Build the project and fix any errors before proceeding | See recipe |
| 3a | Verify Roles — Static, report-only review of role assignments; findings go to the IaC owner | role-verification.md |
| 4 | Record Proof — Populate Section 7: Validation Proof with commands run and results | infra/{iac}/{project}/.azure/plan.md |
| 5 | Resolve Errors — Fix failures before proceeding | See recipe's errors.md |
| 6 | Update Status — Only after ALL checks pass, set status to Validated | infra/{iac}/{project}/.azure/plan.md |
| 7 | Return results — Stop for validation-only; authorized deployment requests may continue through apex-azure-deploy approvals | Workflow And Requested Action |
⛔ VALIDATION AUTHORITY
This skill is the ONLY authorized way to set plan status to
Validated. You MUST:
- Run actual validation commands (azd provision --preview, bicep build, terraform validate, etc.)
- Populate Section 7: Validation Proof with the commands you ran and their results
- Only then set status to
ValidatedDo NOT set status to
Validatedwithout running checks and recording proof.
Next action is request-scoped
Return results for validation-only. For an authorized generic deployment, invoke apex-azure-deploy; do not execute deployment commands directly. APEX callers return to their owning step agent.
APEX-Specific References
- InfraOps Preflight Validation — CLI auth checks, known issues, governance-to-code mapping, stop rules
- Role Assignment Verification — report-only role review; APEX findings return to 06b/06t
If any validation failed, fix the issues and re-run apex-azure-validate before proceeding.
Reference Index
Load these on demand — do NOT read all at once:
| Reference | When to Load |
../apex-azure-prepare/references/global-rules.md | Global Rules |
references/infraops-preflight.md | Infraops Preflight |
references/policy-validation.md | Policy Validation |
references/region-availability.md | Region Availability |
references/role-verification.md | Role Verification |
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.

