Forum Discussion

rfrezino's avatar
rfrezino
Copper Contributor
Aug 21, 2023

How to register an azure pipeline from a Github Repository using Azure Devops API

Hello!

I'm working on automating Azure Pipeline registrations. (to work similarly to GitHub actions)

Our scenario is:

  1. Our repositories are located on Github
    1. Yes, the service connection is there. I can use it normally from Azure DevOps Web
  2. Our pipeline definition is located in a file in the path automation/pipeline.yaml for each repository.

The question is, how I can use the Azure Devops API to do it?

I'm checking the documentation here: https://learn.microsoft.com/en-us/rest/api/azure/devops/pipelines/pipelines/create?view=azure-devops-rest-7.0

But I didn't find anything relevant. The descriptions of the parameters don't say much about how to configure the repository etc. Am I missing any necessary documentation? Any directions on how to do it?

No RepliesBe the first to reply

Resources