layout | page_title | description |
---|---|---|
azuredevops |
AzureDevops: azuredevops_serviceendpoint_servicefabric |
Manages a Service Fabric service endpoint Azure DevOps organization. |
Manages a Service Fabric service endpoint within Azure DevOps.
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"
}
}
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"
}
}
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"
}
}
The following arguments are supported:
-
project_id
- (Required) The ID of the project. -
service_endpoint_name
- (Required) The Service Endpoint name. -
cluster_endpoint
- (Required) Client connection endpoint for the cluster. Prefix the value with 'tcp://';. This value overrides the publish profile. -
description
- (Optional) The Service Endpoint description. Defaults toManaged by Terraform
. -
One of either
certificate
orazure_active_directory
ornone
blocks -
certificate
server_certificate_lookup
- (Required) Verification mode for the cluster. Possible values includeThumbprint
orCommonName
.server_certificate_thumbprint
- (Optional) The thumbprint(s) of the cluster's certificate(s). This is used to verify the identity of the cluster. This value overrides the publish profile. Separate multiple thumbprints with a comma (',')server_certificate_common_name
- (Optional) The common name(s) of the cluster's certificate(s). This is used to verify the identity of the cluster. This value overrides the publish profile. Separate multiple common names with a comma (',')client_certificate
- (Required) Base64 encoding of the cluster's client certificate file.client_certificate_password
- (Optional) Password for the certificate.
-
azure_active_directory
server_certificate_lookup
- (Required) Verification mode for the cluster. Possible values includeThumbprint
orCommonName
.server_certificate_thumbprint
- (Optional) The thumbprint(s) of the cluster's certificate(s). This is used to verify the identity of the cluster. This value overrides the publish profile. Separate multiple thumbprints with a comma (',')server_certificate_common_name
- (Optional) The common name(s) of the cluster's certificate(s). This is used to verify the identity of the cluster. This value overrides the publish profile. Separate multiple common names with a comma (',')username
- (Required) - Specify an Azure Active Directory account.password
- (Required) - Password for the Azure Active Directory account.
-
none
unsecured
- (Optional) Skip using windows security for authentication.cluster_spn
- (Optional) Fully qualified domain SPN for gMSA account. This is applicable only ifunsecured
option is disabled.
The following attributes are exported:
id
- The ID of the service endpoint.project_id
- The ID of the project.service_endpoint_name
- The Service Endpoint name.
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