Skip to content

Add lastConnectivityTime to volatile fields list#1062

Merged
ms-henglu merged 2 commits intoAzure:mainfrom
ms-henglu:fix/add-lastConnectivityTime-to-volatile-fields
Mar 5, 2026
Merged

Add lastConnectivityTime to volatile fields list#1062
ms-henglu merged 2 commits intoAzure:mainfrom
ms-henglu:fix/add-lastConnectivityTime-to-volatile-fields

Conversation

@ms-henglu
Copy link
Member

Description

Add lastConnectivityTime to the volatile fields list to prevent Provider produced inconsistent result after apply errors.

Fix

The lastConnectivityTime field is returned by Azure HybridContainerService connected cluster resources and changes frequently (e.g., between the create/update call and the subsequent read). Since this field is not in the volatileFieldList(), it gets included in the default output, causing Terraform to detect an inconsistency between the planned and actual values.

This PR adds lastConnectivityTime to the volatile fields list alongside other time-related fields that are already excluded.

Fixes #1061

This fixes an issue where the provider produces an inconsistent result
after apply because the lastConnectivityTime field (returned by Azure
HybridContainerService connected cluster resources) changes between the
create/update and the subsequent read.

Fixes Azure#1061
@ms-henglu ms-henglu merged commit 2bc5b32 into Azure:main Mar 5, 2026
10 checks passed
@ms-henglu ms-henglu deleted the fix/add-lastConnectivityTime-to-volatile-fields branch March 5, 2026 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error: Provider produced inconsistent result after apply

1 participant