-
Notifications
You must be signed in to change notification settings - Fork 0
AzDoAgentPool
Michael Zanatta edited this page Aug 18, 2026
·
4 revisions
AzDoAgentPool [string] #ResourceName
{
PoolName = [String]$PoolName
[ PoolType = [String] {'automation', 'deployment'} ]
[ AutoProvision = [Boolean]$AutoProvision ]
[ AutoUpdate = [Boolean]$AutoUpdate ]
[ Ensure = [String] {'Present', 'Absent'} ]
}- PoolName: The name of the agent pool. This property is mandatory and serves as the key property for the resource.
-
PoolType: The type of agent pool. Valid values are
automationanddeployment. Defaults toautomation. -
AutoProvision: Whether to automatically provision the agent pool to new projects. Defaults to
$false. -
AutoUpdate: Whether to automatically update agents in the pool. Defaults to
$true. -
Ensure: Specifies whether the agent pool should exist. Valid values are
PresentandAbsent.
This resource manages Azure DevOps agent pools at the organization level. Agent pools provide the infrastructure for running pipeline jobs. Pools can be shared across multiple projects.
Configuration ExampleConfig {
Import-DscResource -ModuleName 'AzureDevOpsDscNative'
Node localhost {
AzDoAgentPool AddAgentPool {
Ensure = 'Present'
PoolName = 'MyAgentPool'
PoolType = 'automation'
AutoProvision = $false
AutoUpdate = $true
}
}
}
Start-DscConfiguration -Path ./ExampleConfig -Wait -Verbose# Return the current configuration for AzDoAgentPool
$properties = @{
PoolName = 'MyAgentPool'
}
Invoke-DscResource -Name 'AzDoAgentPool' -Method Get -Property $properties -ModuleName 'AzureDevOpsDscNative'parameters: {}
variables: {
PoolName: MyAgentPool
}
resources:
- name: My Agent Pool
type: AzureDevOpsDscNative/AzDoAgentPool
properties:
PoolName: $PoolName
PoolType: automation
AutoProvision: false
AutoUpdate: true
Ensure: PresentLCM Initialization:
$params = @{
AzureDevopsOrganizationName = "SampleAzDoOrgName"
ConfigurationDirectory = "C:\Datum\DSCOutput\"
ConfigurationUrl = 'https://configuration-path'
JITToken = 'SampleJITToken'
Mode = 'Set'
AuthenticationType = 'ManagedIdentity'
ReportPath = 'C:\Datum\DSCOutput\Reports'
}
Invoke-AzDoLCM @params- Assert-BoundParameter
- Assert-ElevatedUser
- Assert-IPAddress
- Assert-Module
- AzDoAPI_0_ProjectCache
- AzDoAPI_1_GroupCache
- AzDoAPI_2_UserCache
- AzDoAPI_3_GroupMemberCache
- AzDoAPI_4_GitRepositoryCache
- AzDoAPI_5_PermissionsCache
- AzDoAPI_6_ServicePrinciple
- AzDoAPI_7_IdentitySubjectDescriptors
- AzDoAPI_8_ProjectProcessTemplates
- AzDoAPI_9_DevOpsClassificationNodes
- Compare-DscParameterState
- Compare-ResourcePropertyState
- ConvertFrom-DscResourceInstance
- ConvertTo-Base64String
- ConvertTo-CimInstance
- ConvertTo-HashTable
- Find-Certificate
- Format-Path
- Get-AzDevOpsOperation
- Get-AzDevOpsServicesApiUri
- Get-AzDevOpsServicesUri
- AzDoAgentPool
- AzDoAgentPoolPermission
- AzDoAgentQueue
- AzDoAreaNodes
- AzDoAreaPermission
- AzDoArtifactFeed
- AzDoArtifactFeedPermission
- AzDoArtifactFeedSettings
- AzDoArtifactFeedView
- AzDoAuditStream
- AzDoBranchPolicy
- AzDoCheckConfiguration
- AzDoDeploymentGroup
- AzDoEnvironmentApproval
- AzDoEnvironmentPermission
- AzDoExtension
- AzDoGitPermission
- AzDoGitRepository
- AzDoGroupMember
- AzDoGroupPermission
- AzDoIterationNodes
- AzDoIterationPermission
- AzDoNotificationSubscription
- AzDoOrganizationGroup
- AzDoOrganizationSettings
- AzDoPipeline
- AzDoPipelineEnvironment
- AzDoPipelinePermission
- AzDoPipelineSettings
- AzDoProcess
- AzDoProcessPermission
- AzDoProject
- AzDoProjectGroup
- AzDoProjectPermission
- AzDoProjectServices
- AzDoRepositorySettings
- AzDoSecurityNamespacePermission
- AzDoServiceConnection
- AzDoServiceConnectionPermission
- AzDoServiceHook
- AzDoTaskGroup
- AzDoTeam
- AzDoTeamMember
- AzDoTeamSettings
- AzDoUserEntitlement
- AzDoVariableGroup
- AzDoVariableGroupPermission
- AzDoWiki
- AzDoWIPTags