Pool

Manages an agent pool within Azure DevOps.

Example Usage

using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;

class MyStack : Stack
{
    public MyStack()
    {
        var pool = new AzureDevOps.Agent.Pool("pool", new AzureDevOps.Agent.PoolArgs
        {
            AutoProvision = false,
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-azuredevops/sdk/go/azuredevops/Agent"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        pool, err := Agent.NewPool(ctx, "pool", &Agent.PoolArgs{
            AutoProvision: pulumi.Bool(false),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_azuredevops as azuredevops

pool = azuredevops.agent.Pool("pool", auto_provision=False)
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";

const pool = new azuredevops.Agent.Pool("pool", {
    autoProvision: false,
});

Create a Pool Resource

new Pool(name: string, args?: PoolArgs, opts?: CustomResourceOptions);
def Pool(resource_name, opts=None, auto_provision=None, name=None, pool_type=None, __props__=None);
func NewPool(ctx *Context, name string, args *PoolArgs, opts ...ResourceOption) (*Pool, error)
public Pool(string name, PoolArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args PoolArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args PoolArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args PoolArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Pool Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Pool resource accepts the following input properties:

AutoProvision bool

Specifies whether or not a queue should be automatically provisioned for each project collection. Defaults to false.

Name string

The name of the agent pool.

PoolType string

Specifies whether the agent pool type is Automation or Deployment. Defaults to automation.

AutoProvision bool

Specifies whether or not a queue should be automatically provisioned for each project collection. Defaults to false.

Name string

The name of the agent pool.

PoolType string

Specifies whether the agent pool type is Automation or Deployment. Defaults to automation.

autoProvision boolean

Specifies whether or not a queue should be automatically provisioned for each project collection. Defaults to false.

name string

The name of the agent pool.

poolType string

Specifies whether the agent pool type is Automation or Deployment. Defaults to automation.

auto_provision bool

Specifies whether or not a queue should be automatically provisioned for each project collection. Defaults to false.

name str

The name of the agent pool.

pool_type str

Specifies whether the agent pool type is Automation or Deployment. Defaults to automation.

Outputs

All input properties are implicitly available as output properties. Additionally, the Pool resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing Pool Resource

Get an existing Pool resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: PoolState, opts?: CustomResourceOptions): Pool
static get(resource_name, id, opts=None, auto_provision=None, name=None, pool_type=None, __props__=None);
func GetPool(ctx *Context, name string, id IDInput, state *PoolState, opts ...ResourceOption) (*Pool, error)
public static Pool Get(string name, Input<string> id, PoolState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

AutoProvision bool

Specifies whether or not a queue should be automatically provisioned for each project collection. Defaults to false.

Name string

The name of the agent pool.

PoolType string

Specifies whether the agent pool type is Automation or Deployment. Defaults to automation.

AutoProvision bool

Specifies whether or not a queue should be automatically provisioned for each project collection. Defaults to false.

Name string

The name of the agent pool.

PoolType string

Specifies whether the agent pool type is Automation or Deployment. Defaults to automation.

autoProvision boolean

Specifies whether or not a queue should be automatically provisioned for each project collection. Defaults to false.

name string

The name of the agent pool.

poolType string

Specifies whether the agent pool type is Automation or Deployment. Defaults to automation.

auto_provision bool

Specifies whether or not a queue should be automatically provisioned for each project collection. Defaults to false.

name str

The name of the agent pool.

pool_type str

Specifies whether the agent pool type is Automation or Deployment. Defaults to automation.

Package Details

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