Cloud Computing

Terraform wants to recreate resources on every plan

Environment

Environment

Terraform managing Azure resources through a reusable module.

What happens

What happens

Each plan shows replacement caused by tag and network rule differences despite no code change.

What I have tried

What I have tried

Applied the plan twice and upgraded the provider.

I would appreciate advice on how to identify the root cause without risking existing data or configuration.

COMMUNITY RESPONSES

Verified community troubleshooting

0 replies

No answers yet..

Showing 0 of 0 community responses
AI DIAGNOSTICS

Incident analysis

Updated 3w ago• Trouble ID

Most likely causes

The API normalizes unordered values or injects defaults that differ from module input. 82%
A recent software, firmware or configuration change is exposing an existing compatibility issue. 34%

Summary

The reported behaviour is consistent with the API normalizes unordered values or injects defaults that differ from module input. The safest next step is to verify that hypothesis with a reversible test before making permanent configuration changes.

Suggested Fixes

Verify the likely cause
Inspect state versus provider output, use stable maps or sets, specify documented defaults and ignore only fields owned externally.
Validate and monitor
Reproduce the issue once after the change, review relevant logs or metrics, and keep a rollback path until the system has remained stable.

Continue troubleshooting

Matched from the title, description and tags