-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Provider produced inconsistent result after apply: azurerm_management_lock #23028
Comments
Thanks for raising this issue. Seems I can't repro this issue with below tf config that is similar with yours. Could you try below tf config to see if the issue still exists? Thanks.
|
Hello, same issue here, i couldn't say since when, we are using:
Which results in the following error during the apply:
|
FYI, just did the test again, and in fact the constraint on the provider version Edit1: Also tried the 3.69 which worked without issue btw. |
We run version 3.65 and run into the issue multiple times in our validation tests. We have collected the tf debug log which belongs to the test, if this helps to understand the root cause. MSFT support pointed us to you to work on a solution. |
tf.log.zip |
FWIW, the workaround for me is to manually delete the log and run terraform apply again; the second attempt succeeds. |
We were seeing this on provider version 3.72.0. Pretty sure it was fixed by #23345 (part of 3.75.0). No issues for us after updating to that provider version. Management locks also take significantly longer to create now - close to 2 minutes now compared to a few seconds before. That's not a problem, just more evidence that the provider is properly waiting for the resource to finish creating before returning. |
Thanks for taking the time to submit this issue. It looks like this has been resolved as of #23345. As such, I am going to mark this issue as closed. If that is not the case, please provide additional information including the version in which you are still experiencing this issue, thanks! |
Hello Team, we are getting the above error recently. Codeterraform { Resources are created in the azure portal but not sure code builds are failing. output│ Error: Provider produced inconsistent result after apply |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Is there an existing issue for this?
Community Note
Terraform Version
1.5.5
AzureRM Provider Version
3.70.0
Affected Resource(s)/Data Source(s)
azurerm_management_lock
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The lock should be created and written in the remote backend.
Actual Behaviour
The resource is created but not gathered in the statefile and thus not known by terraform.
Steps to Reproduce
terraform init
terraform plan
terraform apply
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: