Skip to content

AzDoIterationNodes

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

Parameters

Parameter Attribute DataType Description Allowed Values
ProjectName Key System.String Specifies the name of the Azure DevOps project. This parameter is mandatory and serves as the key identifier for the resource.
Ensure Write Ensure Present, Absent
IterationAttributes Write System.Collections.Hashtable[] Specifies an array of hashtables, each representing attributes for iterations to be managed within the Azure DevOps project. This parameter is mandatory.
LookupResult Read System.Collections.Hashtable

Description

The AzDoIterationNodes class is a DSC resource that inherits from the AzDevOpsDscResourceBase class. It manages iteration paths and their attributes within a specified Azure DevOps project.

Examples

Example 1

This example shows how to ensure that Azure DevOps iteration nodes exist in a project.

Configuration Example
{
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'

    node localhost
    {
        AzDoIterationNodes 'AddAzDoIterationNodes'
        {
            Ensure               = 'Present'
            ProjectName          = 'MyProject'
            IterationAttributes  = @(
                @{
                    Name        = 'Sprint 1'
                    StartDate   = '2024-01-01'
                    FinishDate  = '2024-01-14'
                }
                @{
                    Name        = 'Sprint 2'
                    StartDate   = '2024-01-15'
                    FinishDate  = '2024-01-28'
                }
            )
        }
    }
}

Example 2

This example shows how to update the iteration nodes in an Azure DevOps project.

Configuration Example
{
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'

    node localhost
    {
        AzDoIterationNodes 'UpdateAzDoIterationNodes'
        {
            Ensure               = 'Present'
            ProjectName          = 'MyProject'
            IterationAttributes  = @(
                @{
                    Name        = 'Sprint 1'
                    StartDate   = '2024-01-01'
                    FinishDate  = '2024-01-14'
                }
                @{
                    Name        = 'Sprint 2'
                    StartDate   = '2024-01-15'
                    FinishDate  = '2024-01-28'
                }
                @{
                    Name        = 'Sprint 3'
                    StartDate   = '2024-01-29'
                    FinishDate  = '2024-02-11'
                }
            )
        }
    }
}

Example 3

This example shows how to remove iteration nodes from an Azure DevOps project.

Configuration Example
{
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'

    node localhost
    {
        AzDoIterationNodes 'RemoveAzDoIterationNodes'
        {
            Ensure      = 'Absent'
            ProjectName = 'MyProject'
        }
    }
}

Commands

Resources

Clone this wiki locally