Closed ncook-hxgn closed 3 months ago
@ncook-hxgn data.azuredevops_users
returns a user collection, you cannot get the user descriptor directly for azuredevops_users
. You can get the user descriptor by tolist(data.azuredevops_users.admin.users)[0].descriptor
Hi @xuzhang3, when I try to get the descriptor as you described, I get the following error message:
The given key does not identify an element in this collection value: the │ collection has no elements.
But I can see that the data is actually returning the id:
module.ado_management.data.azuredevops_users.dfwb_draft_users: Read complete after 1s [id=users#2jm......]
@philippfrenzel this is a bug, will be fixed in the next version.
Community Note
Terraform (and Azure DevOps Provider) Version
Affected Resource(s)
azuredevops_users
Terraform Configuration Files
Debug Output
Terraform plan is happy. Terraform apply fails:
Panic Output
Expected Behavior
attribute is documented as supported: https://registry.terraform.io/providers/microsoft/azuredevops/latest/docs/data-sources/users#descriptor
Actual Behavior
Steps to Reproduce
terraform apply
a.var.ado_user
is an email address for a valid azure devops organisation user b.var.organisation
is the organisation nameImportant Factoids
None
References
0000