Hello Team,
I have stuck at one point.Below is my variable file which list of user.
azureUsersAccessList = [
"whiz.gen@c.io",
"ar.t@c.io"
]
Now i need to fetch the descriptor id for these users, using data source as mentioned below
data "azuredevops_users" "azure_user_descriptor_id" {
for_each = toset(var.azureUsersAccessList)
principal_name = each.value
}
But when i run it and try to see the output.i can only see one id…i add the id of above to into a list format as this need to passed into below resource block
resource "azuredevops_team_members" "example-team-members" {
project_id = data.azuredevops_project.azure_project_id.id
team_id = azuredevops_team.azure_team_creation.id
mode = "add"
members = ["member_id_descriptor","member_id_descriptor"] -- this where the id need come-in in list format
depends_on = [
data.azuredevops_users.azure_user_descriptor_id,
azuredevops_team.azure_team_creation
]
}
Can anyone please let me know how it can be done?
Would be really thankful