Azure DevOps Dashboard
Introduction
When you are managing Azure DevOps in a large enterprise organization, and you are still using only one Azure DevOps organization account, you are probably hitting some limits or have potential performance issues. Microsoft’s recommendation is to have around 300 projects in a single Azure DevOps organization account. I have seen Azure DevOps organizations with more than 600 projects that still work.
The solution is to set up a multi-organization structure. Move all the inactive projects to an archive or boneyard Azure DevOps organization account and add an extra Azure DevOps organization account per department.
Next, you need some insights and automation on which projects have no activity anymore. The Azure DevOps Dashboard gives you the basic insights and an API to automate tasks like emailing the owners of inactive projects.
Azure DevOps Dashboard
This dashboard solution generates a simple overview of all the Azure DevOps projects in your organization and calculates the last known activity in days on commits, work items, and the project itself. You can connect this dashboard (using the included endpoint) to Microsoft Power Automate or Excel to automate tasks on project level.
Installation
The solution runs on as a single Azure Web App, it uses a background WebJob to collect all the data needed to present in the web dashboard.
Prerequisites
- An Azure account with an active subscription. Create an account for free.
- Install the Azure CLI on Windows to automate the following steps
- An Azure DevOps personal access token (PAT). See here how to get a personal access token.
- Download the Azure DevOps Dashboard Release.zip package.
Create an Azure Web App
In the next steps, you will create a resource group, an app service plan (the webserver), and the Web App (the solution itself). We also add two application settings to store the Azure DevOps personal access token.
- Login into your Azure subscription
|
|
- (Optional) Select the subscription where you like to deploy the dashboard.
|
|
- Create a resource group, change the name
rg-azdevops
|
|
- Create an app service plan and webapp, change the names
plan-azdevops
andazdevops
|
|
- Add your Azure DevOps URL and personal access token (PAT)
|
|
- Set the
always-on
future we need for the WebJob
|
|
Deploy the Azure DevOps Dashboard
Did you download the Azure DevOps Dashboard Release.zip package? After the installation we also run the WebJob for the first time, this can take a while depending on how many projects you have in your Azure DevOps organization account.
Authentication In the release package authentication is disabled! Please register your application first in your Azure Active Directory by following the steps described here. You only need to update the appsettings.json inside the release package.
|
|
Architecture
You can also run the WebJob locally, set the following two environment variable first azDevOpsUri
and azDevOpsPat
that corresponds with your Azure DevOps organization account:
|
|
Using the API
To automate tasks, you can use the API to connect to Excel, Microsoft Power Automate, or whatever you need. The /api/data
API will return a list of the following project properties:
|
|
Source Code
Alle source code can be found on GitHub.