| layout | page_title | description |
|---|---|---|
azuredevops |
AzureDevops: azuredevops_project |
Manages a project within Azure DevOps organization. |
Manages a project within Azure DevOps.
resource "azuredevops_project" "example" {
name = "Example Project"
visibility = "private"
version_control = "Git"
work_item_template = "Agile"
description = "Managed by Terraform"
features = {
testplans = "disabled"
artifacts = "disabled"
}
}The following arguments are supported:
name- (Required) The Project Name.
-
description- (Optional) The Description of the Project. -
visibility- (Optional) Specifies the visibility of the Project. Possible values are:privateorpublic. Defaults toprivate. -
version_control- (Optional) Specifies the version control system. Possbile values are:GitorTfvc. Defaults toGit. -
work_item_template- (Optional) Specifies the work item template. Possible values are:Agile,Basic,CMMI,Scrumor a custom, pre-existing one. Defaults toAgile. An empty string will use the parent organization default. -
features- (Optional) Defines the status (enabled,disabled) of the project features. Valid features areboards,repositories,pipelines,testplans,artifactsFeatures Possible Values boards enabled, disabled repositories enabled, disabled pipelines enabled, disabled testplans enabled, disabled artifacts enabled, disabled ~> NOTE: It's possible to define project features both within the
azuredevops_project_featuresresource and via thefeaturesblock by using theazuredevops_projectresource. However it's not possible to use both methods to manage features, since there'll be conflicts.
In addition to all arguments above, the following attributes are exported:
id- The Project ID of the Project.process_template_id- The Process Template ID used by the Project.
The timeouts block allows you to specify timeouts for certain actions:
create- (Defaults to 10 minutes) Used when creating the Project.read- (Defaults to 5 minute) Used when retrieving the Project.update- (Defaults to 10 minutes) Used when updating the Project.delete- (Defaults to 10 minutes) Used when deleting the Project.
Azure DevOps Projects can be imported using the project name or by the project Guid, e.g.
terraform import azuredevops_project.example "Example Project"or
terraform import azuredevops_project.example 00000000-0000-0000-0000-000000000000- Project & Team: Read, Write, & Manage
- Work Items: Read