I recently started creating Azure DevOps templates to create more extensible pipelines. I figured setting tags would be a good place to start with templates.
Learn how to call the Azure DevOps API using PowerShell with Pester tests and set up a CI job in Azure DevOps to run the code.
code from the post available at https://github.com/devopsdina/remove-offline-agents