Open ncastrocosta opened 1 year ago
Terraform v1.5.4 on linux_amd64
azuredevops provider version: 0.9.1
azuredevops_project
data "azuredevops_project" "myproject" { name = "myproject" }
On plan execution, it was expected the data source to be able to read the project details.
The following error message:
Error: Error flattening project: Error looking up template by ID: Request returned status: 401 Unauthorized
Although it has the "401 Unauthorized" message, I'm able to read the project using the azuredevops_projects data source.
azuredevops_projects
terraform plan
@ncastrocosta The PAT need the permissions to work item template.
Adding read permission to the PAT at the Work Items scope works for me.
Work Items
Community Note
Terraform (and Azure DevOps Provider) Version
Terraform v1.5.4 on linux_amd64
azuredevops provider version: 0.9.1
Affected Resource(s)
azuredevops_project
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
On plan execution, it was expected the data source to be able to read the project details.
Actual Behavior
The following error message:
Error: Error flattening project: Error looking up template by ID: Request returned status: 401 Unauthorized
Although it has the "401 Unauthorized" message, I'm able to read the project using the
azuredevops_projects
data source.Steps to Reproduce
terraform plan
Important Factoids
References