[Question/Feedback]: "Unexpected API Version Change Detected in Terraform Plan for Subnet, vnet and peering Resources" #193
Labels
Language: Terraform 🌐
This is related to the Terraform IaC language
Needs: Immediate Attention ‼️
Immediate attention of module owner / AVM team is needed
Needs: Triage 🔍
Maintainers need to triage still
Status: Response Overdue 🚩
When an issue/PR has not been responded to for X amount of days
Type: Question/Feedback 🙋
Further information is requested or just some feedback
Check for previous/existing GitHub issues
Description
While running terraform plan using the AzureRM provider, Terraform detects changes in the type and output attributes of a subnet, vnet and peering resources.
The detected change involves an API version update for the resource type and marks the output as (known after apply).
However, the plan does not indicate resource recreation.
Observed Behavior:
Plan Summary:
Plan: 0 to add, 3 to change, 0 to destroy.
Expected Behavior:
When running terraform plan after importing resources that are already fully configured in the cloud (e.g., subnets and peering), Terraform should report no changes. The expected output should indicate that the infrastructure is fully in sync, such as:
Plan: 0 to add, 0 to change, 0 to destroy.
This behavior is critical because the resources are already provisioned and functioning correctly, and no further modifications are required. Any detected changes should only appear if there is a material difference between the Terraform configuration and the actual state of the resources in the cloud.
Environment:
Additional Context:
I reviewed the AzureRM 4.0 Upgrade Guide and did not find any recommendations or guidance regarding this behavior or the persistent API version updates in the type attribute.
The text was updated successfully, but these errors were encountered: