Azure DevOps plugin

For more information about what this plugin does and the data streams it retrieves, see:

Azure DevOps

Monitor the Builds and Releases from your Azure DevOps environment. On this page you will find:

How to add an Azure DevOps data source

How to add an Azure DevOps On-Premise data source

Using the Azure DevOps data streams

Writing a custom data stream (advanced users)

How to add the data source

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.

Configuring the data source

  1. Display Name:
    Enter a name for your data source. This helps you to identify this data source in the list of your data sources.

  2. Product:
    Select Azure DevOps Cloud.
  3. Organization Name:
    Enter the name of the Azure DevOps organization you want to use for this data source.
  4. Authentication type:
    You have two options to choose from for authentication, using the Microsoft Entra ID sign-in button or entering a Personal Access Token:
    • Microsoft Entra ID:
      This will allow the data source instance to access Azure DevOps using a user account.
      This gives less granular control over the permissions the data source runs with. This is not ideal from a "least privilege" point of view, but can be useful when experimenting with the data source against non-production environments.
      For production environments, using a Personal Access Token, as described below, is recommended.
      After you click the Sign in with Microsoft button you can choose to login as an administrator of the target tenant or a non-administrator:
      See Microsoft: Manage consent to applications and evaluate consent requests

      For this feature to work, you must ensure that your AzureDevOps organization is connected on the Microsoft Entra tab of the Azure DevOps Settings page.

    • Personal Access Token:
      Enter the personal access token you created in Azure.
      If you need help creating a personal access token, please refer to the Azure documentation: https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate
  5. Install Sample Dashboards:
    Select whether you would like to install sample dashboards with the data source. By default, this is set to on.

  6. Optionally, select whether you would like to restrict access to this data source instance. By default, restricted access is set to off.

  7. Click Test and add to validate the data source configuration.

    You can also add a data source from Settings > Data Sources > Add data source, but sample dashboards are not added when using this method.

How to add the on-prem data source

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.

This is an on-prem data source.

Before you start

Configuring and deploying an agent

If you have already created an agent in SquaredUp that you can use for this data source, you can skip this step and choose the agent group you want to use while adding the data source.

See one of the following, depending on your platform type:

Configuring the data source

  1. Display Name:
    Enter a name for your data source. This helps you to identify this data source in the list of your data sources.

  2. Agent Group:
    Select the Agent Group that contains the agent(s) you want to use.

  3. Product:
    Select Azure DevOps Server.
  4. Base URL:
    Enter the base URL of the Azure DevOps server you want to use for this data source.
  5. Collection Name:
    Enter the name of the Azure DevOps server collection you want to use for this data source.
  6. Personal Access Token:
    Enter the personal access token you created in Azure.
    If you need help creating a personal access token, please refer to the Azure documentation: https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate

    While most data streams will work with read-only permissions, some may additional permissions to work correctly. For example, the Agent Usage and Job Queues data streams fail when the Personal Access Token used in the configuration is set to read-only

  7. Install Sample Dashboards:
    Select whether you would like to install sample dashboards with the data source. By default, this is set to on.

  8. Optionally, select whether you would like to restrict access to this data source instance. By default, restricted access is set to off.

  9. Click Test and add to validate the data source configuration.

    You can also add a data source from Settings > Data Sources > Add data source, but sample dashboards are not added when using this method.

Using the Azure DevOps Data Streams

Data streams

The following data streams are installed with this plugin.

Filtering

Every data stream can use a filter object in the dataSourceConfig for basic filtering. More information about the required structure of this object can be found here: GitHub: Expression. For this filter functionality, there exists a user-defined function hasValue, that uses the following syntax:

"hasValue": ["key", "value"]
This function should be used in cases where the value at the given key could be undefined.

Some data streams can use scopeFilter and stageFilter objects for more advanced filtering. More information about these features can be found in the Using custom data streams with the Azure DevOps data source section.

Writing a custom data stream (advanced users)

Troubleshooting

Tiles can occasionally display a warning as a result of an issue when trying to fetch data from the data source. There are several standard warning messages shown for common issues:

Version mismatch

This Azure DevOps version does not support the requested analytics version

When this error is shown, you should verify the Azure DevOps server version. Some server versions do not ship with certain analytics versions.

Entity type not available

Endpoint not available in this analytics version

This error is shown when handling changes between versions, misspellings and similar issues.

Was this article helpful?


Have more questions or facing an issue?