/azure-developer-tooling:azure-deployment-preflightfrom azure-developer-tooling
Validates Azure Bicep deployments before execution with syntax checks, azd preview, Azure CLI what-if, permission checks, and generates a preflight report.
Ships in azure-developer-tooling. 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.
Validate Bicep infrastructure before deployment by detecting the workflow, running syntax and preview commands, categorizing what-if changes, and writing a preflight-report.md with actionable issues.
| Tool or value | Required for | How to check or obtain |
|---|---|---|
az | Standalone Azure CLI what-if | az --version; az account show for subscription. |
azd | Projects with azure.yaml | azd version; azd env list for environments. |
bicep | Local syntax validation | bicep --version; fallback to Azure validation if absent. |
| Resource group | az deployment group what-if | Ask user or check existing .azure/ config. |
| Subscription | All deployments | az account show or ask user. |
| Location | sub, mg, or tenant scope | Ask user or use default from config. |
| Environment | azd projects | azd env list or user input. |
azure.yaml exists, use the azd workflow; otherwise use the Azure CLI workflow..bicep files. For azd, check infra/ before the project root. For standalone deployments, use the user's file or search infra/, deploy/, and the root.<filename>.bicepparam, <filename>.parameters.json, parameters.json, then parameters/<env>.json in the same area.bicep build <bicep-file> --stdout. Capture line and column errors, warnings, and build status. If bicep is not installed, note it and continue.preflight-report.md in the project root using references/REPORT-TEMPLATE.md.| Workflow or scope | Command |
|---|---|
azd default environment | azd provision --preview |
azd named environment | azd provision --preview --environment <env-name> |
resourceGroup target scope | az deployment group what-if --resource-group <rg-name> --template-file <bicep-file> --parameters <param-file> --validation-level Provider |
subscription target scope | az deployment sub what-if --location <location> --template-file <bicep-file> --parameters <param-file> --validation-level Provider |
managementGroup target scope | az deployment mg what-if --location <location> --management-group-id <mg-id> --template-file <bicep-file> --parameters <param-file> --validation-level Provider |
tenant target scope | az deployment tenant what-if --location <location> --template-file <bicep-file> --parameters <param-file> --validation-level Provider |
| RBAC fallback | Retry with --validation-level ProviderNoRbac and state that full permission validation did not run. |
| Change type | Symbol | Meaning | Report detail |
|---|---|---|---|
| Create | + | New resource will be created | Resource type, name, location. |
| Delete | - | Existing resource will be deleted | Mark as high risk unless intentional. |
| Modify | ~ | Properties will change | Include property names and before/after values when available. |
| NoChange | = | Resource unchanged | Count only unless the user asked for full inventory. |
| Ignore | * | Resource not analyzed because limits were reached | Warn that the preview is incomplete. |
| Deploy | ! | Resource will be deployed but changes are unknown | Require manual inspection. |
Continue validation even when errors occur; the report should contain all failures and warnings.
| Error type | Action |
|---|---|
| Not logged in | Note in report; suggest az login or azd auth login. |
| Permission denied | Retry what-if with ProviderNoRbac; note missing RBAC validation. |
| Bicep syntax error | Include every error; continue to other files. |
| Tool not installed | Note in report and skip only that validation step. |
| Resource group not found | Note in report; suggest creating it or selecting the correct group. |
references/VALIDATION-COMMANDS.md: detailed command variants and flags.references/REPORT-TEMPLATE.md: required preflight-report.md structure.references/ERROR-HANDLING.md: detailed remediation guidance.Preserve Azure deployment terminology exactly when reporting: azd up, azd provision, az deployment, az deployment group, az deployment sub what-if, az deployment mg what-if, az deployment tenant what-if, --validation-level, --validation-level Provider, targetScope, Sub/MG/Tenant, JSON, line/column, success/failure, and create/modify/delete/unchanged.
Use concrete examples when they match the repository: infra/main.bicep, infra/main.bicepparam, and bicep build infra/main.bicep --stdout.
## Azure deployment preflight
**Status:** pass | issues found | blocked
**Report:** `preflight-report.md`
**Workflow:** azd | az cli
**Target scope:** resourceGroup | subscription | managementGroup | tenant | unknown
### Tools executed
| Tool | Command | Result |
| --- | --- | --- |
| Bicep | `bicep build <bicep-file> --stdout` | <pass/fail/skipped> |
| Preview | `<azd provision --preview or az deployment ... what-if>` | <pass/fail> |
### What-if summary
| Symbol | Count | Notes |
| --- | --- | --- |
| `+` | <count> | <created resources> |
| `~` | <count> | <modified resources> |
| `-` | <count> | <deleted resources> |
### Issues
- <severity>: <error, warning, permission gap, or missing input>
azure.yaml or absence of it.bicep build <bicep-file> --stdout was run or its absence was documented.azd provision --preview or az deployment ... what-if scope was selected.--validation-level ProviderNoRbac fallback was used only after permission failure and was reported.+, -, ~, =, *, and ! were interpreted correctly.preflight-report.md was created in the project root or the blocker is explicit.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
bicep, azure-deployment, infrastructure-validation, what-if, preflight
9 skills in this plugin
/azure-architecture-autopilotDesign new Azure infrastructure or analyze existing Azure resources, generate interactive architecture diagrams, refine through conversation, produce Bicep, review, and deploy. Use when asked to design, analyze, modify, or deploy Azure architecture, including "Create X on Azure", "Set up a RAG architecture", "Analyze my current Azure infrastructure", "Draw a diagram for rg-xxx", Foundry slowness, cost reduction, security strengthening, Microsoft Foundry, AI Search, OpenAI, Fabric, ADLS Gen2, Databricks, and Azure services./azure-container-registry-cliManage Azure Container Registry with az acr CLI commands for registries, images, cloud builds, ACR Tasks, authentication, tokens, geo-replication, networking, purge, import, and diagnostics. Use when working with ACR, az acr, pushing or importing container images in Azure, or Azure Container Registry operations./azure-developer-cliDesign, create, review, migrate, or troubleshoot Azure Developer CLI azd projects using azure.yaml, infra Bicep or Terraform, environments, secrets, hooks, deployment workflows, and azd-managed CI/CD. Use this skill when the user asks for azd project structure, Azure Developer CLI best practices, azd templates, or azure.yaml guidance./azure-devops-cliManage Azure DevOps with Azure CLI and the azure-devops extension. Use when the user asks for Azure DevOps CLI commands, az devops automation, projects, repos, pull requests, pipelines, builds, work items, artifacts, service endpoints, permissions, or CI/CD scripting./azure-static-web-appsCreate, configure, run, and deploy Azure Static Web Apps with the SWA CLI. Use when asked to deploy a static site to Azure, run SWA locally, configure staticwebapp.config.json, add Azure Functions APIs, set API runtimes, database connections, or GitHub Actions CI/CD for Static Web Apps./cloud-design-patternsSelect, explain, and apply cloud design patterns for distributed systems across reliability, performance, messaging, architecture, deployment, security, and event-driven categories. Use when designing, reviewing, or implementing cloud workloads and distributed system architectures.npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin azure-developer-toolingOther plugins' skills for the same job