external help file | Module Name | online version | schema |
---|---|---|---|
core-help.xml |
core |
2.0.0 |
Create a team in a team project
New-AzDevOpsTeam [-Name] <String> [[-Description] <String>] [[-Project] <Object>] [-WhatIf] [-Confirm]
[<CommonParameters>]
This function allows you to create a new team in an Azure Devops Project
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
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
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
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
The team name
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
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
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
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.