Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Provider produced inconsistent result after apply #650

Open
Danny-Cooke-CK opened this issue Oct 22, 2024 · 1 comment
Open

Error: Provider produced inconsistent result after apply #650

Danny-Cooke-CK opened this issue Oct 22, 2024 · 1 comment

Comments

@Danny-Cooke-CK
Copy link

We encountered an issue with our E2E testing on the AzureTRE

2024-10-22 11:27:18 [ INFO] True, deployment_failed, a2eddcd3-510e-49d0-8dd0-7c1066944450: Error message: Unable to find image '***.azurecr.io/tre-workspace-airlock-import-review@sha256:ed6adbe68074abcc1dae1bf1a48025d69d2eb805af9039fea4618140051fc250' locally ╷ │ Error: Provider produced inconsistent result after apply │ │ When applying changes to │ module.azure_monitor.azapi_resource.ampls_workspace, provider │ "provider["registry.terraform.io/azure/azapi"]" produced an unexpected │ new value: Root resource was present, but now absent. │ │ This is a bug in the provider, which should be reported in the provider's │ own issue tracker. ╵

the provider version is

azapi = {
  source  = "Azure/azapi"
  version = ">= 1.3.0"
}
@ms-henglu
Copy link
Member

Hi @Danny-Cooke-CK ,

Thank you for taking time to report this issue!

This error usually caused by the upstream API, after a successful PUT request to create the resource, the GET request returns 404 error. In the v2.0.1 release, we added a retry logic to handle this case, would you please try to use the v2.0.1? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants