You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The azuredevops_branch_policy_auto_reviewers resource has an auto_reviewer_ids setting. This setting doesn't work with the user.descriptor field like many of the other resources do in the provider. When using a descriptor the output complains that the descriptor can't be turned in to a System.GUID type. The azuredevops_users data type provides an origin_id field, but using this value throws a GUID's must be the identity of an individual or a group. error. Can the auto_reviewer_ids be updated to accept descriptors?
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
Error creating policy in Azure DevOps: TF402457: The settings for this policy are not correctly formatted. Error: Error converting value "" to type 'System.Guid'. Path 'requiredReviewerIds[0]', line 6, position 151.
Expected Behavior
The auto reviewer should have been added to the branch policy
Actual Behavior
Error creating policy in Azure DevOps: TF402457: The settings for this policy are not correctly formatted. Error: Error converting value "" to type 'System.Guid'. Path 'requiredReviewerIds[0]', line 6, position 151.
Steps to Reproduce
terraform apply
#0000
The text was updated successfully, but these errors were encountered:
Hi @skarlupkaazuredevops_users.origin_id is the origin user ID, if user is from AAD, the origin_id is AAD ID, devops cannot find the user by AAD ID. Auto reviews IDs cannot use descriptor, it is limited to GUID by service. In your scenario, you can use the group as the reviews.
Example:
The azuredevops_branch_policy_auto_reviewers resource has an auto_reviewer_ids setting. This setting doesn't work with the user.descriptor field like many of the other resources do in the provider. When using a descriptor the output complains that the descriptor can't be turned in to a System.GUID type. The azuredevops_users data type provides an origin_id field, but using this value throws a
GUID's must be the identity of an individual or a group.
error. Can the auto_reviewer_ids be updated to accept descriptors?Community Note
Terraform (and Azure DevOps Provider) Version
Terraform v0.14.3
Affected Resource(s)
azuredevops_branch_policy_auto_reviewers
Terraform Configuration Files
Debug Output
Error creating policy in Azure DevOps: TF402457: The settings for this policy are not correctly formatted. Error: Error converting value "" to type 'System.Guid'. Path 'requiredReviewerIds[0]', line 6, position 151.
Expected Behavior
The auto reviewer should have been added to the branch policy
Actual Behavior
Error creating policy in Azure DevOps: TF402457: The settings for this policy are not correctly formatted. Error: Error converting value "" to type 'System.Guid'. Path 'requiredReviewerIds[0]', line 6, position 151.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: