AzureDevOps

v2.5.0 published on Monday, Jul 25, 2022 by Pulumi

Project

Deprecated:

azuredevops.core.Project has been deprecated in favor of azuredevops.Project

Manages a project within Azure DevOps.

PAT Permissions Required

  • Project & Team: Read, Write, & Manage

Example Usage

using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new AzureDevOps.Project("example", new AzureDevOps.ProjectArgs
        {
            Description = "Managed by Terraform",
            Features = 
            {
                { "artifacts", "disabled" },
                { "testplans", "disabled" },
            },
            VersionControl = "Git",
            Visibility = "private",
            WorkItemTemplate = "Agile",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-azuredevops/sdk/v2/go/azuredevops"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := azuredevops.NewProject(ctx, "example", &azuredevops.ProjectArgs{
			Description: pulumi.String("Managed by Terraform"),
			Features: pulumi.StringMap{
				"artifacts": pulumi.String("disabled"),
				"testplans": pulumi.String("disabled"),
			},
			VersionControl:   pulumi.String("Git"),
			Visibility:       pulumi.String("private"),
			WorkItemTemplate: pulumi.String("Agile"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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 java.util.List;
import java.util.ArrayList;
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()        
            .description("Managed by Terraform")
            .features(Map.ofEntries(
                Map.entry("artifacts", "disabled"),
                Map.entry("testplans", "disabled")
            ))
            .versionControl("Git")
            .visibility("private")
            .workItemTemplate("Agile")
            .build());

    }
}
import pulumi
import pulumi_azuredevops as azuredevops

example = azuredevops.Project("example",
    description="Managed by Terraform",
    features={
        "artifacts": "disabled",
        "testplans": "disabled",
    },
    version_control="Git",
    visibility="private",
    work_item_template="Agile")
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";

const example = new azuredevops.Project("example", {
    description: "Managed by Terraform",
    features: {
        artifacts: "disabled",
        testplans: "disabled",
    },
    versionControl: "Git",
    visibility: "private",
    workItemTemplate: "Agile",
});
resources:
  example:
    type: azuredevops:Project
    properties:
      description: Managed by Terraform
      features:
        artifacts: disabled
        testplans: disabled
      versionControl: Git
      visibility: private
      workItemTemplate: Agile

Create Project Resource

new Project(name: string, args?: ProjectArgs, opts?: CustomResourceOptions);
@overload
def Project(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            features: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None,
            version_control: Optional[str] = None,
            visibility: Optional[str] = None,
            work_item_template: Optional[str] = None)
@overload
def Project(resource_name: str,
            args: Optional[ProjectArgs] = None,
            opts: Optional[ResourceOptions] = None)
func NewProject(ctx *Context, name string, args *ProjectArgs, opts ...ResourceOption) (*Project, error)
public Project(string name, ProjectArgs? args = null, CustomResourceOptions? opts = null)
public Project(String name, ProjectArgs args)
public Project(String name, ProjectArgs args, CustomResourceOptions options)
type: azuredevops:Core:Project
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ProjectArgs
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 ProjectArgs
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 ProjectArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ProjectArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ProjectArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Project Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Project resource accepts the following input properties:

Description string

The Description of the Project.

Features Dictionary<string, string>

Defines the status (enabled, disabled) of the project features.
Valid features are boards, repositories, pipelines, testplans, artifacts

Name string

The Project Name.

VersionControl string

Specifies the version control system. Valid values: Git or Tfvc. Defaults to Git.

Visibility string

Specifies the visibility of the Project. Valid values: private or public. Defaults to private.

WorkItemTemplate string

Specifies the work item template. Valid values: Agile, Basic, CMMI or Scrum. Defaults to Agile.

Description string

The Description of the Project.

Features map[string]string

Defines the status (enabled, disabled) of the project features.
Valid features are boards, repositories, pipelines, testplans, artifacts

Name string

The Project Name.

VersionControl string

Specifies the version control system. Valid values: Git or Tfvc. Defaults to Git.

Visibility string

Specifies the visibility of the Project. Valid values: private or public. Defaults to private.

WorkItemTemplate string

Specifies the work item template. Valid values: Agile, Basic, CMMI or Scrum. Defaults to Agile.

description String

The Description of the Project.

features Map<String,String>

Defines the status (enabled, disabled) of the project features.
Valid features are boards, repositories, pipelines, testplans, artifacts

name String

The Project Name.

versionControl String

Specifies the version control system. Valid values: Git or Tfvc. Defaults to Git.

visibility String

Specifies the visibility of the Project. Valid values: private or public. Defaults to private.

workItemTemplate String

Specifies the work item template. Valid values: Agile, Basic, CMMI or Scrum. Defaults to Agile.

description string

The Description of the Project.

features {[key: string]: string}

Defines the status (enabled, disabled) of the project features.
Valid features are boards, repositories, pipelines, testplans, artifacts

name string

The Project Name.

versionControl string

Specifies the version control system. Valid values: Git or Tfvc. Defaults to Git.

visibility string

Specifies the visibility of the Project. Valid values: private or public. Defaults to private.

workItemTemplate string

Specifies the work item template. Valid values: Agile, Basic, CMMI or Scrum. Defaults to Agile.

description str

The Description of the Project.

features Mapping[str, str]

Defines the status (enabled, disabled) of the project features.
Valid features are boards, repositories, pipelines, testplans, artifacts

name str

The Project Name.

version_control str

Specifies the version control system. Valid values: Git or Tfvc. Defaults to Git.

visibility str

Specifies the visibility of the Project. Valid values: private or public. Defaults to private.

work_item_template str

Specifies the work item template. Valid values: Agile, Basic, CMMI or Scrum. Defaults to Agile.

description String

The Description of the Project.

features Map<String>

Defines the status (enabled, disabled) of the project features.
Valid features are boards, repositories, pipelines, testplans, artifacts

name String

The Project Name.

versionControl String

Specifies the version control system. Valid values: Git or Tfvc. Defaults to Git.

visibility String

Specifies the visibility of the Project. Valid values: private or public. Defaults to private.

workItemTemplate String

Specifies the work item template. Valid values: Agile, Basic, CMMI or Scrum. Defaults to Agile.

Outputs

All input properties are implicitly available as output properties. Additionally, the Project resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

ProcessTemplateId string

The Process Template ID used by the Project.

Id string

The provider-assigned unique ID for this managed resource.

ProcessTemplateId string

The Process Template ID used by the Project.

id String

The provider-assigned unique ID for this managed resource.

processTemplateId String

The Process Template ID used by the Project.

id string

The provider-assigned unique ID for this managed resource.

processTemplateId string

The Process Template ID used by the Project.

id str

The provider-assigned unique ID for this managed resource.

process_template_id str

The Process Template ID used by the Project.

id String

The provider-assigned unique ID for this managed resource.

processTemplateId String

The Process Template ID used by the Project.

Look up Existing Project Resource

Get an existing Project 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?: ProjectState, opts?: CustomResourceOptions): Project
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        features: Optional[Mapping[str, str]] = None,
        name: Optional[str] = None,
        process_template_id: Optional[str] = None,
        version_control: Optional[str] = None,
        visibility: Optional[str] = None,
        work_item_template: Optional[str] = None) -> Project
func GetProject(ctx *Context, name string, id IDInput, state *ProjectState, opts ...ResourceOption) (*Project, error)
public static Project Get(string name, Input<string> id, ProjectState? state, CustomResourceOptions? opts = null)
public static Project get(String name, Output<String> id, ProjectState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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.
The following state arguments are supported:
Description string

The Description of the Project.

Features Dictionary<string, string>

Defines the status (enabled, disabled) of the project features.
Valid features are boards, repositories, pipelines, testplans, artifacts

Name string

The Project Name.

ProcessTemplateId string

The Process Template ID used by the Project.

VersionControl string

Specifies the version control system. Valid values: Git or Tfvc. Defaults to Git.

Visibility string

Specifies the visibility of the Project. Valid values: private or public. Defaults to private.

WorkItemTemplate string

Specifies the work item template. Valid values: Agile, Basic, CMMI or Scrum. Defaults to Agile.

Description string

The Description of the Project.

Features map[string]string

Defines the status (enabled, disabled) of the project features.
Valid features are boards, repositories, pipelines, testplans, artifacts

Name string

The Project Name.

ProcessTemplateId string

The Process Template ID used by the Project.

VersionControl string

Specifies the version control system. Valid values: Git or Tfvc. Defaults to Git.

Visibility string

Specifies the visibility of the Project. Valid values: private or public. Defaults to private.

WorkItemTemplate string

Specifies the work item template. Valid values: Agile, Basic, CMMI or Scrum. Defaults to Agile.

description String

The Description of the Project.

features Map<String,String>

Defines the status (enabled, disabled) of the project features.
Valid features are boards, repositories, pipelines, testplans, artifacts

name String

The Project Name.

processTemplateId String

The Process Template ID used by the Project.

versionControl String

Specifies the version control system. Valid values: Git or Tfvc. Defaults to Git.

visibility String

Specifies the visibility of the Project. Valid values: private or public. Defaults to private.

workItemTemplate String

Specifies the work item template. Valid values: Agile, Basic, CMMI or Scrum. Defaults to Agile.

description string

The Description of the Project.

features {[key: string]: string}

Defines the status (enabled, disabled) of the project features.
Valid features are boards, repositories, pipelines, testplans, artifacts

name string

The Project Name.

processTemplateId string

The Process Template ID used by the Project.

versionControl string

Specifies the version control system. Valid values: Git or Tfvc. Defaults to Git.

visibility string

Specifies the visibility of the Project. Valid values: private or public. Defaults to private.

workItemTemplate string

Specifies the work item template. Valid values: Agile, Basic, CMMI or Scrum. Defaults to Agile.

description str

The Description of the Project.

features Mapping[str, str]

Defines the status (enabled, disabled) of the project features.
Valid features are boards, repositories, pipelines, testplans, artifacts

name str

The Project Name.

process_template_id str

The Process Template ID used by the Project.

version_control str

Specifies the version control system. Valid values: Git or Tfvc. Defaults to Git.

visibility str

Specifies the visibility of the Project. Valid values: private or public. Defaults to private.

work_item_template str

Specifies the work item template. Valid values: Agile, Basic, CMMI or Scrum. Defaults to Agile.

description String

The Description of the Project.

features Map<String>

Defines the status (enabled, disabled) of the project features.
Valid features are boards, repositories, pipelines, testplans, artifacts

name String

The Project Name.

processTemplateId String

The Process Template ID used by the Project.

versionControl String

Specifies the version control system. Valid values: Git or Tfvc. Defaults to Git.

visibility String

Specifies the visibility of the Project. Valid values: private or public. Defaults to private.

workItemTemplate String

Specifies the work item template. Valid values: Agile, Basic, CMMI or Scrum. Defaults to Agile.

Import

Azure DevOps Projects can be imported using the project name or by the project Guid, e.g.

 $ pulumi import azuredevops:Core/project:Project example "Example Project"

or

 $ pulumi import azuredevops:Core/project:Project example 00000000-0000-0000-0000-000000000000

Package Details

Repository
https://github.com/pulumi/pulumi-azuredevops
License
Apache-2.0
Notes

This Pulumi package is based on the azuredevops Terraform Provider.