terraform-provider-azuredevops
terraform-provider-azuredevops copied to clipboard
Unable to setup approvers using azuredevops_resource_authorization
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
TF 1.5.0 Azure DevOps provider 0.6.0
Affected Resource(s)
-
azuredevops_resource_authorization
Terraform Configuration Files
# # Always errors out with 'The following identities are invalid'
resource "azuredevops_check_approval" "prd_approval" {
project_id = azuredevops_project.azdoprojects[demo].id
target_resource_id = azuredevops_environment.env_prd[demo].id
target_resource_type = "environment"
requester_can_approve = false
minimum_required_approvers = 1
approvers = [
azuredevops_group.example.origin_id,
]
}
' azuredevops_group.example.origin_id,' is the GUID of a group I want to add.
Debug Output
Panic Output
Expected Behavior
An AAD group be added to the environment approvers
Actual Behavior
PLAN works fine, but APPLY fails with: │ Error: error]Terraform command 'apply' failed with exit code '1'. ##[error]╷failed creating check, project ID: VALID PROJECT GUID. Error: The following identities are invalid: ' VALID GROUP GUID'. │ Parameter name: identities
Steps to Reproduce
-
terraform apply
Important Factoids
References
- #0000