Skip to main content

Azure DevOps Configuration

Create an Access Token in Azure DevOps

Required Token Permissions

Feature

Azure DevOps

Automated Commit Feedback

Code: Read & Write

Automated Pull Requests

Code: Read & Write

Pull Request Commenting

Code: Read & Write

Pull Request Line Commenting

Not Applicable for AzureDevOps

Bitbucket Code Insights

Not Applicable for AzureDevOps

To create a personal access token:

  1. Log in to your organization in Azure DevOps

  2. Open your user settings

  3. Select Personal access tokens from the User Settings menu.

  4. Click the + New Token button

    126655139.png
  5. Name your token and select All accessible organizations. Choose an expiry date for your token.

    Warning

    Important! If you do not select All accessible organizations, the Easy SCM Onboarding feature will not work.

To enable automated pull requests and automated commit feedback:

  1. Select the scopes for this token to authorize for your specific tasks. For the full features of IQ SCM support enable Code: Read & Write and then select Create.

    126655140.png

    For Azure DevOps scopes details, refer to the Azure DevOps documentation.

  2. Save the personal access. You will not be able to view it again.

    126655141.png

Protecting the Target Branch

You can prevent users from merging Pull Requests with failing IQ Policy Evaluations. IQ Policy Evaluations must be set to Fail at the Source Stage.

Create and configure a Branch Policy to protect your target branch:

1. Navigate to Repos → Branches in the left menu, and select a branch to protect (typically main or develop). Select Branch policies from the menu.

126655155.png

2. Find Status checks and click the + button

3. Fill out the form

Status to check * → Security/IQ Policy Evaluation

Policy requirement → Required

The rest of the values can use the default options

126655156.png

See this page for more information on branch policy configuration.