published on Friday, Jul 17, 2026 by Pulumi
published on Friday, Jul 17, 2026 by Pulumi
Manages a team within a project in a Azure DevOps organization.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const example = new azuredevops.Project("example", {
name: "Example Project",
workItemTemplate: "Agile",
versionControl: "Git",
visibility: "private",
description: "Managed by Pulumi",
});
const example_project_contributors = azuredevops.getGroupOutput({
projectId: example.id,
name: "Contributors",
});
const example_project_readers = azuredevops.getGroupOutput({
projectId: example.id,
name: "Readers",
});
const exampleTeam = new azuredevops.Team("example", {
projectId: example.id,
name: "Example Team",
administrators: [example_project_contributors.apply(example_project_contributors => example_project_contributors.descriptor)],
members: [example_project_readers.apply(example_project_readers => example_project_readers.descriptor)],
});
import pulumi
import pulumi_azuredevops as azuredevops
example = azuredevops.Project("example",
name="Example Project",
work_item_template="Agile",
version_control="Git",
visibility="private",
description="Managed by Pulumi")
example_project_contributors = azuredevops.get_group_output(project_id=example.id,
name="Contributors")
example_project_readers = azuredevops.get_group_output(project_id=example.id,
name="Readers")
example_team = azuredevops.Team("example",
project_id=example.id,
name="Example Team",
administrators=[example_project_contributors.descriptor],
members=[example_project_readers.descriptor])
package main
import (
"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := azuredevops.NewProject(ctx, "example", &azuredevops.ProjectArgs{
Name: pulumi.String("Example Project"),
WorkItemTemplate: pulumi.String("Agile"),
VersionControl: pulumi.String("Git"),
Visibility: pulumi.String("private"),
Description: pulumi.String("Managed by Pulumi"),
})
if err != nil {
return err
}
example_project_contributors := azuredevops.GetGroupOutput(ctx, azuredevops.GetGroupOutputArgs{
ProjectId: example.ID(),
Name: pulumi.String("Contributors"),
}, nil)
example_project_readers := azuredevops.GetGroupOutput(ctx, azuredevops.GetGroupOutputArgs{
ProjectId: example.ID(),
Name: pulumi.String("Readers"),
}, nil)
_, err = azuredevops.NewTeam(ctx, "example", &azuredevops.TeamArgs{
ProjectId: example.ID(),
Name: pulumi.String("Example Team"),
Administrators: pulumi.StringArray{
pulumi.String(example_project_contributors.ApplyT(func(example_project_contributors azuredevops.GetGroupResult) (*string, error) {
return example_project_contributors.Descriptor, nil
}).(pulumi.StringPtrOutput)),
},
Members: pulumi.StringArray{
pulumi.String(example_project_readers.ApplyT(func(example_project_readers azuredevops.GetGroupResult) (*string, error) {
return example_project_readers.Descriptor, nil
}).(pulumi.StringPtrOutput)),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
return await Deployment.RunAsync(() =>
{
var example = new AzureDevOps.Project("example", new()
{
Name = "Example Project",
WorkItemTemplate = "Agile",
VersionControl = "Git",
Visibility = "private",
Description = "Managed by Pulumi",
});
var example_project_contributors = AzureDevOps.GetGroup.Invoke(new()
{
ProjectId = example.Id,
Name = "Contributors",
});
var example_project_readers = AzureDevOps.GetGroup.Invoke(new()
{
ProjectId = example.Id,
Name = "Readers",
});
var exampleTeam = new AzureDevOps.Team("example", new()
{
ProjectId = example.Id,
Name = "Example Team",
Administrators = new[]
{
example_project_contributors.Apply(example_project_contributors => example_project_contributors.Apply(getGroupResult => getGroupResult.Descriptor)),
},
Members = new[]
{
example_project_readers.Apply(example_project_readers => example_project_readers.Apply(getGroupResult => getGroupResult.Descriptor)),
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.Project;
import com.pulumi.azuredevops.ProjectArgs;
import com.pulumi.azuredevops.AzuredevopsFunctions;
import com.pulumi.azuredevops.inputs.GetGroupArgs;
import com.pulumi.azuredevops.Team;
import com.pulumi.azuredevops.TeamArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Project("example", ProjectArgs.builder()
.name("Example Project")
.workItemTemplate("Agile")
.versionControl("Git")
.visibility("private")
.description("Managed by Pulumi")
.build());
final var example-project-contributors = AzuredevopsFunctions.getGroup(GetGroupArgs.builder()
.projectId(example.id())
.name("Contributors")
.build());
final var example-project-readers = AzuredevopsFunctions.getGroup(GetGroupArgs.builder()
.projectId(example.id())
.name("Readers")
.build());
var exampleTeam = new Team("exampleTeam", TeamArgs.builder()
.projectId(example.id())
.name("Example Team")
.administrators(example_project_contributors.applyValue(_example_project_contributors -> _example_project_contributors.descriptor()))
.members(example_project_readers.applyValue(_example_project_readers -> _example_project_readers.descriptor()))
.build());
}
}
resources:
example:
type: azuredevops:Project
properties:
name: Example Project
workItemTemplate: Agile
versionControl: Git
visibility: private
description: Managed by Pulumi
exampleTeam:
type: azuredevops:Team
name: example
properties:
projectId: ${example.id}
name: Example Team
administrators:
- ${["example-project-contributors"].descriptor}
members:
- ${["example-project-readers"].descriptor}
variables:
example-project-contributors:
fn::invoke:
function: azuredevops:getGroup
arguments:
projectId: ${example.id}
name: Contributors
example-project-readers:
fn::invoke:
function: azuredevops:getGroup
arguments:
projectId: ${example.id}
name: Readers
pulumi {
required_providers {
azuredevops = {
source = "pulumi/azuredevops"
}
}
}
data "azuredevops_getgroup" "example-project-contributors" {
project_id = azuredevops_project.example.id
name = "Contributors"
}
data "azuredevops_getgroup" "example-project-readers" {
project_id = azuredevops_project.example.id
name = "Readers"
}
resource "azuredevops_project" "example" {
name = "Example Project"
work_item_template = "Agile"
version_control = "Git"
visibility = "private"
description = "Managed by Pulumi"
}
resource "azuredevops_team" "example" {
project_id = azuredevops_project.example.id
name = "Example Team"
administrators = [data.azuredevops_getgroup.example-project-contributors.descriptor]
members = [data.azuredevops_getgroup.example-project-readers.descriptor]
}
With Area Paths
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const example = new azuredevops.Project("example", {
name: "Example Project",
workItemTemplate: "Agile",
versionControl: "Git",
visibility: "private",
});
const exampleArea = new azuredevops.Area("example", {
projectId: example.id,
name: "Frontend",
});
const exampleTeam = new azuredevops.Team("example", {
projectId: example.id,
name: "Frontend Team",
areas: [{
path: exampleArea.path,
includeChildren: true,
isDefault: true,
}],
});
import pulumi
import pulumi_azuredevops as azuredevops
example = azuredevops.Project("example",
name="Example Project",
work_item_template="Agile",
version_control="Git",
visibility="private")
example_area = azuredevops.Area("example",
project_id=example.id,
name="Frontend")
example_team = azuredevops.Team("example",
project_id=example.id,
name="Frontend Team",
areas=[{
"path": example_area.path,
"include_children": True,
"is_default": True,
}])
package main
import (
"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := azuredevops.NewProject(ctx, "example", &azuredevops.ProjectArgs{
Name: pulumi.String("Example Project"),
WorkItemTemplate: pulumi.String("Agile"),
VersionControl: pulumi.String("Git"),
Visibility: pulumi.String("private"),
})
if err != nil {
return err
}
exampleArea, err := azuredevops.NewArea(ctx, "example", &azuredevops.AreaArgs{
ProjectId: example.ID(),
Name: pulumi.String("Frontend"),
})
if err != nil {
return err
}
_, err = azuredevops.NewTeam(ctx, "example", &azuredevops.TeamArgs{
ProjectId: example.ID(),
Name: pulumi.String("Frontend Team"),
Areas: azuredevops.TeamAreaArray{
&azuredevops.TeamAreaArgs{
Path: exampleArea.Path,
IncludeChildren: pulumi.Bool(true),
IsDefault: pulumi.Bool(true),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
return await Deployment.RunAsync(() =>
{
var example = new AzureDevOps.Project("example", new()
{
Name = "Example Project",
WorkItemTemplate = "Agile",
VersionControl = "Git",
Visibility = "private",
});
var exampleArea = new AzureDevOps.Area("example", new()
{
ProjectId = example.Id,
Name = "Frontend",
});
var exampleTeam = new AzureDevOps.Team("example", new()
{
ProjectId = example.Id,
Name = "Frontend Team",
Areas = new[]
{
new AzureDevOps.Inputs.TeamAreaArgs
{
Path = exampleArea.Path,
IncludeChildren = true,
IsDefault = true,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.Project;
import com.pulumi.azuredevops.ProjectArgs;
import com.pulumi.azuredevops.Area;
import com.pulumi.azuredevops.AreaArgs;
import com.pulumi.azuredevops.Team;
import com.pulumi.azuredevops.TeamArgs;
import com.pulumi.azuredevops.inputs.TeamAreaArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Project("example", ProjectArgs.builder()
.name("Example Project")
.workItemTemplate("Agile")
.versionControl("Git")
.visibility("private")
.build());
var exampleArea = new Area("exampleArea", AreaArgs.builder()
.projectId(example.id())
.name("Frontend")
.build());
var exampleTeam = new Team("exampleTeam", TeamArgs.builder()
.projectId(example.id())
.name("Frontend Team")
.areas(TeamAreaArgs.builder()
.path(exampleArea.path())
.includeChildren(true)
.isDefault(true)
.build())
.build());
}
}
resources:
example:
type: azuredevops:Project
properties:
name: Example Project
workItemTemplate: Agile
versionControl: Git
visibility: private
exampleArea:
type: azuredevops:Area
name: example
properties:
projectId: ${example.id}
name: Frontend
exampleTeam:
type: azuredevops:Team
name: example
properties:
projectId: ${example.id}
name: Frontend Team
areas:
- path: ${exampleArea.path}
includeChildren: true
isDefault: true
pulumi {
required_providers {
azuredevops = {
source = "pulumi/azuredevops"
}
}
}
resource "azuredevops_project" "example" {
name = "Example Project"
work_item_template = "Agile"
version_control = "Git"
visibility = "private"
}
resource "azuredevops_area" "example" {
project_id = azuredevops_project.example.id
name = "Frontend"
}
resource "azuredevops_team" "example" {
project_id = azuredevops_project.example.id
name = "Frontend Team"
areas {
path = azuredevops_area.example.path
include_children = true
is_default = true
}
}
Relevant Links
PAT Permissions Required
- vso.project_manage: Grants the ability to create, read, update, and delete projects and teams.
Create Team Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Team(name: string, args: TeamArgs, opts?: CustomResourceOptions);@overload
def Team(resource_name: str,
args: TeamArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Team(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
administrators: Optional[Sequence[str]] = None,
areas: Optional[Sequence[TeamAreaArgs]] = None,
description: Optional[str] = None,
members: Optional[Sequence[str]] = None,
name: Optional[str] = None)func NewTeam(ctx *Context, name string, args TeamArgs, opts ...ResourceOption) (*Team, error)public Team(string name, TeamArgs args, CustomResourceOptions? opts = null)type: azuredevops:Team
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "azuredevops_team" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args TeamArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TeamArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TeamArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TeamArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TeamArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var teamResource = new AzureDevOps.Team("teamResource", new()
{
ProjectId = "string",
Administrators = new[]
{
"string",
},
Areas = new[]
{
new AzureDevOps.Inputs.TeamAreaArgs
{
Path = "string",
IncludeChildren = false,
IsDefault = false,
},
},
Description = "string",
Members = new[]
{
"string",
},
Name = "string",
});
example, err := azuredevops.NewTeam(ctx, "teamResource", &azuredevops.TeamArgs{
ProjectId: pulumi.String("string"),
Administrators: pulumi.StringArray{
pulumi.String("string"),
},
Areas: azuredevops.TeamAreaArray{
&azuredevops.TeamAreaArgs{
Path: pulumi.String("string"),
IncludeChildren: pulumi.Bool(false),
IsDefault: pulumi.Bool(false),
},
},
Description: pulumi.String("string"),
Members: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
})
resource "azuredevops_team" "teamResource" {
lifecycle {
create_before_destroy = true
}
project_id = "string"
administrators = ["string"]
areas {
path = "string"
include_children = false
is_default = false
}
description = "string"
members = ["string"]
name = "string"
}
var teamResource = new Team("teamResource", TeamArgs.builder()
.projectId("string")
.administrators("string")
.areas(TeamAreaArgs.builder()
.path("string")
.includeChildren(false)
.isDefault(false)
.build())
.description("string")
.members("string")
.name("string")
.build());
team_resource = azuredevops.Team("teamResource",
project_id="string",
administrators=["string"],
areas=[{
"path": "string",
"include_children": False,
"is_default": False,
}],
description="string",
members=["string"],
name="string")
const teamResource = new azuredevops.Team("teamResource", {
projectId: "string",
administrators: ["string"],
areas: [{
path: "string",
includeChildren: false,
isDefault: false,
}],
description: "string",
members: ["string"],
name: "string",
});
type: azuredevops:Team
properties:
administrators:
- string
areas:
- includeChildren: false
isDefault: false
path: string
description: string
members:
- string
name: string
projectId: string
Team Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Team resource accepts the following input properties:
- Project
Id string - The Project ID.
- Administrators List<string>
List of subject descriptors to define administrators of the team.
NOTE: It's possible to define team administrators both within the
azuredevops.Teamresource via theadministratorsblock and by using theazuredevops.TeamAdministratorsresource. However it's not possible to use both methods to manage team administrators, since there'll be conflicts.- Areas
List<Pulumi.
Azure Dev Ops. Inputs. Team Area> One or more
areablocks as defined below. Configures the area paths associated with the team.NOTE: If no
areablocks are specified, the team's area path configuration will not be managed by Terraform and any existing area paths will be left unchanged. Removing allareablocks from a configuration that previously had them will cause Terraform to stop managing the team's area paths without modifying them on the server.- Description string
- The description of the Team.
- Members List<string>
List of subject descriptors to define members of the team.
NOTE: It's possible to define team members both within the
azuredevops.Teamresource via themembersblock and by using theazuredevops.TeamMembersresource. However it's not possible to use both methods to manage team members, since there'll be conflicts.- Name string
- The name of the Team.
- Project
Id string - The Project ID.
- Administrators []string
List of subject descriptors to define administrators of the team.
NOTE: It's possible to define team administrators both within the
azuredevops.Teamresource via theadministratorsblock and by using theazuredevops.TeamAdministratorsresource. However it's not possible to use both methods to manage team administrators, since there'll be conflicts.- Areas
[]Team
Area Args One or more
areablocks as defined below. Configures the area paths associated with the team.NOTE: If no
areablocks are specified, the team's area path configuration will not be managed by Terraform and any existing area paths will be left unchanged. Removing allareablocks from a configuration that previously had them will cause Terraform to stop managing the team's area paths without modifying them on the server.- Description string
- The description of the Team.
- Members []string
List of subject descriptors to define members of the team.
NOTE: It's possible to define team members both within the
azuredevops.Teamresource via themembersblock and by using theazuredevops.TeamMembersresource. However it's not possible to use both methods to manage team members, since there'll be conflicts.- Name string
- The name of the Team.
- project_
id string - The Project ID.
- administrators list(string)
List of subject descriptors to define administrators of the team.
NOTE: It's possible to define team administrators both within the
azuredevops.Teamresource via theadministratorsblock and by using theazuredevops.TeamAdministratorsresource. However it's not possible to use both methods to manage team administrators, since there'll be conflicts.- areas list(object)
One or more
areablocks as defined below. Configures the area paths associated with the team.NOTE: If no
areablocks are specified, the team's area path configuration will not be managed by Terraform and any existing area paths will be left unchanged. Removing allareablocks from a configuration that previously had them will cause Terraform to stop managing the team's area paths without modifying them on the server.- description string
- The description of the Team.
- members list(string)
List of subject descriptors to define members of the team.
NOTE: It's possible to define team members both within the
azuredevops.Teamresource via themembersblock and by using theazuredevops.TeamMembersresource. However it's not possible to use both methods to manage team members, since there'll be conflicts.- name string
- The name of the Team.
- project
Id String - The Project ID.
- administrators List<String>
List of subject descriptors to define administrators of the team.
NOTE: It's possible to define team administrators both within the
azuredevops.Teamresource via theadministratorsblock and by using theazuredevops.TeamAdministratorsresource. However it's not possible to use both methods to manage team administrators, since there'll be conflicts.- areas
List<Team
Area> One or more
areablocks as defined below. Configures the area paths associated with the team.NOTE: If no
areablocks are specified, the team's area path configuration will not be managed by Terraform and any existing area paths will be left unchanged. Removing allareablocks from a configuration that previously had them will cause Terraform to stop managing the team's area paths without modifying them on the server.- description String
- The description of the Team.
- members List<String>
List of subject descriptors to define members of the team.
NOTE: It's possible to define team members both within the
azuredevops.Teamresource via themembersblock and by using theazuredevops.TeamMembersresource. However it's not possible to use both methods to manage team members, since there'll be conflicts.- name String
- The name of the Team.
- project
Id string - The Project ID.
- administrators string[]
List of subject descriptors to define administrators of the team.
NOTE: It's possible to define team administrators both within the
azuredevops.Teamresource via theadministratorsblock and by using theazuredevops.TeamAdministratorsresource. However it's not possible to use both methods to manage team administrators, since there'll be conflicts.- areas
Team
Area[] One or more
areablocks as defined below. Configures the area paths associated with the team.NOTE: If no
areablocks are specified, the team's area path configuration will not be managed by Terraform and any existing area paths will be left unchanged. Removing allareablocks from a configuration that previously had them will cause Terraform to stop managing the team's area paths without modifying them on the server.- description string
- The description of the Team.
- members string[]
List of subject descriptors to define members of the team.
NOTE: It's possible to define team members both within the
azuredevops.Teamresource via themembersblock and by using theazuredevops.TeamMembersresource. However it's not possible to use both methods to manage team members, since there'll be conflicts.- name string
- The name of the Team.
- project_
id str - The Project ID.
- administrators Sequence[str]
List of subject descriptors to define administrators of the team.
NOTE: It's possible to define team administrators both within the
azuredevops.Teamresource via theadministratorsblock and by using theazuredevops.TeamAdministratorsresource. However it's not possible to use both methods to manage team administrators, since there'll be conflicts.- areas
Sequence[Team
Area Args] One or more
areablocks as defined below. Configures the area paths associated with the team.NOTE: If no
areablocks are specified, the team's area path configuration will not be managed by Terraform and any existing area paths will be left unchanged. Removing allareablocks from a configuration that previously had them will cause Terraform to stop managing the team's area paths without modifying them on the server.- description str
- The description of the Team.
- members Sequence[str]
List of subject descriptors to define members of the team.
NOTE: It's possible to define team members both within the
azuredevops.Teamresource via themembersblock and by using theazuredevops.TeamMembersresource. However it's not possible to use both methods to manage team members, since there'll be conflicts.- name str
- The name of the Team.
- project
Id String - The Project ID.
- administrators List<String>
List of subject descriptors to define administrators of the team.
NOTE: It's possible to define team administrators both within the
azuredevops.Teamresource via theadministratorsblock and by using theazuredevops.TeamAdministratorsresource. However it's not possible to use both methods to manage team administrators, since there'll be conflicts.- areas List<Property Map>
One or more
areablocks as defined below. Configures the area paths associated with the team.NOTE: If no
areablocks are specified, the team's area path configuration will not be managed by Terraform and any existing area paths will be left unchanged. Removing allareablocks from a configuration that previously had them will cause Terraform to stop managing the team's area paths without modifying them on the server.- description String
- The description of the Team.
- members List<String>
List of subject descriptors to define members of the team.
NOTE: It's possible to define team members both within the
azuredevops.Teamresource via themembersblock and by using theazuredevops.TeamMembersresource. However it's not possible to use both methods to manage team members, since there'll be conflicts.- name String
- The name of the Team.
Outputs
All input properties are implicitly available as output properties. Additionally, the Team resource produces the following output properties:
- Descriptor string
- The descriptor of the Team.
- Id string
- The provider-assigned unique ID for this managed resource.
- Descriptor string
- The descriptor of the Team.
- Id string
- The provider-assigned unique ID for this managed resource.
- descriptor string
- The descriptor of the Team.
- id string
- The provider-assigned unique ID for this managed resource.
- descriptor String
- The descriptor of the Team.
- id String
- The provider-assigned unique ID for this managed resource.
- descriptor string
- The descriptor of the Team.
- id string
- The provider-assigned unique ID for this managed resource.
- descriptor str
- The descriptor of the Team.
- id str
- The provider-assigned unique ID for this managed resource.
- descriptor String
- The descriptor of the Team.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Team Resource
Get an existing Team resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TeamState, opts?: CustomResourceOptions): Team@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
administrators: Optional[Sequence[str]] = None,
areas: Optional[Sequence[TeamAreaArgs]] = None,
description: Optional[str] = None,
descriptor: Optional[str] = None,
members: Optional[Sequence[str]] = None,
name: Optional[str] = None,
project_id: Optional[str] = None) -> Teamfunc GetTeam(ctx *Context, name string, id IDInput, state *TeamState, opts ...ResourceOption) (*Team, error)public static Team Get(string name, Input<string> id, TeamState? state, CustomResourceOptions? opts = null)public static Team get(String name, Output<String> id, TeamState state, CustomResourceOptions options)resources: _: type: azuredevops:Team get: id: ${id}import {
to = azuredevops_team.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Administrators List<string>
List of subject descriptors to define administrators of the team.
NOTE: It's possible to define team administrators both within the
azuredevops.Teamresource via theadministratorsblock and by using theazuredevops.TeamAdministratorsresource. However it's not possible to use both methods to manage team administrators, since there'll be conflicts.- Areas
List<Pulumi.
Azure Dev Ops. Inputs. Team Area> One or more
areablocks as defined below. Configures the area paths associated with the team.NOTE: If no
areablocks are specified, the team's area path configuration will not be managed by Terraform and any existing area paths will be left unchanged. Removing allareablocks from a configuration that previously had them will cause Terraform to stop managing the team's area paths without modifying them on the server.- Description string
- The description of the Team.
- Descriptor string
- The descriptor of the Team.
- Members List<string>
List of subject descriptors to define members of the team.
NOTE: It's possible to define team members both within the
azuredevops.Teamresource via themembersblock and by using theazuredevops.TeamMembersresource. However it's not possible to use both methods to manage team members, since there'll be conflicts.- Name string
- The name of the Team.
- Project
Id string - The Project ID.
- Administrators []string
List of subject descriptors to define administrators of the team.
NOTE: It's possible to define team administrators both within the
azuredevops.Teamresource via theadministratorsblock and by using theazuredevops.TeamAdministratorsresource. However it's not possible to use both methods to manage team administrators, since there'll be conflicts.- Areas
[]Team
Area Args One or more
areablocks as defined below. Configures the area paths associated with the team.NOTE: If no
areablocks are specified, the team's area path configuration will not be managed by Terraform and any existing area paths will be left unchanged. Removing allareablocks from a configuration that previously had them will cause Terraform to stop managing the team's area paths without modifying them on the server.- Description string
- The description of the Team.
- Descriptor string
- The descriptor of the Team.
- Members []string
List of subject descriptors to define members of the team.
NOTE: It's possible to define team members both within the
azuredevops.Teamresource via themembersblock and by using theazuredevops.TeamMembersresource. However it's not possible to use both methods to manage team members, since there'll be conflicts.- Name string
- The name of the Team.
- Project
Id string - The Project ID.
- administrators list(string)
List of subject descriptors to define administrators of the team.
NOTE: It's possible to define team administrators both within the
azuredevops.Teamresource via theadministratorsblock and by using theazuredevops.TeamAdministratorsresource. However it's not possible to use both methods to manage team administrators, since there'll be conflicts.- areas list(object)
One or more
areablocks as defined below. Configures the area paths associated with the team.NOTE: If no
areablocks are specified, the team's area path configuration will not be managed by Terraform and any existing area paths will be left unchanged. Removing allareablocks from a configuration that previously had them will cause Terraform to stop managing the team's area paths without modifying them on the server.- description string
- The description of the Team.
- descriptor string
- The descriptor of the Team.
- members list(string)
List of subject descriptors to define members of the team.
NOTE: It's possible to define team members both within the
azuredevops.Teamresource via themembersblock and by using theazuredevops.TeamMembersresource. However it's not possible to use both methods to manage team members, since there'll be conflicts.- name string
- The name of the Team.
- project_
id string - The Project ID.
- administrators List<String>
List of subject descriptors to define administrators of the team.
NOTE: It's possible to define team administrators both within the
azuredevops.Teamresource via theadministratorsblock and by using theazuredevops.TeamAdministratorsresource. However it's not possible to use both methods to manage team administrators, since there'll be conflicts.- areas
List<Team
Area> One or more
areablocks as defined below. Configures the area paths associated with the team.NOTE: If no
areablocks are specified, the team's area path configuration will not be managed by Terraform and any existing area paths will be left unchanged. Removing allareablocks from a configuration that previously had them will cause Terraform to stop managing the team's area paths without modifying them on the server.- description String
- The description of the Team.
- descriptor String
- The descriptor of the Team.
- members List<String>
List of subject descriptors to define members of the team.
NOTE: It's possible to define team members both within the
azuredevops.Teamresource via themembersblock and by using theazuredevops.TeamMembersresource. However it's not possible to use both methods to manage team members, since there'll be conflicts.- name String
- The name of the Team.
- project
Id String - The Project ID.
- administrators string[]
List of subject descriptors to define administrators of the team.
NOTE: It's possible to define team administrators both within the
azuredevops.Teamresource via theadministratorsblock and by using theazuredevops.TeamAdministratorsresource. However it's not possible to use both methods to manage team administrators, since there'll be conflicts.- areas
Team
Area[] One or more
areablocks as defined below. Configures the area paths associated with the team.NOTE: If no
areablocks are specified, the team's area path configuration will not be managed by Terraform and any existing area paths will be left unchanged. Removing allareablocks from a configuration that previously had them will cause Terraform to stop managing the team's area paths without modifying them on the server.- description string
- The description of the Team.
- descriptor string
- The descriptor of the Team.
- members string[]
List of subject descriptors to define members of the team.
NOTE: It's possible to define team members both within the
azuredevops.Teamresource via themembersblock and by using theazuredevops.TeamMembersresource. However it's not possible to use both methods to manage team members, since there'll be conflicts.- name string
- The name of the Team.
- project
Id string - The Project ID.
- administrators Sequence[str]
List of subject descriptors to define administrators of the team.
NOTE: It's possible to define team administrators both within the
azuredevops.Teamresource via theadministratorsblock and by using theazuredevops.TeamAdministratorsresource. However it's not possible to use both methods to manage team administrators, since there'll be conflicts.- areas
Sequence[Team
Area Args] One or more
areablocks as defined below. Configures the area paths associated with the team.NOTE: If no
areablocks are specified, the team's area path configuration will not be managed by Terraform and any existing area paths will be left unchanged. Removing allareablocks from a configuration that previously had them will cause Terraform to stop managing the team's area paths without modifying them on the server.- description str
- The description of the Team.
- descriptor str
- The descriptor of the Team.
- members Sequence[str]
List of subject descriptors to define members of the team.
NOTE: It's possible to define team members both within the
azuredevops.Teamresource via themembersblock and by using theazuredevops.TeamMembersresource. However it's not possible to use both methods to manage team members, since there'll be conflicts.- name str
- The name of the Team.
- project_
id str - The Project ID.
- administrators List<String>
List of subject descriptors to define administrators of the team.
NOTE: It's possible to define team administrators both within the
azuredevops.Teamresource via theadministratorsblock and by using theazuredevops.TeamAdministratorsresource. However it's not possible to use both methods to manage team administrators, since there'll be conflicts.- areas List<Property Map>
One or more
areablocks as defined below. Configures the area paths associated with the team.NOTE: If no
areablocks are specified, the team's area path configuration will not be managed by Terraform and any existing area paths will be left unchanged. Removing allareablocks from a configuration that previously had them will cause Terraform to stop managing the team's area paths without modifying them on the server.- description String
- The description of the Team.
- descriptor String
- The descriptor of the Team.
- members List<String>
List of subject descriptors to define members of the team.
NOTE: It's possible to define team members both within the
azuredevops.Teamresource via themembersblock and by using theazuredevops.TeamMembersresource. However it's not possible to use both methods to manage team members, since there'll be conflicts.- name String
- The name of the Team.
- project
Id String - The Project ID.
Supporting Types
TeamArea, TeamAreaArgs
- Path string
- The area path to associate with the team (e.g.,
Example Project\Frontend). Can referenceazuredevops_area.path. - Include
Children bool - Whether work items in child area paths are included? Defaults to
false. - Is
Default bool - Whether this area path is the team's default? Exactly one
areablock must haveisDefaultset totrue.
- Path string
- The area path to associate with the team (e.g.,
Example Project\Frontend). Can referenceazuredevops_area.path. - Include
Children bool - Whether work items in child area paths are included? Defaults to
false. - Is
Default bool - Whether this area path is the team's default? Exactly one
areablock must haveisDefaultset totrue.
- path string
- The area path to associate with the team (e.g.,
Example Project\Frontend). Can referenceazuredevops_area.path. - include_
children bool - Whether work items in child area paths are included? Defaults to
false. - is_
default bool - Whether this area path is the team's default? Exactly one
areablock must haveisDefaultset totrue.
- path String
- The area path to associate with the team (e.g.,
Example Project\Frontend). Can referenceazuredevops_area.path. - include
Children Boolean - Whether work items in child area paths are included? Defaults to
false. - is
Default Boolean - Whether this area path is the team's default? Exactly one
areablock must haveisDefaultset totrue.
- path string
- The area path to associate with the team (e.g.,
Example Project\Frontend). Can referenceazuredevops_area.path. - include
Children boolean - Whether work items in child area paths are included? Defaults to
false. - is
Default boolean - Whether this area path is the team's default? Exactly one
areablock must haveisDefaultset totrue.
- path str
- The area path to associate with the team (e.g.,
Example Project\Frontend). Can referenceazuredevops_area.path. - include_
children bool - Whether work items in child area paths are included? Defaults to
false. - is_
default bool - Whether this area path is the team's default? Exactly one
areablock must haveisDefaultset totrue.
- path String
- The area path to associate with the team (e.g.,
Example Project\Frontend). Can referenceazuredevops_area.path. - include
Children Boolean - Whether work items in child area paths are included? Defaults to
false. - is
Default Boolean - Whether this area path is the team's default? Exactly one
areablock must haveisDefaultset totrue.
Import
Azure DevOps teams can be imported using the complete resource id <project_id>/<team_id> e.g.
$ pulumi import azuredevops:index/team:Team example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure DevOps pulumi/pulumi-azuredevops
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azuredevopsTerraform Provider.
published on Friday, Jul 17, 2026 by Pulumi