Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Validate Azure configurations, ARM/Bicep templates, and resource settings before deployment
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
SKILL.md
1---2name: azure-validate3description: "Pre-deployment validation for Azure readiness. Run deep checks on configuration, infrastructure (Bicep or Terraform), RBAC role assignments, managed identity permissions, and prerequisites before deploying. WHEN: validate my app, check deployment readiness, run preflight checks, verify configuration, check if ready to deploy, validate azure.yaml, validate Bicep, test before deploying, troubleshoot deployment errors, validate Azure Functions, validate function app, validate serverless deployment, verify RBAC roles, check role assignments, review managed identity permissions, what-if analysis, validate Container Apps deployment."4license: MIT5metadata:6author: Microsoft7version: "0.0.0-placeholder"8---910# Azure Validate1112> **AUTHORITATIVE GUIDANCE** — Follow these instructions exactly unless they contradict security policies given to you.1314> **⛔ STOP — PREREQUISITE CHECK REQUIRED**15>16> Before proceeding, verify this prerequisite is met:17>18> **azure-prepare** was invoked and completed → `.azure/deployment-plan.md` exists with status `Approved` or later19>20> If the plan is missing, **STOP IMMEDIATELY** and invoke **azure-prepare** first.21>22> The complete workflow ensures success:23>24> `azure-prepare` → `azure-validate` → `azure-deploy`2526## Triggers2728- Check if app is ready to deploy29- Validate azure.yaml or Bicep30- Run preflight checks31- Troubleshoot deployment errors3233## Rules34351. Run after azure-prepare, before azure-deploy362. All checks must pass—do not deploy with failures373. ⛔ **Destructive actions require `ask_user`** — [global-rules](references/global-rules.md)3839## Steps4041| # | Action | Reference |42|---|--------|-----------|43| 1 | **Load Plan** — Read `.azure/deployment-plan.md` for recipe and configuration. If missing → run azure-prepare first | `.azure/deployment-plan.md` |44| 2 | **Add Validation Steps** — Copy recipe "Validation Steps" to `.azure/deployment-plan.md` as children of "All validation checks pass" | [recipes/README.md](references/recipes/README.md), `.azure/deployment-plan.md` |45| 3 | **Run Validation** — Execute recipe-specific validation commands | [recipes/README.md](references/recipes/README.md) |46| 4 | **Build Verification** — Build the project and fix any errors before proceeding | See recipe |47| 5 | **Static Role Verification** — Review Bicep/Terraform for correct RBAC role assignments in code | [role-verification.md](references/role-verification.md) |48| 6 | **Record Proof** — Populate **Section 7: Validation Proof** with commands run and results | `.azure/deployment-plan.md` |49| 7 | **Resolve Errors** — Fix failures before proceeding | See recipe's `errors.md` |50| 8 | **Update Status** — Only after ALL checks pass, set status to `Validated` | `.azure/deployment-plan.md` |51| 9 | **Deploy** — Invoke **azure-deploy** skill | — |52> **⛔ VALIDATION AUTHORITY**53>54> This skill is the officially verified way to set plan status to `Validated`. You MUST follow these steps to make sure every prerequisite is fulfilled before setting status to `Validated`:55> 1. Run actual validation commands (azd provision --preview, bicep build, terraform validate, etc.)56> 2. Populate **Section 7: Validation Proof** with the commands you ran and their results57> 3. Only then set status to `Validated`58>59> Do NOT set status to `Validated` without running checks and recording proof.6061---6263> **⚠️ MANDATORY NEXT STEP — DO NOT SKIP**64>65> After ALL validations pass, you **MUST** invoke **azure-deploy** to execute the deployment. Do NOT attempt to run `azd up`, `azd deploy`, or any deployment commands directly. Let azure-deploy handle execution.66>67> If any validation failed, fix the issues and re-run azure-validate before proceeding.68