azuredevops_serviceendpoint_maven

Manages a Maven service endpoint within Azure DevOps, which can be used as a resource in YAML pipelines to connect to a Maven instance.

Example Usage

resource "azuredevops_project" "example" {
  name               = "Example Project"
  visibility         = "private"
  version_control    = "Git"
  work_item_template = "Agile"
  description        = "Managed by Terraform"
}

resource "azuredevops_serviceendpoint_maven" "example" {
  project_id            = azuredevops_project.example.id
  service_endpoint_name = "maven-example"
  description           = "Service Endpoint for 'Maven' (Managed by Terraform)"
  url                   = "https://example.com"
  repository_id         = "example"

  authentication_token {
    token = "0000000000000000000000000000000000000000"
  }
}

Alternatively a username and password may be used.

resource "azuredevops_project" "example" {
  name               = "Example Project"
  visibility         = "private"
  version_control    = "Git"
  work_item_template = "Agile"
  description        = "Managed by Terraform"
}

resource "azuredevops_serviceendpoint_maven" "example" {
  project_id            = azuredevops_project.example.id
  service_endpoint_name = "maven-example"
  description           = "Service Endpoint for 'Maven' (Managed by Terraform)"
  url                   = "https://example.com"
  repository_id         = "example"

  authentication_basic {
    username              = "username"
    password              = "password"
  }
}

Arguments Reference

The following arguments are supported:



A authentication_token block supports the following:


A authentication_basic block supports the following:

Attributes Reference

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

Import

Service Connection Maven can be imported using the projectId/id or or projectName/id, e.g.

terraform import azuredevops_serviceendpoint_maven.example projectName/00000000-0000-0000-0000-000000000000