Connect Azure DevOps repositories to Catalog with the Konnect UI

Uses: Catalog
Incompatible with
on-prem
Related Documentation
TL;DR

Configure the Azure DevOps integration with your organization name and PAT, create a Catalog service, then map the discovered Azure DevOps repository resource to that Catalog service.

Prerequisites

If you don’t have a Konnect account, you can get started quickly with our onboarding wizard.

  1. The following Konnect items are required to complete this tutorial:
    • Personal access token (PAT): Create a new personal access token by opening the Konnect PAT page and selecting Generate Token.
  2. Set the personal access token as an environment variable:

    export KONNECT_TOKEN='YOUR KONNECT TOKEN'
    

You need the Integration Admin role in Konnect to install and authorize Catalog integrations.

You need to configure the following in Azure DevOps:

Your PAT can be created with an expiration period of your choice, up to a maximum of one year. Make sure to renew the PAT before it expires to avoid interruptions.

Configure the Azure DevOps integration

Before you can discover Azure DevOps repositories in Catalog, you must configure the integration:

  1. In the Konnect sidebar, click Catalog.
  2. In the Catalog sidebar, click Integrations.
  3. Click Azure DevOps.
  4. Click Add Azure DevOps instance.
  5. In the Azure DevOps organization name field, enter your organization name exactly as it appears in Azure DevOps.
  6. In the Azure DevOps personal access token (PAT) field, enter your Azure DevOps token.
  7. In the Display name field, enter azure-devops-repository-service.
  8. In the Instance name field, enter azure-devops-repository-service.
  9. (Optional) In the Description field, enter a description for this instance.
  10. Click Save.

If you don’t immediately see resources, try manually syncing your Azure DevOps integration. From the Konnect UI, navigate to the Azure DevOps integration that you just installed. Then, from the Actions dropdown menu, select Sync Now.

Create a Catalog service and map the Azure DevOps resources

After you configure the Azure DevOps integration, create a service in Catalog and map an Azure DevOps repository resource to it.

In this tutorial, we’ll refer to your Azure DevOps repository as azure-devops-repository.

  1. In the Konnect sidebar, click Catalog.
  2. In the Catalog sidebar, click Services.
  3. Click New service.
  4. In the Display Name field, enter azure-devops-repository-service.
  5. Click Create.
  6. Click Map Resources.
  7. Select the azure-devops-repository checkbox.
  8. Click Map 1 Resource.

Validate the mapping

To confirm that the Azure DevOps resource is now mapped to the intended service, navigate to the new service:

  1. In the Konnect sidebar, click Catalog.
  2. In the Catalog sidebar, click Services.
  3. Click the azure-devops-repository-service service.
  4. Click the Resources tab.

You’ll see the azure-devops-repository-service resource listed.

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!