Skip to content

Latest commit

 

History

History
152 lines (114 loc) · 4.87 KB

New-AzDevOpsTeam.md

File metadata and controls

152 lines (114 loc) · 4.87 KB
external help file Module Name online version schema
core-help.xml
core
2.0.0

New-AzDevOpsTeam

SYNOPSIS

Create a team in a team project

SYNTAX

New-AzDevOpsTeam [-Name] <String> [[-Description] <String>] [[-Project] <Object>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

This function allows you to create a new team in an Azure Devops Project

EXAMPLES

Example 1

PS C:\> New-AzDevOpsTeam -Name 'a new team' -Description 'this is a great team' -Project (Get-AzDevOpsProject -ProjectId d5cf30dd-c965-43f3-9f4e-3dce76ed226a)


id          : 32bbede5-9b5f-49f2-9573-6e954bb865bc
name        : a new team
url         : https://dev.azure.com/patton-tech/_apis/projects/d5cf30dd-c965-43f3-9f4e-3dce76ed226a/teams/32bbede5-9b5f-49f2-9573-6e954bb865bc
description : this is a great team
identityUrl : https://spsprodeus27.vssps.visualstudio.com/A098ee851-8ad4-482f-834b-e68ea8489c4d/_apis/Identities/32bbede5-9b5f-49f2-9573-6e954bb865bc
projectName : 123456-CustomerAccount
projectId   : d5cf30dd-c965-43f3-9f4e-3dce76ed226a
identity    : @{id=32bbede5-9b5f-49f2-9573-6e954bb865bc; descriptor=Microsoft.TeamFoundation.Identity;S-1-9-1551374245-3710963669-1707733827-2672704974-1995252330-1-3120685155-2277392965-2784624880-900151811; subjectDescriptor=vssgp.Uy0xLTktMTU1MTM3NDI0NS0zNzEwOTYzNjY5LTE3MDc3MzM4MjctMjY3MjcwNDk3NC0xOTk1MjUyMzMwLTEtMzEyMDY4NTE1NS0yMjc3MzkyOTY1LTI3ODQ2MjQ4ODAtOTAwMTUxODEx; providerDisplayName=[123456-CustomerAccount]\a new team; isActive=True; isContainer=True; members=System.Object[]; memberOf=System.Object[]; masterId=32bbede5-9b5f-49f2-9573-6e954bb865bc; properties=; resourceVersion=2; metaTypeId=255}

Creating a team by passing a project in the parameter

Example 1

PS C:\> Get-AzDevOpsProject -ProjectId d5cf30dd-c965-43f3-9f4e-3dce76ed226a |New-AzDevOpsTeam -Name 'a whole new team' -Description 'this team is even better'


id          : 9a305dd2-d928-44ab-84bf-03ccaa9b54c4
name        : a whole new team
url         : https://dev.azure.com/patton-tech/_apis/projects/d5cf30dd-c965-43f3-9f4e-3dce76ed226a/teams/9a305dd2-d928-44ab-84bf-03ccaa9b54c4
description : this team is even better
identityUrl : https://spsprodeus27.vssps.visualstudio.com/A098ee851-8ad4-482f-834b-e68ea8489c4d/_apis/Identities/9a305dd2-d928-44ab-84bf-03ccaa9b54c4
projectName : 123456-CustomerAccount
projectId   : d5cf30dd-c965-43f3-9f4e-3dce76ed226a
identity    : @{id=9a305dd2-d928-44ab-84bf-03ccaa9b54c4; descriptor=Microsoft.TeamFoundation.Identity;S-1-9-1551374245-3710963669-1707733827-2672704974-1995252330-1-3101610963-1451776323-2212708059-2298500323; subjectDescriptor=vssgp.Uy0xLTktMTU1MTM3NDI0NS0zNzEwOTYzNjY5LTE3MDc3MzM4MjctMjY3MjcwNDk3NC0xOTk1MjUyMzMwLTEtMzEwMTYxMDk2My0xNDUxNzc2MzIzLTIyMTI3MDgwNTktMjI5ODUwMDMyMw; providerDisplayName=[123456-CustomerAccount]\a whole new team; isActive=True; isContainer=True; members=System.Object[]; memberOf=System.Object[]; masterId=9a305dd2-d928-44ab-84bf-03ccaa9b54c4; properties=; resourceVersion=2; metaTypeId=255}

Creating a team by passing the project along the pipeline

PARAMETERS

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Description

A descriptive name for the team

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Name

The team name

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Project

A project object

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.Object

OUTPUTS

System.Object

NOTES

RELATED LINKS

Connect-AzDevOpsOrganization