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 exact nature of the command doesn't matter, all commands with -ProjectName are affected.
This has to do with the way project list validation works - it calls Get-VSTeamProject, and that one has an implicit limit of 100 records. Can be overridden with the -Top parameter, but the cache logic doesn't do that.
There is a workaround: set the env variable TEAM_PROJECTCOUNT to a high number.
Expected behavior
I expected that the command would not error out. As long as it does, I'd expect an error message that points at the root cause.
Actual behavior?
I had the following actual outcome: error,
Add-VSTeamVariableGroup : Cannot validate argument on parameter 'ProjectName'. 'TheLastProject' is invalid
Steps to reproduce
Create 101 projects in a collection. Remember which one was the last one created.
The exact nature of the command doesn't matter, all commands with -ProjectName are affected.
This has to do with the way project list validation works - it calls Get-VSTeamProject, and that one has an implicit limit of 100 records. Can be overridden with the -Top parameter, but the cache logic doesn't do that.
There is a workaround: set the env variable
TEAM_PROJECTCOUNT
to a high number.Expected behavior
I expected that the command would not error out. As long as it does, I'd expect an error message that points at the root cause.
Actual behavior?
I had the following actual outcome: error,
On Which OS have you tried it?
Windows
What was your server version?
other (specify)
Other server version
Azure DevOps Services 2022
Log output of used API
Log output of $PSVersionTable
The text was updated successfully, but these errors were encountered: