azure-validate

Run pre-deployment validation for AZD, Bicep, Terraform, and AZCLI Azure projects.

Updated Dec 20, 2023
One-click install
npx skills add https://github.com/Thiago-Cruz-eng/Hibrygame --skill azure-validate-thiago-cruz-eng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-validate
Source: https://github.com/Thiago-Cruz-eng/Hibrygame/tree/main/.claude/skills/azure-validate
Command: npx skills add https://github.com/Thiago-Cruz-eng/Hibrygame --skill azure-validate-thiago-cruz-eng

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents failed Azure deployments by validating that configuration, infrastructure, and permissions are correct before any deployment is attempted.

Core Features & Use Cases

  • Pre-deployment Azure readiness validation for Azure Developer CLI (AZD) workflows, including deep checks of configuration (azure.yaml), and infrastructure expressed in Bicep or Terraform.
  • Recipe-driven validation execution that runs the appropriate validation flow for the chosen IaC approach (AZD, Bicep, Terraform, or AZCLI).
  • Proof-based status progression that records validation commands and results, then updates plan status to Validated only after all checks pass.

Use case: You’re about to deploy an app to Azure and want to catch template, build, policy, or environment issues early so the eventual deployment runs cleanly.

Quick Start

Invoke azure-validate after azure-prepare has created .azure/plan.md with status Approved or later to run the full preflight validation and record the results.

Frequently Asked Questions about azure-validate

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

FAQPage Schema
How do I run preflight checks for Azure Bicep or Terraform deployments?

Preflight checks for Azure Bicep or Terraform deployments validate that templates compile and previews succeed before deployment. Recipe-driven validation executes the appropriate flow for your chosen IaC approach and records the results.

Why does my Azure Developer CLI deployment fail before running?

Azure Developer CLI deployments fail when configuration, infrastructure definitions, or permissions are incorrect. Running pre-deployment validation catches template, build, policy, or environment issues early so the eventual deployment runs cleanly.

Does AZD pre-deployment validation work with both Bicep and Terraform?

AZD pre-deployment validation works with both Bicep and Terraform, as well as AZCLI scenarios. It runs recipe-specific validation commands based on your chosen infrastructure as code approach to ensure readiness.

What is the best way to validate Azure infrastructure templates before deploying?

The best way to validate Azure infrastructure templates is using recipe-driven validation that checks azure.yaml configuration, compiles Bicep or Terraform definitions, and records proof of successful checks before deployment.

Do I need an approved plan file to validate Azure deployment readiness?

Yes, you need an approved plan file. Validation requires loading `.azure/plan.md` with status `Approved` or later to run the full preflight validation and record the results before proceeding to deployment.

When should I not use preflight validation for Azure IaC templates?

You should not skip preflight validation for Azure IaC templates if you want to prevent failed deployments, but it cannot be run without an approved `.azure/plan.md` file from the prepare phase.