**UTILITY SKILL** — Shared IaC deploy patterns for Bicep + Terraform agents: deployment strategies, circuit breaker, known deploy issues. WHEN: "phased deployment", "circuit breaker", "deploy strategy", "deploy issue", "shared IaC pattern". DO NOT USE FOR: preflight (azure-validate), code generation (azure-bicep-patterns / terraform-patterns).
67
80%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./.github/skills/iac-common/SKILL.mdShared deployment patterns used by both Bicep and Terraform deploy agents (07b, 07t) and review subagents.
Preflight validation (CLI auth, governance mapping, stop rules, known issues) has moved to the azure-validate skill. See
azure-validate/references/infraops-preflight.md.
azure-validate before invoking any deploy strategy in this skillazd provision / azd up for all new projects. The legacy deploy.ps1 path is deprecated; full decision matrix in references/azd-vs-deploy-guide.md.--no-prompt — AZURE_SUBSCRIPTION_ID, AZURE_RESOURCE_GROUP, AZURE_ENV_NAME, AZURE_LOCATION must all be present (azd env get-values)azd env new {project}-{env} to avoid environment-name collisions across projectsazure-validate); code generation (use azure-bicep-patterns or terraform-patterns)Standard deploy flow used by 07b-Bicep Deploy and 07t-Terraform Deploy:
azure-validate (auth, governance, plan, what-if review)azd env set AZURE_SUBSCRIPTION_ID/RESOURCE_GROUP/LOCATION + verify via azd env get-valuesazd provision --preview (Bicep) or terraform plan (Terraform); user reviews destructive operationsazd provision / azd up (Bicep) or terraform apply (Terraform); for high-risk projects, deploy in phases (Foundation → Security → Data → Compute → Edge)08-As-Built for documentationDefault: use azd for every project. Each project is a self-contained azd project
(azure.yaml + .azure/ inside infra/{iac}/{project}/). Phased deployment is now done
via azd hooks (preprovision / postprovision).
Full procedure (azd up / azd provision --preview, environment preflight checklist for
--no-prompt deploys, deprecated phased table, single-deployment fallback, and the legacy
deploy.ps1 decision matrix) lives in
references/deployment-strategies.md.
Single-deployment exception: for projects with < 5 resources in dev/test, a single azd deployment is acceptable. All deploys still require explicit user approval.
| Reference | Location |
|---|---|
| Deployment strategies | references/deployment-strategies.md |
azd vs deploy.ps1 guide | references/azd-vs-deploy-guide.md |
| AVM module index | references/avm-module-index.md (canonical CSV + JSON list of AVM modules in .github/data/) |
| AVM version freeze gate | references/avm-version-freeze-gate.md (Phase 4.4 gate before plan_status=APPROVED) |
| Codegen shared workflow | references/codegen-shared-workflow.md (Phase 2 output cadence loaded by 06b/06t CodeGen agents) |
| Codegen file-order | references/codegen-file-order.md (per-tool file emission order loaded by 06b/06t CodeGen agents) |
| Codegen DO / DON'T | references/codegen-do-dont.md (shared DO/DON'T bullets between 06b + 06t; tool-specific bullets stay in each agent body) |
| Preflight policy checks | references/preflight-policy-checks.md (deploy-agent jq snippets, skip-validation shortcut, L3 precheck routing matrix, deprecation scan regex) |
| Azure Resource Graph primer | references/azure-resource-graph-primer.md (canonical shared head used by azure-compliance / azure-cost-optimization / azure-diagnostics resource-graph references) |
| Preflight validation | azure-validate/references/infraops-preflight.md |
| CLI auth validation procedure | azure-defaults/references/azure-cli-auth-validation.md |
| Policy effect decision tree | azure-defaults/references/policy-effect-decision-tree.md |
| IaC policy compliance | .github/instructions/iac-bicep-best-practices.instructions.md / .github/instructions/iac-terraform-best-practices.instructions.md |
| Bootstrap backend templates | terraform-patterns/references/bootstrap-backend-template.md |
| Deploy script templates | terraform-patterns/references/deploy-script-template.md |
| Circuit breaker | references/circuit-breaker.md |
Deploy agents MUST read references/circuit-breaker.md before starting
any deployment. It defines:
05d7617
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.