Closed jackfruhecolab closed 2 years ago
Hi @jackfruhecolab please try Set-VSTeamDefaultProjectCount -Count 500
before calling any function that is using a project specific parameter.
It is not a bug. We try to prefill the project list when using the project parameter. And this is by default 100. So if you have more, then you need to set the new limit beforehand.
Hi @jackfruhecolab does this hint fixes it for you? I would close it for now and also the other one since it is the same solution.
If you still have problems you can comment on it and we will check again.
Steps to reproduce
Expected behavior
Actual behavior
Environment data
OS
Server
$vstermverstiontable is empty
Special Note:
I see a constant theme in the VSTeam commands: If there are more than 100 projects, and the project being worked on is past the first 100, the command fails. I can only assume that the PS commands call the API to fetch a project list, which returns the first 100, and then the PS command filters from there.
Get-VSTeamProject -ID "projectname" works, and returns a bunch of info including the GUID of the project and the URL
Is there a way that all these commands impacted by the 100 limit could optionally take $project.id or $project.url (and have the cmdlet use that to directly address the project instead of pulling the list of projects and then filtering?)