In a similar approach to Variable Groups, Task Groups Allow you to a create a set of Tasks that you can reuse as a single entity.
The main pro is that when you want to change the configuration of the Task group, let’s say you want to add or remove a task to/from the group. you only have to do it on the group, and it will be effective on every Pipeline, Release, Deployment will where it is referenced.
Terraform use case
So let’s say I have multiple Infrastructure Repos that contain my Terraform configuration files. And let’s say I have multiple release pipelines. I will have to manually create the terraform Init, Validate, Plan and Apply steps manually for each Release pipeline. Thanks but no thanks.
We can create a Task Group for these standard operations and include them as a single Task for every Release Pipeline.
From any stage under Release Pipelines start creating your Tasks, then select the ones you want to include in your task group.
Under Pipelines > Task Groups you should see the newly created task group.
From here you can use a single task in your future release pipelines, trust me, this is a real time saver.