You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting this error when creating a role assignment. It is possible that a retry had occurred but I cannot see why the updatedOn is of any use to the practitioner. Should we ignore it? @ms-henglu
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to module.alz.azapi_resource.policy_role_assignments["4eb5e902-cf89-5342-9592-d66dfcfaee49"], provider
│ "provider[\"registry.terraform.io/azure/azapi\"]" produced an unexpected new value: .output.properties.updatedOn: was
│ cty.StringVal("2024-11-13T22:45:31.1232261Z"), but now cty.StringVal("2024-11-14T10:21:59.6845579Z").
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
This error also happens on a re-plan, once the resource has been created.
In v2.0.1, the azapi_resource exports readonly properties in output by default. In above case, the readonly properties include properties.updatedOn, and every update will change its value.
Use the response_export_values to specify the export values.
And would you please share more details about the plan changes when you encountered the "Error: Provider produced inconsistent result after apply".
I guess you added some configuration after the creation, for example, adding a "retry" or timeout configuration, and these configs didn't trigger the output to be computed again.
Getting this error when creating a role assignment. It is possible that a retry had occurred but I cannot see why the
updatedOn
is of any use to the practitioner. Should we ignore it? @ms-hengluThis error also happens on a re-plan, once the resource has been created.
Resource config
Workaround
Adding
output.properties.updatedOn
to lifecycle ignore_changes seems to bypass the issue.The text was updated successfully, but these errors were encountered: