azure-deployment-preflight

Validates Bicep deployments for Azure CLI and Azure Developer CLI workflows.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/MoonAxis/azure-stack --skill azure-deployment-preflight-moonaxis
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: azure-deployment-preflight
Source: https://github.com/MoonAxis/azure-stack/tree/main/skills/azure-deployment-preflight
Command: npx skills add https://github.com/MoonAxis/azure-stack --skill azure-deployment-preflight-moonaxis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents deployment failures and unexpected infrastructure changes by performing comprehensive preflight validation of Bicep deployments to Azure, including syntax checks, what-if analysis, and permission verification.

Core Features & Use Cases

  • Syntax Validation: Checks Bicep files for syntax errors before deployment.
  • What-If Analysis: Previews all resource changes (create, modify, delete) that will occur during deployment.
  • Permission Checks: Verifies if the user has the necessary Azure RBAC permissions.
  • Project Type Detection: Supports both Azure Developer CLI (azd) and standalone Azure CLI (az) workflows.
  • Use Case: Before deploying a new set of Azure resources using Bicep, use this skill to ensure the template is syntactically correct, preview the exact changes, and confirm you have the permissions to deploy, thus avoiding costly errors and downtime.

Quick Start

Use the azure-deployment-preflight skill to validate the Bicep files in the current directory before deploying to Azure.

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 deployments before executing to Azure?▼

Validate Bicep deployments before execution by checking template syntax, performing what-if analysis to preview changes, and verifying Azure RBAC permissions to prevent deployment failures.

What is Azure what-if analysis and how does it preview infrastructure changes?▼

What-if analysis previews all resource changes including create, modify, and delete operations that will occur during deployment, helping you catch unexpected infrastructure changes before execution.

Do I need Azure CLI and Azure Developer CLI for Bicep preflight validation?▼

Yes, full preflight validation requires Azure CLI, Azure Developer CLI, and Bicep CLI to support both azd and standalone az workflows for comprehensive checks.

How to check Azure RBAC permissions before deploying Bicep templates?▼

Check Azure RBAC permissions as part of preflight validation to verify if the user has the necessary permissions to deploy resources, avoiding access-related deployment failures.

What's the best way to detect Bicep syntax errors before deployment?▼

Run syntax validation on Bicep files to detect errors before deployment, ensuring templates are syntactically correct and preventing failures during infrastructure execution.

Can I use preflight validation with both azd and standalone az workflows?▼

Yes, preflight validation supports both Azure Developer CLI azd and standalone Azure CLI az workflows by detecting project types and locating corresponding Bicep and parameter files.