Skip to content

AzDoDeploymentGroup

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

Parameters

Parameter Attribute DataType Description Allowed Values
ProjectName Key System.String
DeploymentGroupName Required System.String
Description Write System.String
Ensure Write Ensure Present, Absent
Tags Write System.String[]
LookupResult Read System.Collections.Hashtable

Description

Examples

Example 1

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

Configuration Example
{
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'

    node localhost
    {
        AzDoDeploymentGroup 'AddAzDoDeploymentGroup'
        {
            Ensure              = 'Present'
            ProjectName         = 'MyProject'
            DeploymentGroupName = 'ProductionServers'
            Description         = 'Deployment group for production web servers'
            Tags                = @('Production', 'Windows', 'IIS')
        }
    }
}

Example 2

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

Configuration Example
{
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'

    node localhost
    {
        AzDoDeploymentGroup 'UpdateAzDoDeploymentGroup'
        {
            Ensure              = 'Present'
            ProjectName         = 'MyProject'
            DeploymentGroupName = 'ProductionServers'
            Description         = 'Deployment group for production web and API servers'
            Tags                = @('Production', 'Windows', 'IIS', 'API')
        }
    }
}

Example 3

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

Configuration Example
{
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'

    node localhost
    {
        AzDoDeploymentGroup 'RemoveAzDoDeploymentGroup'
        {
            Ensure              = 'Absent'
            ProjectName         = 'MyProject'
            DeploymentGroupName = 'ProductionServers'
        }
    }
}

Commands

Resources

Clone this wiki locally