Skip to content

Conversation

aklakina
Copy link

@aklakina aklakina commented Jul 4, 2025

Disclaimer

I know there are lot of pull requests and issues trying to cover this issue but I didn't find any that is generic enough to be useable by any and all service endpoint integration.

Description

This pull request introduces comprehensive support for managing and retrieving Service Endpoints through Terraform in a standardized manner.

The following key changes are included:

1. New Resource: azuredevops_serviceendpoint_generic_v2

  • Purpose:
    Enables users to create and manage Service Endpoints in Azure DevOps, supporting integration with external services using custom authentication mechanisms.
  • Features:
    • Directly integrates with how Azure Devops manages service endpoints
    • Has minimal amount of required attributes, everything else is gathered from Azure Devops through api.
    • The configuration is validated during plan time to evaluate what data is missing or not appropriate.
  • Documentation:
    • Provides detailed usage examples for different authentication types.
    • Lists all supported arguments and exported attributes.
    • Includes import instructions for existing service endpoints.

2. New Data Source: azuredevops_serviceendpoint_generic_v2

  • Purpose:
    Allows users to retrieve information about existing Service Endpoints by either ID or name, facilitating data-driven Terraform configurations.
  • Features:
    • Supports lookup by both service_endpoint_id and service_endpoint_name.
    • Exposes all relevant attributes, including authorization details and custom data.
  • Documentation:
    • Offers example queries for both lookup methods.
    • Clearly documents all arguments and exported attributes.

3. Documentation

  • Resource Documentation:
    • Located in website/docs/r/serviceendpoint_generic_v2.html.markdown.
    • Explains resource arguments, attributes, and provides multiple usage scenarios.
  • Data Source Documentation:
    • Located in website/docs/d/serviceendpoint_generic_v2.html.markdown.
    • Details data source arguments, attributes, and example queries.

4. Benefits

Standardized:

No need for specific service endpoint resource or data besides this.


These enhancements significantly improve the Azure DevOps Terraform provider by enabling any service endpoint scenario without the need for adding a new service endpoint integration.

All Submissions:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • My code follows the code style of this project.
  • I ran lint checks locally prior to submission.
  • Have you checked to ensure there aren't other open PRs for the same update/change?

What about the current behavior has changed?

Issue Number:

Does this introduce a change to go.mod, go.sum or vendor/?

  • Yes
  • No

Does this introduce a breaking change?

  • Yes
  • No

@aklakina aklakina marked this pull request as draft July 4, 2025 14:44
Levente Laszlo Papp and others added 17 commits July 4, 2025 20:54
…ication parameters"

This reverts commit 7359e00d
This reverts commit 9f7c2aebc129272402aee39f261be1499e6baa11.
…ce endpoints"

This reverts commit b9e32498fc8396355bab612bc61609340d2e79a6.
@aklakina aklakina marked this pull request as ready for review July 7, 2025 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant