Skip to content

Latest commit

 

History

History
66 lines (48 loc) · 2.54 KB

serviceendpoint_runpipeline.html.markdown

File metadata and controls

66 lines (48 loc) · 2.54 KB
layout page_title description
azuredevops
AzureDevops: azuredevops_serviceendpoint_runpipeline
Manages a Azure DevOps plugin RunPipeline.

azuredevops_serviceendpoint_runpipeline

Manages a Azure DevOps Service Connection service endpoint within Azure DevOps. Allows to run downstream pipelines, monitoring their execution, collecting and consolidating artefacts produced in the delegate pipelines (yaml block task: RunPipelines@1). More details on Marketplace page: RunPipelines

Example Usage

resource "azuredevops_project" "project" {
  name               = "Sample Project"
  visibility         = "private"
  version_control    = "Git"
  work_item_template = "Agile"
}

resource "azuredevops_serviceendpoint_runpipeline" "serviceendpoint" {
  project_id            = azuredevops_project.project.id
  service_endpoint_name = "Sample Pipeline Runner"
  organization_name     = "MyOrganization"
  auth_personal {
    # Also can be set with AZDO_PERSONAL_ACCESS_TOKEN environment variable
    personal_access_token = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  }
  description = "Managed by Terraform"
}

Argument Reference

The following arguments are supported:

  • project_id - (Required) The project ID or project name.
  • service_endpoint_name - (Required) The Service Endpoint name.
  • organization_name - (Required) The organization name used for Organization Url and Release API Url fields.
  • auth_personal - (Required) An auth_personal block as documented below. Allows connecting using a personal access token.
  • description - (Optional) The Service Endpoint description. Defaults to Managed by Terraform.

auth_personal block supports the following:

  • personal_access_token - (Required) The Personal Access Token for Azure DevOps Pipeline. It also can be set with AZDO_PERSONAL_ACCESS_TOKEN environment variable.

Attributes Reference

The following attributes are exported:

  • id - The ID of the service endpoint.
  • project_id - The project ID or project name.
  • service_endpoint_name - The Service Endpoint name.

Relevant Links

Import

Azure DevOps Service Endpoint can be imported using the project id, service connection id, e.g.

$ terraform import azuredevops_serviceendpoint_runpipeline.serviceendpoint projectID/00000000-0000-0000-0000-000000000000