Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 1.46 KB

agent_queue.html.markdown

File metadata and controls

55 lines (41 loc) · 1.46 KB
layout page_title description
azuredevops
AzureDevops: azuredevops_agent_queue
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

# Azure DevOps project
resource "azuredevops_project" "project" {
  name       = "Sample Project"
  work_item_template = "Agile"
  version_control    = "Git"
  visibility         = "private"
  description        = "Managed by Terraform"
}
data "azuredevops_agent_queue" "queue" {
  project_id = azuredevops_project.project.id 
  name = "Sample Agent Queue"
}

output "name" {
  value = data.azuredevops_agent_queue.queue.name
}

output "pool_id" {
  value = data.azuredevops_agent_queue.queue.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