Skip to content

AzDoTaskGroup

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

Parameters

Parameter Attribute DataType Description Allowed Values
ProjectName Key System.String
TaskGroupName Required System.String
Category Write System.String
Description Write System.String
Ensure Write Ensure Present, Absent
Inputs Write System.Collections.Hashtable[]
Tasks Write System.Collections.Hashtable[]
LookupResult Read System.Collections.Hashtable

Description

Examples

Example 1

This example shows how to create a task group in an Azure DevOps project.

Configuration Example
{
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'

    node localhost
    {
        AzDoTaskGroup 'AddAzDoTaskGroup'
        {
            Ensure        = 'Present'
            ProjectName   = 'MyProject'
            TaskGroupName = 'MyBuildTaskGroup'
            Description   = 'Reusable build steps for .NET projects'
            Category      = 'Build'
        }
    }
}

Example 2

This example shows how to update a task group in an Azure DevOps project.

Configuration Example
{
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'

    node localhost
    {
        AzDoTaskGroup 'UpdateAzDoTaskGroup'
        {
            Ensure        = 'Present'
            ProjectName   = 'MyProject'
            TaskGroupName = 'MyBuildTaskGroup'
            Description   = 'Reusable build steps for .NET and Node.js projects'
            Category      = 'Build'
        }
    }
}

Example 3

This example shows how to remove a task group from an Azure DevOps project.

Configuration Example
{
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'

    node localhost
    {
        AzDoTaskGroup 'RemoveAzDoTaskGroup'
        {
            Ensure        = 'Absent'
            ProjectName   = 'MyProject'
            TaskGroupName = 'MyBuildTaskGroup'
        }
    }
}

Commands

Resources

Clone this wiki locally