layout | page_title | description |
---|---|---|
azuredevops |
AzureDevops: azuredevops_environment |
Use this data source to access information about an Environment. |
Use this data source to access information about 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"
description = "Managed by Terraform"
}
data "azuredevops_environment" "example" {
project_id= azuredevops_project.example.id
environment_id = azuredevops_environment.example.id
}
The following arguments are supported:
project_id
- (Required) The ID of the project.
-
environment_id
- (Optional) The ID of the Environment. -
name
- (Optional) Name of the Environment.
~> NOTE: One of either environment_id
or name
must be specified.
In addition to the Arguments list above - the following Attributes are exported:
-
name
- The name of the Environment. -
description
- A description for the Environment.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minute) Used when retrieving the Environment.