| layout | azuredevops |
|---|---|
| page_title | AzureDevops: azuredevops_environment |
| description | Manages an Environment. |
Manages an Environment.
resource "azuredevops_project" "example" {
name = "Example Project"
work_item_template = "Agile"
version_control = "Git"
visibility = "private"
description = "Managed by Terraform"
}
resource "azuredevops_environment" "example" {
project_id = azuredevops_project.example.id
name = "Example Environment"
}The following arguments are supported:
-
name- (Required) The name which should be used for this Environment. -
project_id- (Required) The ID of the project. Changing this forces a new Environment to be created.
description- (Optional) A description for the Environment.
In addition to the Arguments listed above - the following Attributes are exported:
id- The ID of the Environment.
The timeouts block allows you to specify timeouts for certain actions:
create- (Defaults to 10 minutes) Used when creating the Environment.read- (Defaults to 5 minute) Used when retrieving the Environment.update- (Defaults to 10 minutes) Used when updating the Environment.delete- (Defaults to 10 minutes) Used when deleting the Environment.
Azure DevOps Environments can be imported using the project ID and environment ID, e.g.:
terraform import azuredevops_environment.example 00000000-0000-0000-0000-000000000000/0