Skip to content

AzDoTeamMember

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

Parameters

Parameter Attribute DataType Description Allowed Values
ProjectName Key System.String
MemberName Required System.String
TeamName Required System.String
Ensure Write Ensure Present, Absent
LookupResult Read System.Collections.Hashtable

Description

Examples

Example 1

This example shows how to add a member to a team in an Azure DevOps project.

Configuration Example
{
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'

    node localhost
    {
        AzDoTeamMember 'AddAzDoTeamMember'
        {
            Ensure      = 'Present'
            ProjectName = 'MyProject'
            TeamName    = 'Frontend Team'
            MemberName  = 'user@example.com'
        }
    }
}

Example 2

This example shows how to add a different member to a team in an Azure DevOps project.

Configuration Example
{
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'

    node localhost
    {
        AzDoTeamMember 'UpdateAzDoTeamMember'
        {
            Ensure      = 'Present'
            ProjectName = 'MyProject'
            TeamName    = 'Frontend Team'
            MemberName  = 'anotheruser@example.com'
        }
    }
}

Example 3

This example shows how to remove a member from a team in an Azure DevOps project.

Configuration Example
{
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'

    node localhost
    {
        AzDoTeamMember 'RemoveAzDoTeamMember'
        {
            Ensure      = 'Absent'
            ProjectName = 'MyProject'
            TeamName    = 'Frontend Team'
            MemberName  = 'user@example.com'
        }
    }
}

Commands

Resources

Clone this wiki locally