azuredevops_group created in organization instead of project #542
Closed
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
- Terraform version is v1.1.6
- azuredevops provider version is 0.2.0
Affected Resource(s)
azuredevops_group
Terraform Configuration Files
locals {
custom_group_list = [
"Authorizers",
"Developers",
]
}
data "azuredevops_project" "project" {
name = var.project_name
}
resource "azuredevops_group" "custom_groups" {
for_each = toset(local.custom_group_list)
scope = data.azuredevops_project.project.id
display_name = each.key
description = each.key
}
Debug Output
Panic Output
Expected Behavior
Azure DevOps group should have been created in the project specified via the scope attribute.
Actual Behavior
Azure DevOps group was created at the organizational level, scope attribute is null.
Steps to Reproduce
terraform apply
Important Factoids
This works correctly in v0.1.8
https://github.com/microsoft/terraform-provider-azuredevops/releases/tag/v0.1.8
References
- #0000
Activity