layout | page_title | description |
---|---|---|
azuredevops |
AzureDevops: azuredevops_agent_queue |
Use this data source to access information about an existing Agent Queue within Azure DevOps. |
Use this data source to access information about an existing Agent Queue within Azure DevOps.
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
}
The following arguments are supported:
-
project_id
- (Required) The Project Id. -
name
- (Required) Name of the Agent Queue.
The following attributes are exported:
-
id
- The id of the agent queue. -
name
- The name of the agent queue. -
project_id
- The ID of the Project to which the agent queue belongs. -
agent_pool_id
- The ID of the Agent pool to which the agent queue belongs.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minute) Used when retrieving the Agent Queue.