azure-schema-validation

Validate Azure Terraform resource schemas against official provider documentation.

7|5|Updated Jan 22, 2025
One-click install
npx skills add https://github.com/aztfmodnew/terraform-azurerm-caf --skill azure-schema-validation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-schema-validation
Source: https://github.com/aztfmodnew/terraform-azurerm-caf/tree/main/.github/skills/azure-schema-validation
Command: npx skills add https://github.com/aztfmodnew/terraform-azurerm-caf --skill azure-schema-validation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill prevents errors and ensures adherence to Azure provider best practices by validating Terraform resource schemas before implementation, catching potential issues early in the development cycle.

Core Features & Use Cases

  • Schema Validation: Verifies required and optional attributes, nested blocks, and deprecation status against official Azure provider documentation.
  • Tool Integration: Leverages MCP Terraform tools (mcp__terraform__search_providers, mcp__terraform__get_provider_details) for accurate schema retrieval.
  • Use Case: Before adding a new azurerm_virtual_network resource, use this Skill to confirm all necessary arguments like name, location, and resource_group_name are present and correctly formatted, and to check for any deprecated attributes.

Quick Start

Validate the schema for the 'azurerm_container_app' resource using the MCP Terraform tools.

Frequently Asked Questions about azure-schema-validation

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

FAQPage Schema
How do I validate Azure Terraform resource schemas before writing code?

To validate Azure Terraform resource schemas, you can use MCP Terraform tools to check required and optional attributes, nested blocks, and deprecation status against official provider documentation before implementation. This ensures correct arguments are present and formatted.

What does schema validation check for in Azure provider resources?

Schema validation for Azure provider resources verifies required and optional attributes, checks nested blocks, and flags deprecated attributes against official Azure provider documentation to prevent implementation errors and ensure compliance.

Can I check for deprecated Terraform attributes before deploying Azure resources?

Yes, you can check for deprecated Terraform attributes before deploying Azure resources by validating the resource schema against official provider documentation using MCP Terraform tools to catch deprecation status early in the development cycle.

How do I verify required arguments for azurerm resources using MCP tools?

To verify required arguments for azurerm resources, use MCP Terraform tools like search_providers and get_provider_details to retrieve official schema documentation, ensuring all necessary arguments such as name and location are correctly implemented.

Do I need MCP Terraform tools to ensure resource compliance in Azure?

Yes, MCP Terraform tools are required to ensure resource compliance in Azure, as they provide the official provider documentation retrieval mechanism needed to validate schemas, verify nested blocks, and check deprecation status deterministically.