blob: 8d844d5d3a5b7514e91ce4fd3510c916c8f437d8 (
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
54
|
---
layout: "azuredevops"
page_title: "AzureDevops: azuredevops_agent_queue"
description: |-
Use this data source to access information about an existing Agent Queue within Azure DevOps.
---
# Data Source: azuredevops_agent_queue
Use this data source to access information about an existing Agent Queue within Azure DevOps.
## Example Usage
```hcl
resource "azuredevops_project" "example" {
name = "Example Project"
work_item_template = "Agile"
version_control = "Git"
visibility = "private"
description = "Managed by Terraform"
}
data "azuredevops_agent_queue" "example" {
project_id = azuredevops_project.example.id
name = "Example Agent Queue"
}
output "name" {
value = data.azuredevops_agent_queue.example.name
}
output "pool_id" {
value = data.azuredevops_agent_queue.example.agent_pool_id
}
```
## Argument Reference
The following arguments are supported:
- `project_id` - (Required) The Project Id.
- `name` - (Required) Name of the Agent Queue.
## Attributes Reference
The following attributes are exported:
- `id` - The id of the agent queue.
- `name` - The name of the agent queue.
- `project_id` - Project identifier to which the agent queue belongs.
- `agent_pool_id` - Agent pool identifier to which the agent queue belongs.
## Relevant Links
- [Azure DevOps Service REST API 6.0 - Agent Queues - Get](https://docs.microsoft.com/en-us/rest/api/azure/devops/distributedtask/queues/get?view=azure-devops-rest-6.0)
|