GetPools

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

Example Usage

using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;

class MyStack : Stack
{
    public MyStack()
    {
        var pools = Output.Create(AzureDevOps.Agent.GetPools.InvokeAsync());
        this.AgentPoolName = pools.Apply(pools => pools.AgentPools.Select(__item => __item.Name).ToList());
        this.AutoProvision = pools.Apply(pools => pools.AgentPools.Select(__item => __item.AutoProvision).ToList());
        this.PoolType = pools.Apply(pools => pools.AgentPools.Select(__item => __item.PoolType).ToList());
    }

    [Output("agentPoolName")]
    public Output<string> AgentPoolName { get; set; }
    [Output("autoProvision")]
    public Output<string> AutoProvision { get; set; }
    [Output("poolType")]
    public Output<string> PoolType { get; set; }
}

Coming soon!

import pulumi
import pulumi_azuredevops as azuredevops

pools = azuredevops.Agent.get_pools()
pulumi.export("agentPoolName", [__item["name"] for __item in pools.agent_pools])
pulumi.export("autoProvision", [__item["auto_provision"] for __item in pools.agent_pools])
pulumi.export("poolType", [__item["pool_type"] for __item in pools.agent_pools])
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";

const pools = azuredevops.Agent.getPools({});
export const agentPoolName = pools.then(pools => pools.agentPools.map(__item => __item.name));
export const autoProvision = pools.then(pools => pools.agentPools.map(__item => __item.autoProvision));
export const poolType = pools.then(pools => pools.agentPools.map(__item => __item.poolType));

Using GetPools

function getPools(opts?: InvokeOptions): Promise<GetPoolsResult>
function  get_pools(opts=None)
func GetPools(ctx *Context, opts ...InvokeOption) (*GetPoolsResult, error)
public static class GetPools {
    public static Task<GetPoolsResult> InvokeAsync(InvokeOptions? opts = null)
}

GetPools Result

The following output properties are available:

AgentPools List<Pulumi.AzureDevOps.Agent.Outputs.GetPoolsAgentPool>
Id string

The provider-assigned unique ID for this managed resource.

AgentPools []GetPoolsAgentPool
Id string

The provider-assigned unique ID for this managed resource.

agentPools GetPoolsAgentPool[]
id string

The provider-assigned unique ID for this managed resource.

agent_pools List[GetPoolsAgentPool]
id str

The provider-assigned unique ID for this managed resource.

Supporting Types

GetPoolsAgentPool

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

AutoProvision bool
Id int
Name string
PoolType string
AutoProvision bool
Id int
Name string
PoolType string
autoProvision boolean
id number
name string
poolType string
auto_provision bool
id float
name str
pool_type str

Package Details

Repository
https://github.com/pulumi/pulumi-azuredevops
License
Apache-2.0
Notes
This Pulumi package is based on the azuredevops Terraform Provider.