How do I search using powershell on premise TFS ?
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Begin with the TFS 2017 Update 2 context, the PowerShell Invoke-RestMethod example, and the linked code-search-results reference. Determine whether the documented endpoint applies to on-premise TFS; done means providing an accurate on-premise usage path or documenting that it is unsupported.
Written by the indexing model from the issue text.
Description
I am running TFS 2017 on prem update 2
$tfsUrl = 'https://tfs:444/tfs'
$projectId = 'd18ff858-xxxxxxxx'
$teamId = '9907188a-xxxxxxxx'
$tfsRepos = "$tfsUrl/Common/$projectId/_apis/search/codesearchresults?api-version=4.1-preview.1"
$secureCredential = Get-Credential
$allResults = (Invoke-RestMethod -Uri $tfsRepos -Method Post -Credential $secureCredential).value
$allResults= $allResults | Select -first 20
I am getting this error
Invoke-RestMethod :
Page not found. - Microsoft Team Foundation Server
Reference ( Could not find TFS Api reference only for the VSTS one is there )
https://docs.microsoft.com/en-us/rest/api/vsts/search/code%20search%20results/fetch%20code%20search%20results
- Dominant language
- PowerShell
- Stars
- 57
- Forks
- 68
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/Code-Search
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
microsoft/Code-Search#122 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
microsoft/Code-Search#98 · 2 comments · 2 reactions ·
-
Difficulty 1/5 Under an hour Newbie friendliness 15/100
microsoft/Code-Search#97 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
microsoft/Code-Search#96 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 30/100
microsoft/Code-Search#95 · 1 comment ·
All issues in microsoft/Code-Search
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NVIDIA/gpu-operator#2955 ·
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
automated issue report
Difficulty 1/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
dsx-ai-factory/infra-controller#6694 ·
-
bug build
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
facebookincubator/velox#19143 ·