How to: Create Dashboard to visualize Teams and Iteration Capacities

This script and report extract all teams and iteration capacities on each Team Project in Azure DevOps

An original script is available on my GitHub repository. See below this script:

Let’s go understand each command used.

  1. PowerShell script will receive the following parameters:
  • $PAT = Personal Access token to connect on Azure DevOps;
  • $Organization = Organization URL to list Teams and Iteration Capacities on each project;
  • $Connstr = connection string to Azure SQL Database that stores the report information. To create this report, it’s necessary to create previously a Azure SQL Server and Database and run a script below:

2. Projects List = uses this REST API to list all projects on the Azure DevOps organization.

3. Teams Get All Teams = uses this REST API to list all teams on each Team Project

4. Iterations List = uses this REST API to list all iterations on each team

5. IterationCapacities = uses this REST API to get total capacity and a total day off on each iteration

6. After extract all projects, teams, iterations, and capacities, this information is stored in a table in Azure SQL.

7. After insert information into a table, I connected this database on Power BI:

  • Team Project (1) = Filter report using Team Project field;
  • Team Name (2) = Filter report using Team Name field;
  • Iteration Name (3) = Filter using Iteration Name field;
  • Report Information (4) = List all information about Team Project, Team Name, Iteration Name, and respective Capacity per Day and Days off.

DevOps Consultant at N3