Skip to content

AzDoProjectServices

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

Parameters

Parameter Attribute DataType Description Allowed Values
ProjectName Key System.String The name of the Azure DevOps project.
AzureArtifact Write System.String Specifies whether Azure artifacts are enabled or disabled for the project. Valid values are 'Enabled' and 'Disabled'. The default value is 'Enabled'. Enabled, Disabled
BuildPipelines Write System.String Specifies whether build pipelines are enabled or disabled for the project. Valid values are 'Enabled' and 'Disabled'. The default value is 'Enabled'. Enabled, Disabled
Ensure Write Ensure Present, Absent
GitRepositories Write System.String Specifies whether Git repositories are enabled or disabled for the project. Valid values are 'Enabled' and 'Disabled'. The default value is 'Enabled'. Enabled, Disabled
TestPlans Write System.String Specifies whether test plans are enabled or disabled for the project. Valid values are 'Enabled' and 'Disabled'. The default value is 'Enabled'. Enabled, Disabled
WorkBoards Write System.String Specifies whether work boards are enabled or disabled for the project. Valid values are 'Enabled' and 'Disabled'. The default value is 'Enabled'. Enabled, Disabled
LookupResult Read System.Collections.Hashtable

Description

The AzDoProjectServices class is a DSC resource that allows you to manage the services associated with an Azure DevOps project. It provides properties to enable or disable various services such as Git repositories, work boards, build pipelines, test plans, and Azure artifacts.

Examples

Example 1

This example shows how to add Project Services

Configuration Example
{

    Import-DscResource -ModuleName 'AzureDevOpsDscNative'

    Node localhost {
        AzDoProjectServices 'AddProjectServices' {
            Ensure             = 'Present'
            ProjectName        = 'SampleProject'
            GitRepositories    = 'Enabled'
            WorkBoards         = 'Enabled'
            BuildPipelines     = 'Enabled'
            TestPlans          = 'Enabled'
            AzureArtifact      = 'Enabled'
        }
    }
}

Example 2

This example shows how to add Project Services

Configuration Example
{

    Import-DscResource -ModuleName 'AzureDevOpsDscNative'

    Node localhost {
        AzDoProjectServices 'AddProjectServices' {
            Ensure             = 'Present'
            ProjectName        = 'SampleProject'
            GitRepositories    = 'Enabled'
            WorkBoards         = 'Disabled'
            BuildPipelines     = 'Disabled'
            TestPlans          = 'Disabled'
            AzureArtifact      = 'Disabled'
        }
    }
}

Example 3

This example shows how to remove a Project Services.

Commands

Resources

Clone this wiki locally