terraform-azurerm-set-diff-analyzer

Analyze Terraform plan JSON to identify false-positive AzureRM Set-type diffs.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/lzc0901/vibe_coding_template --skill terraform-azurerm-set-diff-analyzer-lzc0901
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: terraform-azurerm-set-diff-analyzer
Source: https://github.com/lzc0901/vibe_coding_template/tree/main/skills/azure-cloud/terraform-azurerm-set-diff-analyzer
Command: npx skills add https://github.com/lzc0901/vibe_coding_template --skill terraform-azurerm-set-diff-analyzer-lzc0901

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Identify false-positive diffs in Terraform plan outputs caused by AzureRM Set-type attributes.

Core Features & Use Cases

  • Identify order-only changes vs real changes in AzureRM Set-type attributes.
  • Report precise adds/removes/modifications (including nested Set attributes) with path context.
  • Supports external attribute definitions and nested structures to improve accuracy.
  • Use Case: In CI/CD pipelines, analyze a plan affecting azurerm_application_gateway or azurerm_network_security_group to filter noise.

Quick Start

Run the analyzer on a Terraform plan JSON: python3 scripts/analyze_plan.py plan.json

Frequently Asked Questions about terraform-azurerm-set-diff-analyzer

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

FAQPage Schema
Why does my Terraform plan show changes for AzureRM Application Gateway when nothing was modified?▼

Terraform plan shows changes for AzureRM Application Gateway because Set-type attributes often trigger false-positive diffs when elements are reordered. The analyzer reads the plan JSON to distinguish reordered elements from actual changes.

How do I detect false-positive diffs in a Terraform plan JSON?▼

To detect false-positive diffs in a Terraform plan JSON, run the Python-based analyzer using the command python3 scripts/analyze_plan.py plan.json. It reads the plan output and a JSON attribute definition to produce detailed change reports.

What AzureRM resources are affected by Set-type attribute false-positive diffs?▼

AzureRM resources affected by Set-type attribute false-positive diffs include Application Gateway, Load Balancer, NSG, and Front Door. The analyzer identifies order-only changes versus real modifications across these Set-based attributes.

Can I filter Terraform plan noise in a CI/CD pipeline for AzureRM resources?▼

You can filter Terraform plan noise in a CI/CD pipeline by running the analyzer on the plan JSON. It reports precise adds, removes, and modifications with path context, effectively removing false-positive diff noise for AzureRM resources.

Does the analyzer support nested Set attributes in Terraform plan outputs?▼

The analyzer supports nested Set attributes in Terraform plan outputs by using external attribute definitions. This improves accuracy by reporting precise modifications with path context even within nested structures.