Skip to content

AzDoAgentPool

github-actions[bot] edited this page Aug 19, 2026 · 4 revisions

Parameters

Parameter Attribute DataType Description Allowed Values
PoolName Key System.String
AutoProvision Write System.Boolean
AutoUpdate Write System.Boolean
Ensure Write Ensure Present, Absent
IsHosted Write System.Boolean
PoolType Write System.String automation, deployment
LookupResult Read System.Collections.Hashtable

Description

Examples

Example 1

Configuration Example {
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'
    node localhost {
        AzDoAgentPool 'AddAgentPool' { Ensure='Present'; PoolName='MyAgentPool'; PoolType='automation'; AutoProvision=$false; AutoUpdate=$true }
    }
}

Example 2

Configuration Example {
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'
    node localhost {
        AzDoAgentPool 'UpdateAgentPool' { Ensure='Present'; PoolName='MyAgentPool'; PoolType='automation'; AutoProvision=$true; AutoUpdate=$true }
    }
}

Example 3

Configuration Example {
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'
    node localhost {
        AzDoAgentPool 'RemoveAgentPool' { Ensure='Absent'; PoolName='MyAgentPool' }
    }
}

Commands

Resources

Clone this wiki locally