Logo

dev-resources.site

for different kinds of informations.

Azure Devops Converting Classic Pipelines to Yaml Based Pipeline

Published at
12/31/2024
Categories
azure
azuredevops
azurepipelines
yaml
Author
atahanceylan
Author
12 person written this
atahanceylan
open
Azure Devops Converting Classic Pipelines to Yaml Based Pipeline

In this tutorial blog post, I will mention about how to transform old build, release classic pipelines to yaml based pipelines. Classic Pipeline is GUI based pipeline creator that you use drag and drop pipeline steps. In old versions of these pipelines you don’t have view as yaml option. So, you need to transform this GUI based pipelines to yaml pipelines.
Prerequisites:

Azure Devops Organizations

I created a classic pipeline with WinampToSpotifyClassicPipeline from my Github WinampToSpotifyWeb repository.

Use the classic editor to create a pipeline without YAML.

Classic Pipeline GUI

I ran the newly created pipeline and finished successfully.

Successful pipeline run
Now we need to use yamlizr tool for transformation. yamlizr is a .NET Global Tool which converts Azure DevOps Classic Designer Build/Release Definitions and any referenced Task Groups en-masse into their YAML Pipeline or GitHub Action equivalent.
Installation/Set-up
1-) We need to create a Personal Access Token from Azure Devops Settings with following scopes:
Build - Read , Deployment Groups - Read & Manage, Release – Read, Task Groups - Read, Variable Groups - Read
Personal Access Token

Personal Access Token Scopes

2-) Download and install either;
.NET 8.0 SDK
.NET 9.0 SDK
3-) From a command line shell install the tool;
dotnet tool update --global yamlizr

Dotnet tool update globally

4-) CLI Operation
To generate YAML files in the c:/temp/myoutputfolder output folder execute the following command;
yamlizr generate -pat your personal access token -org https://dev.azure.com/atahanceylan/ -proj
learning_azure_devops -out c:/temp/myoutputfolder

Yamlzr cli code run output

We can see created yaml files under C:\Temp\myoutputfolder folder.

output folder

build pipeline yaml

release pipeline output

Now you can use yaml files in your pipelines.

azuredevops Article's
30 articles in total
Favicon
Creating SBOM with sbom-tool and CycloneDX on Azure DevOps
Favicon
Public IP Address in Azure | Understanding Public IP Address in Azure VM
Favicon
Terraform - Mastering Idempotency Violations - Handling Resource Conflicts and Failures in Azure
Favicon
Azure Devops Converting Classic Pipelines to Yaml Based Pipeline
Favicon
Register Azure DevOps Agents with Service Principal Secret !
Favicon
The Ultimate Guide to Azure DevOps: Key Benefits for Software Development Projects
Favicon
Azure DevOps Zero to Hero Series
Favicon
Azure DevOps Series - Azure Boards
Favicon
cp: cannot stat 'bhfonlineshop': No such file or directory. Azure devops pipeline error
Favicon
How to Maintain Issue Hierarchy Between Jira and Azure DevOps
Favicon
Azure DevOps | Using Terraform
Favicon
Azure DevOps | Installing Postman and Newman using npm
Favicon
Azure DevOps | Running JMeter Test Collection using JMeter Docker Image
Favicon
Azure DevOps | Running a Postman Collection using Newman Docker Image
Favicon
Azure DevOps | Deploy Postman Tests in Azure DevOps Test Plans
Favicon
Exploring Microsoft Azure AI Capabilities Using React, Github Actions, Azure Static Apps and Azure AI
Favicon
Azure DevOps Zero-to-Hero
Favicon
Azure pipelines - Passing variables across stages
Favicon
Terraform - Keep dependencies up to date with Dependabot (Azure DevOps version)
Favicon
Automate Azure VM Password Rotation with PowerShell and Azure DevOps
Favicon
Investigating az-cli performance on the hosted Azure Pipelines and GitHub Runners
Favicon
Azure DevOps Pipeline deployments to Azure App Services with Access Restrictions
Favicon
Step by step for build , test and deploy using azuredevops pipeline
Favicon
Step by Step instruction hosting on aks cluster for begineers
Favicon
Deploying to Azure from Azure DevOps without secrets
Favicon
VSBuild task fails on self-hosted Azure Pipelines Agent
Favicon
Azure devops pipeline for dotnet with cicd
Favicon
Bicep modules with PSRule – Testing, documentation, CI Pipeline & examples
Favicon
Conectando o VS Community ao Azure DevOps
Favicon
Como clonar um projeto no Azure DevOps

Featured ones: