azuredevops_serviceendpoint_servicefabric

Manages a Service Fabric service endpoint within Azure DevOps.

Example Usage

Client Certificate Authentication

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

resource "azuredevops_serviceendpoint_servicefabric" "example" {
  project_id            = azuredevops_project.example.id
  service_endpoint_name = "Example Service Fabric"
  description           = "Managed by Terraform"
  cluster_endpoint      = "tcp://test"

  certificate {
    server_certificate_lookup     = "Thumbprint"
    server_certificate_thumbprint = "0000000000000000000000000000000000000000"
    client_certificate            = filebase64("certificate.pfx")
    client_certificate_password   = "password"
  }
}

Azure Active Directory Authentication

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

resource "azuredevops_serviceendpoint_servicefabric" "test" {
  project_id            = azuredevops_project.project.id
  service_endpoint_name = "Sample Service Fabric"
  description           = "Managed by Terraform"
  cluster_endpoint      = "tcp://test"

  azure_active_directory {
    server_certificate_lookup     = "Thumbprint"
    server_certificate_thumbprint = "0000000000000000000000000000000000000000"
    username                      = "username"
    password                      = "password"
  }
}

Windows Authentication

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

resource "azuredevops_serviceendpoint_servicefabric" "test" {
  project_id            = azuredevops_project.project.id
  service_endpoint_name = "Sample Service Fabric"
  description           = "Managed by Terraform"
  cluster_endpoint      = "tcp://test"

  none {
    unsecured   = false
    cluster_spn = "HTTP/www.contoso.com"
  }
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

Azure DevOps Service Endpoint Service Fabric can be imported using projectID/serviceEndpointID or projectName/serviceEndpointID

terraform import azuredevops_serviceendpoint_servicefabric.example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000