MethodsAndPractices / vsteam

PowerShell module for accessing Azure DevOps Services and Azure DevOps Server (formerly VSTS or TFS)
https://methodsandpractices.github.io/vsteam-docs/
MIT License
442 stars 155 forks source link

Set-VSTeamDefaultProject fails if project is beyond the first 100 projects #443

Closed jackfruhecolab closed 2 years ago

jackfruhecolab commented 2 years ago

Steps to reproduce

get-vsteamproject -id "myproject" #works
set-vsteamdefaultproject -project "myproject" #fails 
Cannot validate argument on parameter 'Project'. 'myproject' is invalid

Expected behavior

expected to work.

Actual behavior

Environment data

OS

Server

$vstermverstiontable is empty

> Get-VSTeamAPIVersion
Billing                     : 5.1-preview.1
Build                       : 5.1
Core                        : 5.1
DistributedTask             : 6.0-preview
DistributedTaskReleased     : 5.1
ExtensionsManagement        : 6.0-preview
Git                         : 5.1
Graph                       : 6.0-preview
HierarchyQuery              : 5.1-preview
MemberEntitlementManagement : 6.0-preview
Packaging                   : 6.0-preview
Pipelines                   : 5.1-preview
Policy                      : 5.1
Processes                   : 6.0-preview
Release                     : 5.1
ServiceEndpoints            : 5.0-preview
TaskGroups                  : 6.0-preview
Tfvc                        : 5.1
VariableGroups              : 5.1-preview.1
Version                     : AzD
> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.19041.1320
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.1320
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
SebastianSchuetze commented 2 years ago

Hi @jackfruhecolab please try Set-VSTeamDefaultProjectCount -Count 500 before calling any function that is using a project specific parameter.

SebastianSchuetze commented 2 years ago

See #444 for closing reason.