Azure DevOps v3.10.2 published on Wednesday, Oct 22, 2025 by Pulumi
azuredevops.getPool
Start a Neo task
Explain and create an azuredevops.getPool resource
Use this data source to access information about an existing Agent Pool within Azure DevOps.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const example = azuredevops.getPool({
name: "Example Agent Pool",
});
export const name = example.then(example => example.name);
export const poolType = example.then(example => example.poolType);
export const autoProvision = example.then(example => example.autoProvision);
export const autoUpdate = example.then(example => example.autoUpdate);
import pulumi
import pulumi_azuredevops as azuredevops
example = azuredevops.get_pool(name="Example Agent Pool")
pulumi.export("name", example.name)
pulumi.export("poolType", example.pool_type)
pulumi.export("autoProvision", example.auto_provision)
pulumi.export("autoUpdate", example.auto_update)
package main
import (
"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := azuredevops.LookupPool(ctx, &azuredevops.LookupPoolArgs{
Name: "Example Agent Pool",
}, nil)
if err != nil {
return err
}
ctx.Export("name", example.Name)
ctx.Export("poolType", example.PoolType)
ctx.Export("autoProvision", example.AutoProvision)
ctx.Export("autoUpdate", example.AutoUpdate)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
return await Deployment.RunAsync(() =>
{
var example = AzureDevOps.GetPool.Invoke(new()
{
Name = "Example Agent Pool",
});
return new Dictionary<string, object?>
{
["name"] = example.Apply(getPoolResult => getPoolResult.Name),
["poolType"] = example.Apply(getPoolResult => getPoolResult.PoolType),
["autoProvision"] = example.Apply(getPoolResult => getPoolResult.AutoProvision),
["autoUpdate"] = example.Apply(getPoolResult => getPoolResult.AutoUpdate),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.AzuredevopsFunctions;
import com.pulumi.azuredevops.inputs.GetPoolArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = AzuredevopsFunctions.getPool(GetPoolArgs.builder()
.name("Example Agent Pool")
.build());
ctx.export("name", example.name());
ctx.export("poolType", example.poolType());
ctx.export("autoProvision", example.autoProvision());
ctx.export("autoUpdate", example.autoUpdate());
}
}
variables:
example:
fn::invoke:
function: azuredevops:getPool
arguments:
name: Example Agent Pool
outputs:
name: ${example.name}
poolType: ${example.poolType}
autoProvision: ${example.autoProvision}
autoUpdate: ${example.autoUpdate}
Relevant Links
Using getPool
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPool(args: GetPoolArgs, opts?: InvokeOptions): Promise<GetPoolResult>
function getPoolOutput(args: GetPoolOutputArgs, opts?: InvokeOptions): Output<GetPoolResult>def get_pool(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPoolResult
def get_pool_output(name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPoolResult]func LookupPool(ctx *Context, args *LookupPoolArgs, opts ...InvokeOption) (*LookupPoolResult, error)
func LookupPoolOutput(ctx *Context, args *LookupPoolOutputArgs, opts ...InvokeOption) LookupPoolResultOutput> Note: This function is named LookupPool in the Go SDK.
public static class GetPool
{
public static Task<GetPoolResult> InvokeAsync(GetPoolArgs args, InvokeOptions? opts = null)
public static Output<GetPoolResult> Invoke(GetPoolInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPoolResult> getPool(GetPoolArgs args, InvokeOptions options)
public static Output<GetPoolResult> getPool(GetPoolArgs args, InvokeOptions options)
fn::invoke:
function: azuredevops:index/getPool:getPool
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Name of the Agent Pool.
- Name string
- Name of the Agent Pool.
- name String
- Name of the Agent Pool.
- name string
- Name of the Agent Pool.
- name str
- Name of the Agent Pool.
- name String
- Name of the Agent Pool.
getPool Result
The following output properties are available:
- Auto
Provision bool - Specifies whether a queue should be automatically provisioned for each project collection.
- Auto
Update bool - Specifies whether or not agents within the pool should be automatically updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the agent pool
- Pool
Type string - Specifies whether the agent pool type is Automation or Deployment.
- Auto
Provision bool - Specifies whether a queue should be automatically provisioned for each project collection.
- Auto
Update bool - Specifies whether or not agents within the pool should be automatically updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the agent pool
- Pool
Type string - Specifies whether the agent pool type is Automation or Deployment.
- auto
Provision Boolean - Specifies whether a queue should be automatically provisioned for each project collection.
- auto
Update Boolean - Specifies whether or not agents within the pool should be automatically updated.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the agent pool
- pool
Type String - Specifies whether the agent pool type is Automation or Deployment.
- auto
Provision boolean - Specifies whether a queue should be automatically provisioned for each project collection.
- auto
Update boolean - Specifies whether or not agents within the pool should be automatically updated.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the agent pool
- pool
Type string - Specifies whether the agent pool type is Automation or Deployment.
- auto_
provision bool - Specifies whether a queue should be automatically provisioned for each project collection.
- auto_
update bool - Specifies whether or not agents within the pool should be automatically updated.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the agent pool
- pool_
type str - Specifies whether the agent pool type is Automation or Deployment.
- auto
Provision Boolean - Specifies whether a queue should be automatically provisioned for each project collection.
- auto
Update Boolean - Specifies whether or not agents within the pool should be automatically updated.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the agent pool
- pool
Type String - Specifies whether the agent pool type is Automation or Deployment.
Package Details
- Repository
- Azure DevOps pulumi/pulumi-azuredevops
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azuredevopsTerraform Provider.
