Templates in Azure Pipelines: What, Why, and How


This is an Introduction to YAML Templates in Azure Pipelines.

Templates in Azure Pipelines are very powerful tools, that allow you to reuse your code in multiple Azure Pipelines.

Do you want to know how to use Pipelines template? We will answer the most common questions about Templates in Azure Pipelines: What, Why, and How

Do you want to access exclusive content, live chats and Q&As, polls, and even 1:1 calls with me? Join my Patreon: https://www.patreon.com/CoderDave

Book a 1:1 Consultation with CoderDave: https://geni.us/cdconsult

Buy me a coffee: https://www.buymeacoffee.com/CoderDave
PayPal me donation: https://paypal.me/dabenveg

► Website: https://coderdave.io
► Discord: https://geni.us/cddiscord
► Newsletter: https://coderdave.io/newsletter
► Blog: https://dev.to/n3wt0n
► GitHub: https://github.com/n3wt0n
► Twitter: https://twitter.com/davidebenvegnu
► Facebook: https://www.facebook.com/CoderDaveYT

► Pipelines Gates and Checks Deep Dive: https://youtu.be/FbXKpo6oEyg
► Azure Pipelines – Classic vs YAML: https://youtu.be/3cGtA__dKUc
► Azure Pipelines Triggers series: https://youtube.com/playlist?list=PL-HoEl0ZEUlJ72OnulpdyP96rBptxNNOp

0:00 Intro
0:26 What are YAML Templates
1:37 Why YAML Templates – Alignment
2:14 Consistency and Speed
3:09 Centralized Editing
3:38 Simplicity
4:00 Using Steps, Jobs, and Stages Templates
8:28 Passing Parameters to a Template
10:22 Parameters from Output Variables
12:04 Conclusions
12:26 Bloopers

🎤PODCAST: https://geni.us/cdpodcast

Have a question about DevOps, Cloud, Coding, or Anything Else? Post in comments section of this video!

🔴SUBSCRIBE to CoderDave here: https://www.youtube.com/CoderDave?sub_confirmation=1

👕GET MY MERCH: https://geni.us/cdmerch

► Twingate – Connect to your Private Resources SECURELY: https://geni.us/twingate
► TubeBuddy – #1 YouTube channel Management tool (FREE): https://www.tubebuddy.com/CoderDave
► Moosend – Free Newsletter and Automation Platform: https://geni.us/moosend

► Music – Epidemic Sound (Get 30 days free): https://epidemicsound.com/referral/zf8fl3/
► Editing – Adobe Premiere Pro: https://geni.us/AdobeVideo
► Gear I Use for YouTube: https://kit.co/CoderDave/gear-i-use-for-youtube
► Gear I Use for Streaming: https://kit.co/CoderDave/gear-i-use-for-streaming
► My Computer Setup: https://kit.co/CoderDave/main-computer-accessories
► Full office setup: https://github.com/n3wt0n/work-from-home-setup

Some product links are affiliate links which means if you buy something I’ll receive a small commission at no additional cost to you.
As an Amazon Associate, I earn from qualifying purchases.


    • blank
      Dan Akm
      May 09, 2022 05:54 am Reply

      HI Dave, excellent video series here!

      I have a use case where I have a project with several repositories, each repo with their own build pipelines that publish artifacts. I want a single release pipeline, that downloads artifacts from all of my other repositories, and on run-time I want to pick and choose which artifacts would I like to create a release for. Can you please share what would be a good approach to do this?

    • blank
      May 09, 2022 05:54 am Reply

      Only Microsoft is so stupid as to put a maximum number of templates and nesting…. Suckers….

    • blank
      priyanka agarwal
      May 09, 2022 05:54 am Reply

      Was looking forward for the deep dive video .. can we assign values to parameters at runtime . ?

    • blank
      Bharathi Nayak
      May 09, 2022 05:54 am Reply

      how can i download above yaml files ?

    • blank
      Alejandro Menocal
      May 09, 2022 05:54 am Reply

      Can you reference a template file from other repos? (Like a master template repo)

    • blank
      May 09, 2022 05:54 am Reply

      Now I understand why YAML build files are so important, and why the "visually defined" build definitions I like so well on Azure Devops are not the preferred way. Nice vid, +1, thanks.

    • blank
      May 09, 2022 05:54 am Reply

      That is exactly what I needed yesterday, great timing.

    • blank
      Marco Parenzan
      May 09, 2022 05:54 am Reply

      Great video. One question. As a company use and reuse templates in many different projects, where do they typically collect templates? Do they use one specific project in a collection to store all templates? Or is there any other practice?

Leave us a comment