-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correctly return project information created when executing az devops project create command #1352
Comments
I am also running into this.
I am thinking this might be a permissions race condition. I personally have access to all projects, but the Build Service does not. As part of the project creation, the Build Service becomes admin of the project, but perhaps the "get project details" request gets sent before admin privileges are rolled out. $env:SYSTEM_ACCESSTOKEN | az devops login --only-show-errors
az devops project list --query "value[?name == 'odg-test4']"
az devops project create --name odg-test4 --description 'asdasd sdfsdfg' --verbose --debug
|
The expected behavior of the az devops project create command is to return project information.
However, the az devops project create command sporadically returns a VS800075 error. Even when VS800075 is returned, the project is created normally.
VS800075: The project with id 'vstfs:///Classification/TeamProject/' does not exist, or you do not have permission to access it.
We believe this is because the REST API for project creation running inside the az devops project create command immediately returns a Status code 202.
azure-devops-cli-extension/azure-devops/azext_devops/dev/team/project.py
Line 75 in 7fc9bfc
When status code 202 is returned, project creation is in progress, and if you try to get project information in this state, status code 404 error will be returned, and then VS800075 will occur.
azure-devops-cli-extension/azure-devops/azext_devops/dev/team/project.py
Line 83 in 7fc9bfc
[Debug logs]
The text was updated successfully, but these errors were encountered: