azure-deployment-preflight

Validate Azure Bicep deployments with syntax checks, what-if analyses, and permission checks.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/angryconsultant/Copilot-CLI --skill azure-deployment-preflight-angryconsultant
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-deployment-preflight
Source: https://github.com/angryconsultant/Copilot-CLI/tree/main/skills/azure-deployment-preflight
Command: npx skills add https://github.com/angryconsultant/Copilot-CLI --skill azure-deployment-preflight-angryconsultant

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Azure deployments can fail due to syntax errors, insufficient permissions, or unexpected changes. This skill provides an end-to-end preflight validation to catch issues before executing changes.

Core Features & Use Cases

  • Bicep syntax validation with bicep CLI
  • What-if deployment analysis for azd and az deployment commands
  • Permission checks and RBAC guidance
  • Generates a detailed preflight-report.md in project root

Quick Start

Run preflight on your Azure Bicep project to validate syntax, perform a what-if analysis, and check permissions before deployment.

Frequently Asked Questions about azure-deployment-preflight

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate Bicep syntax and check permissions before an Azure deployment?

To validate Bicep syntax and check permissions before an Azure deployment, you can run a preflight validation that uses Bicep CLI for syntax checks and Azure CLI for what-if analysis. This process catches errors and generates a preflight-report.md at the project root.

What is Azure deployment what-if analysis and when do I need it?

Azure deployment what-if analysis is a preflight validation mechanism that previews infrastructure changes before execution. You need it to catch unexpected resource changes, syntax errors, or insufficient RBAC permissions prior to running azd provision or az deployment commands.

Can I use what-if validation with both azd provision and standalone az deployment commands?

Yes, what-if validation applies to both azd-based projects and standalone Bicep deployments. The preflight process guides infrastructure previews across azd provision and az deployment commands, consolidating the results into a single detailed report.

How do I perform an end-to-end preflight check for an azd-based Bicep project?

To perform an end-to-end preflight check for an azd-based Bicep project, execute a validation workflow that runs Bicep CLI syntax checks, Azure CLI what-if analyses, and permission validations. The process outputs a consolidated preflight-report.md file in your project root.

Why does my Azure Bicep deployment fail with permission or syntax errors?

Azure Bicep deployments fail due to syntax errors, insufficient RBAC permissions, or unexpected changes. Running a preflight validation before execution identifies these specific issues by performing Bicep syntax checks and what-if analyses to prevent deployment failures.

What are the limitations of running Azure preflight what-if analyses?

Preflight what-if analyses rely on Bicep CLI for syntax checks and Azure CLI for deployment validation, meaning they require these tools to be installed. The process provides previews and guidance but does not execute the actual deployment or automatically fix the detected permission or syntax errors.