Forum Discussion
rfrezino
Aug 21, 2023Copper Contributor
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:
- Our repositories are located on Github
- Yes, the service connection is there. I can use it normally from Azure DevOps Web
- 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