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
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Overview of issue
Hi there, if I manually delete a Build Validation created by Terraform it never detects that the build validation has been deleted, and never re-creates the build validation.
Terraform should detect that the Build Validation has been manually deleted and re-create it.
Actual Behavior
State is refreshed and no changes are detected.
terraform apply
Acquiring state lock. This may take a few moments......
azuredevops_branch_policy_build_validation.master_pr: Refreshing state... [id=18]
...
Apply complete! Resources:0 added, 0 changed, 0 destroyed.
Releasing state lock. This may take a few moments...
Steps to Reproduce
terraform apply
Manually delete the build validation in Azure DevOps.
Run terraform plan or terraform apply again and there are no changes detected.
Important Factoids
I tried to taint the resource in Terraform and got the following error that the resource does not exist:
azuredevops_branch_policy_build_validation.master_pr: Destroying... [id=18]
Error: Error deleting policy in Azure DevOps: The policy configuration with ID '18' and revision '3' does not exist.
References
Kind regards,
The text was updated successfully, but these errors were encountered:
tullydwyer
changed the title
Provider not detecting resource has been deleted - azuredevops_branch_policy_build_validation
Provider not detecting azuredevops_branch_policy_build_validation has been deleted
Mar 18, 2021
Community Note
Overview of issue
Hi there, if I manually delete a Build Validation created by Terraform it never detects that the build validation has been deleted, and never re-creates the build validation.
Terraform (and Azure DevOps Provider) Version
Affected Resource(s)
azuredevops_branch_policy_build_validation
Terraform Configuration Files
Debug Output
Client project, can't provide debug.
Panic Output
Expected Behavior
Terraform should detect that the Build Validation has been manually deleted and re-create it.
Actual Behavior
State is refreshed and no changes are detected.
Steps to Reproduce
terraform apply
terraform plan
orterraform apply
again and there are no changes detected.Important Factoids
I tried to taint the resource in Terraform and got the following error that the resource does not exist:
References
Kind regards,
The text was updated successfully, but these errors were encountered: