Skip to content

Commit bc18596

Browse files
committed
Update readme
1 parent 8fa4bf1 commit bc18596

File tree

2 files changed

+34
-4
lines changed

2 files changed

+34
-4
lines changed

AutomatedLab.Common/TeamFoundation/Public/Get-TfsAgentPool.ps1

+12-4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ function Get-TfsAgentPool
66
[string]
77
$InstanceName,
88

9+
[Parameter()]
10+
[string]
11+
$CollectionName = 'DefaultCollection',
12+
13+
[Parameter()]
14+
[string]
15+
$PoolName = '*',
16+
917
[ValidateRange(1, 65535)]
1018
[uint32]
1119
$Port,
@@ -28,11 +36,11 @@ function Get-TfsAgentPool
2836
$requestUrl = if ($UseSsl) {'https://' } else {'http://'}
2937
$requestUrl += if ( $Port -gt 0)
3038
{
31-
'{0}{1}/_apis/distributedtask/pools' -f $InstanceName, ":$Port"
39+
'{0}{1}/{2}/_apis/distributedtask/pools' -f $InstanceName, ":$Port", $CollectionName
3240
}
3341
else
3442
{
35-
'{0}/_apis/distributedtask/pools' -f $InstanceName
43+
'{0}/{1}/_apis/distributedtask/pools' -f $InstanceName, $CollectionName
3644
}
3745

3846
if ($ApiVersion)
@@ -67,10 +75,10 @@ function Get-TfsAgentPool
6775

6876
if ($result.value)
6977
{
70-
return $result.value
78+
return $result.value | Where-Object -Property Name -like $PoolName
7179
}
7280
elseif ($result)
7381
{
74-
return $result
82+
return $result | Where-Object -Property Name -like $PoolName
7583
}
7684
}

README.md

+22
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,25 @@ Our PKI cmdlets make configurations, certificate requests and duplicating templa
7272
- Publish-CaTemplate: Publish a template
7373
- Request-Certificate: Request a new certificate from the CA
7474
- Test-CaTemplate: Uses certutil to check if a template exists
75+
76+
## CI/CD (Team Foundation Server, Azure DevOps (Server))
77+
78+
Our CI/CD cmdlets make interaction with Team Foundation Server starting with 2015 a breeze. Just be sure
79+
to select the API version matching your edition of TFS or Azure DevOps.
80+
81+
- Get-TfsAccessTokenString: Get the Authorization header string for your PAT
82+
- Get-TfsAgentPool: Retrieve TFS/Azure DevOps agent pools for an instance
83+
- Get-TfsAgentQueue: Retrieve a TFS/Azure DevOps Project's agent queue
84+
- Get-TfsBuildDefinition: Retrieve a build definition
85+
- Get-TfsBuildDefinitionTemplate: Retrieve the available build templates of a project
86+
- Get-TfsBuildStep: List all possible build steps to use in a build definition
87+
- Get-TfsGitRepository: Get the GIT repo of a project
88+
- Get-TfsProcessTemplate: Get all possible process templates
89+
- Get-TfsProject: Get a list of Projects or an individual project
90+
- Get-TfsReleaseDefinition: Retrieve a release definition
91+
- Get-TfsReleaseStep: Get a list of possible release steps
92+
- New-TfsAgentQueue: Create a new agent queue from a pool of agents
93+
- New-TfsBuildDefinition: Create a new build pipeline
94+
- New-TfsProject: Create a new team project
95+
- New-TfsReleaseDefinition: Create a new release pipeline
96+
- Set-TfsProject: Modify a project configuration

0 commit comments

Comments
 (0)