-
Notifications
You must be signed in to change notification settings - Fork 299
Closed
Labels
Description
Community Note
- 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
Terraform (and Azure DevOps Provider) Version
Affected Resource(s)
azuredevops_group
Terraform Configuration Files
resource "azuredevops_group" "crush" {
scope = azuredevops_project.opsys.id
display_name = "Crush"
description = <<-EOF
Managed by TF
EOF
}
Debug Output
Panic Output
Expected Behavior
after importing an immediate apply should not recreate the resource do to scope being altered
Actual Behavior
tf plan shows that a scope is causing a forced replacement
Steps to Reproduce
import a project scoped group then tf plan it.
terraform apply
Important Factoids
Removing the scope stanza from TF makes the replace go away...so i think when refreshing state it's not checking the scope either as omitting the scope stanza probably should show a problem
modifying the state file with the scope makes the replacement go away too as expected.
References
gdud and ajhall