Permissions issue when recreating azuredevops_git_repository
in another project
#1080
Labels
azuredevops_git_repository
in another project
#1080
Community Note
Terraform (and Azure DevOps Provider) Version
Affected Resource(s)
azuredevops_git_repository
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
I should be able to recreate the existing repository in another project if the permissions are the same in both projects
Actual Behavior
Provider deletes the repository of the old project, but when creating the repository in the new project I get this error:
TF401027: You need the Git 'ManageAdvSecScanning' permission to perform this action. Details: identity 'Build\<project_collection_build_service_id>', scope 'repository'.
. When I clear the state and run Terraform, a new repository is created and the mentioned error does not appear, which proves that no additional permissions are required beyond those currently granted.Steps to Reproduce
terraform apply
terraform apply
Important Factoids
I noticed that during this operation, despite deleting the old repository from Azure DevOps, Terraform does not update the state in case of a problem, which causes another problem that I mentioned here
References
The text was updated successfully, but these errors were encountered: