Create a YAML Pipeline and Start Its First Run
A 3-step recipe with Azure DevOps. We can help you get access.
Recipe · 3 steps
Create a YAML Pipeline and Start Its First Run
with Azure DevOps · Continuous Integration Management
Create a YAML pipeline, confirm it, and trigger its first run.
- Create a YAML pipeline pointed at the supplied YAML path in an Azure Repos Git repository.
- Fetch the pipeline by ID to confirm it was created and capture its revision.
- Trigger an initial run of the new pipeline against the requested branch.
What you'll need to have ready
- apiVersion: Azure DevOps REST API version (e.g. 7.1).
- name: Display name for the new pipeline.
- yamlPath: Path to the YAML file in the repository (e.g. /azure-pipelines.yml).
- repositoryId: Repository GUID for the Azure Repos Git repository.
- branchRef: Branch ref to run against (e.g. refs/heads/main).
- accessToken: Azure DevOps bearer (OAuth 2.0) access token.
For your developer
Arazzo workflow microsoft-azure-devops:create-and-run-pipeline, 3 operations: pipelines_create → pipelines_get → runs_run. Specs on APIs.io.