Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 1.74 KB

environment.html.markdown

File metadata and controls

65 lines (43 loc) · 1.74 KB
layout page_title description
azuredevops
AzureDevops: azuredevops_environment
Use this data source to access information about an Environment.

Data Source: azuredevops_environment

Use this data source to access information about an Environment.

Example Usage

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
}

Arguments Reference

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.

Attributes Reference

In addition to the Arguments list above - the following Attributes are exported:

  • name - The name of the Environment.

  • description - A description for the Environment.

Relevant Links

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minute) Used when retrieving the Environment.