blob: 183048ebfc64f53f50a4a5faedce2b7f0300016a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
---
layout: "azuredevops"
page_title: "AzureDevops: azuredevops_agent_pool"
description: |-
Use this data source to access information about an existing Agent Pool within Azure DevOps.
---
# Data Source: azuredevops_agent_pool
Use this data source to access information about an existing Agent Pool within Azure DevOps.
## Example Usage
```hcl
data "azuredevops_agent_pool" "example" {
name = "Example Agent Pool"
}
output "name" {
value = data.azuredevops_agent_pool.example.name
}
output "pool_type" {
value = data.azuredevops_agent_pool.example.pool_type
}
output "auto_provision" {
value = data.azuredevops_agent_pool.example.auto_provision
}
output "auto_update" {
value = data.azuredevops_agent_pool.example.auto_update
}
```
## Argument Reference
The following arguments are supported:
- `name` - (Required) Name of the Agent Pool.
## Attributes Reference
The following attributes are exported:
`name` - The name of the agent pool
`pool_type` - Specifies whether the agent pool type is Automation or Deployment.
`auto_provision` - Specifies whether a queue should be automatically provisioned for each project collection.
`auto_update` - Specifies whether or not agents within the pool should be automatically updated.
## Relevant Links
- [Azure DevOps Service REST API 6.0 - Agent Pools - Get](https://docs.microsoft.com/en-us/rest/api/azure/devops/distributedtask/pools/get?view=azure-devops-rest-6.0)
|