Azure DevOps plugin
For more information about what this plugin does and the data streams it retrieves, see:
Monitor the Builds and Releases from your Azure DevOps environment.
To add a data source click on the + next to Data Sources on the left-hand menu in SquaredUp. Search for the data source and click on it to open the Configure data source page.
Before you start
Azure DevOps data source for SquaredUp support two authentication methods, Microsoft Entra ID and Personal Access Token (PAT).
- Microsoft Entra ID: This method allows the data source instance to access Azure DevOps using a user account. It provides less granular control over permissions, which is not ideal from a "least privilege" perspective but can be useful when experimenting with the data source in non-production environments.
For this feature to work, you must ensure that your Azure DevOps organization is connected on the Microsoft Entra tab of the Azure DevOps Settings page -
https://dev.azure.com/{Your_Organization}/_settings/organizationAad
. - Personal Access Token (PAT): This method is recommended for production environments, as it allows you to create a token with granular permissions.
If you are using Microsoft Entra ID instead of a PAT, you can skip the section below and proceed to the Configuring the Data Source section.
Generating a Personal Access Token
Follow the steps below to generate a PAT, or for additional information, please refer to the Azure DevOps Documentation.
- Sign in to your organization (https://dev.azure.com/{Your_Organization})
- From your home page, open user settings and select Personal access tokens.
- Select + New Token.
- Name your token, select the organization where you want to use the token, and then set your token to automatically expire after a set number of days.
- Select the scopes for this token to authorize. You can select Show all scopes to view all scopes.
- Select Create.
- Your token is now displayed, select Copy and store the token securely. You will need this when configuring the data source in SquaredUp.
Configuring the data source
Display Name:
Enter a name for your data source. This helps you to identify this data source in the list of your data sources.- Product:
Select Azure DevOps Cloud. - Organization Name:
Enter the name of the Azure DevOps organization you want to use for this data source. - Authentication type:
Select the method for SquaredUp to connect to your Azure DevOps. See Before you start section to decide which option suites your requirement:- Microsoft Entra ID:
Click the Sign in with Microsoft button and you can choose to login as administrator of the target tenant or a non-administrator. See Microsoft: Manage consent to applications and evaluate consent requests. - Personal Access Token:
Enter the Azure DevOps Personal Access token generated in Generating a Personal Access Token section.
- Microsoft Entra ID:
Restrict access to this data source:
You can enable this option if you only want certain users or groups to have access to the data source, or the permission to link it to new workspaces. See data source access control for more information.- Install sample dashboards:
Leaving this option enabled will install the sample dashboards detailed below into the current workspace. Click Test and add to validate the data source configuration. SquaredUp will now attempt to connect to SquaredUp using the provided authentication method. If this process fails, see Testing and troubleshooting for assistance with the corresponding errors.
Testing and troubleshooting
When the data source is added or edited, SquaredUp validates your selected authentication method against the provided organization to ensure that you have access. If you are using a Personal Access Token, it will also check its validity.
The errors or warnings listed below may be displayed while using the Azure DevOps data source. If you encounter an error, please refer to the guidance provided below or contact [email protected] for assistance.
Next Steps
Now that you have successfully added the data source, you can browse the sample dashboards, view all available data streams, or explore any indexed objects.
Sample dashboards
When configuring the Azure DevOps data source, you have the option to Install sample dashboards. This option is recommended as these dashboards provide a great starting point. The following dashboards are included with the Azure DevOps data source:
- Pipeline: Overview: Displays key metrics for the selected pipeline, such as Build Status (Failures, Total Runs, Run Duration), Task Failures, and Test Statistics.
- Pipeline: Trends: Provides an in-depth analysis of the selected pipeline to understand various trends such as Run Duration, Build Success Rate, Automated Test Run Duration Trend, Agent Usage, and more.
- Release & Deployment Overview: Displays key release and deployment metrics for the selected release pipeline, such as a list of releases and deployments, release and deployment frequencies, and the latest releases and deployments.
- Repos Overview: Displays metrics for the selected repository, such as PR statistics (recent PRs, open PRs, PRs by author, and more), branch state, and latest commits.
- Work Item Overview: Displays a summary of work items for the selected project, such as Bugs and Epic statistics, and a summary of your current sprint.
Objects Indexed
SquaredUp indexesfifteentypes of objects from your Azure DevOps organization. These objects are used to build dashboards and are visible when searching across SquaredUp. Drilling down into an object will provide useful metrics and properties.
Within the Map, the relationships between the objects are:Project ——contains——> Build Folder ——contains——> Build Pipeline
Project ——contains——> Release Folder ——contains——> Release Pipeline
Project ——contains——> Environment ——contains——> Environment Resource
Project ——contains——> Task Group
Project ——contains——> Repo Folder ——contains——> Repo ——contains——> Branch
Project ——contains——> Artifact Feed ——contains——> Artifact Package
Project ——contains——> Query
Project ——contains——> Deployment Group
Data streams
The following data streams are installed with this plugin.
Data streams standardize data from all the different shapes and formats your tools use into a straightforward tabular format.
While creating a tile you can tweak data streams by grouping or aggregating specific columns.
Depending on the kind of data, SquaredUp will automatically suggest how to visualize the result, for example as a table or line graph.
Data streams can be either global or scoped:
- Global data streams are unscoped and return information of a general nature (e.g. "Get the current number of unused hosts").
- A scoped data stream gets information relevant to the specific set objects supplied in the tile scope (e.g. "Get the current session count for these hosts").
See Data Streams for more information.