Skip to content

Latest commit

 

History

History
67 lines (42 loc) · 1.92 KB

agent_pools.html.markdown

File metadata and controls

67 lines (42 loc) · 1.92 KB
layout page_title description
azuredevops
AzureDevops: azuredevops_agent_pools
Use this data source to access information about existing Agent Pools within Azure DevOps.

Data Source: azuredevops_agent_pools

Use this data source to access information about existing Agent Pools within Azure DevOps.

Example Usage

data "azuredevops_agent_pools" "example" {
}

output "agent_pool_name" {
  value = data.azuredevops_agent_pools.example.agent_pools.*.name
}

output "auto_provision" {
  value = data.azuredevops_agent_pools.example.agent_pools.*.auto_provision
}

output "auto_update" {
  value = data.azuredevops_agent_pools.example.agent_pools.*.auto_update
}

output "pool_type" {
  value = data.azuredevops_agent_pools.example.agent_pools.*.pool_type
}

Argument Reference

This data source has no arguments

Attributes Reference

The following attributes are exported:

  • agent_pools - An agent_pools blocks as documented below. A list of existing agent pools in your Azure DevOps Organization with the following details about every agent pool:

An agent_pools block supports the following:

  • id - The ID of the agent pool.

  • name - The name of the agent pool.

  • pool_type - Specifies whether the agent pool type is Automation or Deployment.

  • auto_provision - Specifies whether or not 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

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minute) Used when retrieving the Agent Pools.