Skill
devops
✓ Verified
Free
Terraform Set Diff Analyzer
Diagnose noisy Terraform set vs list diffs in azurerm provider — explain why and how to stabilize them.
4.6(24 reviews)
9,800 installs
by Microsoft
About
Terraform diffs that constantly show changes due to set vs list ordering issues are maddening. This skill explains the root cause for the azurerm provider, identifies the specific resources causing instability, and proposes lifecycle ignore_changes blocks or schema fixes.
Tags
terraformazureiacdrift
Skill Instructions Preview
# Terraform Set Diff Analyzer Diagnose unstable Terraform diffs in the azurerm provider. ## Common Causes 1. Sets compared as ordered lists 2. Default values getting injected 3. Read-only attributes echoed back 4. API normalization (case, sort) ## Process 1. Read `terraform plan -no-color` output 2. Identify the resource and attribute path 3. Cross-reference with azurerm provider schema 4. Recommend one of: - lifecycle.ignore_changes - Refactor to use the right attribute name - Filter API response in data source 5. Explain the underlying cause
Install
# Add as Claude Code slash command: curl -fsSL "https://raw.githubusercontent.com/github/awesome-copilot/main/skills/terraform-azurerm-set-diff-analyzer/SKILL.md" \ -o ~/.claude/commands/terraform-azurerm-set-diff-analyzer.md
Compatible with
claude code
Trigger phrase
/tf-set-diffM
Microsoft
@microsoft