> ## Documentation Index
> Fetch the complete documentation index at: https://docs.plerion.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Azure DevOps

> Integrate Plerion Code Security with Azure DevOps to scan repositories for infrastructure as code (IaC) issues and software composition analysis (SCA) issues directly in your development workflow.

With the [Azure DevOps integration](https://app.plerion.com/settings/integrations/add/Azure/AzureDevOps), you can connect your repositories to Plerion Code Security. This enables automatic scanning for IaC and SCA issues, giving developers early feedback and helping teams resolve issues before they reach production.

***

## Steps to integrate Azure DevOps with Plerion

**1. On the Plerion dashboard, go to Settings > Integrations**

![Plerion dashboard showing Settings expanded with Integrations selected](https://mintcdn.com/pleriondocs/C1CbmNexZ9aQNkDc/images/integrations/azure-devops/settings-integrations-sidenav.png?fit=max\&auto=format\&n=C1CbmNexZ9aQNkDc\&q=85\&s=66d327048296b04a1524638ea8dd1e18)

**2. Find Azure DevOps and click the + button**

![Integrations page showing Azure DevOps tile with plus button](https://mintcdn.com/pleriondocs/C1CbmNexZ9aQNkDc/images/integrations/azure-devops/add-azure-devops-integration.png?fit=max\&auto=format\&n=C1CbmNexZ9aQNkDc\&q=85\&s=f073ed5641c7a38330be2ab5ac743b7c)

**3. Select a connection option and click Continue**

Plerion connects to Azure DevOps using a service principal. Select **Connect with service principal** and click `Continue`.

![Connection options screen with Service Principal selected](https://mintcdn.com/pleriondocs/C1CbmNexZ9aQNkDc/images/integrations/azure-devops/azure-devops-connection-options.png?fit=max\&auto=format\&n=C1CbmNexZ9aQNkDc\&q=85\&s=aea311e97be96a622a66ff047db15fe0)

**4. Enter a name for your integration**

![Integration name field in Plerion Azure DevOps setup](https://mintcdn.com/pleriondocs/C1CbmNexZ9aQNkDc/images/integrations/azure-devops/azure-devops-name-field.png?fit=max\&auto=format\&n=C1CbmNexZ9aQNkDc\&q=85\&s=aa45ec2b60fb8e2e699d5ea81713db56)

**5. Enter your Application (client) ID and Directory (tenant) ID**

These values come from your Azure app registration.

![Application ID and Directory ID fields in Plerion Azure DevOps setup](https://mintcdn.com/pleriondocs/C1CbmNexZ9aQNkDc/images/integrations/azure-devops/azure-devops-app-and-tenant-id-fields.png?fit=max\&auto=format\&n=C1CbmNexZ9aQNkDc\&q=85\&s=d66f9ac075de7cada88e36fd3ee8d2cb)

**6. Enter your client secret and click Next**

![Client secret field and Next button in Plerion Azure DevOps setup](https://mintcdn.com/pleriondocs/C1CbmNexZ9aQNkDc/images/integrations/azure-devops/azure-devops-client-secret-and-next-button.png?fit=max\&auto=format\&n=C1CbmNexZ9aQNkDc\&q=85\&s=6970cb3c5e5fb11575c238ad31434e8e)

**7. Select the organization and click Next**

> [!NOTE]
>
> If the Entra app has access to a single Azure DevOps organization, this step is skipped.

![Organization selection screen in Plerion Azure DevOps setup](https://mintcdn.com/pleriondocs/C1CbmNexZ9aQNkDc/images/integrations/azure-devops/select-azure-devops-organization.png?fit=max\&auto=format\&n=C1CbmNexZ9aQNkDc\&q=85\&s=cb0c2ce077a9df8f5e92f1fd12a21da6)

**8. After setup, you will be redirected to the Plerion platform**

Your Azure DevOps integration is now active and ready to configure.

![Plerion integration page showing Azure DevOps organization connected](https://mintcdn.com/pleriondocs/C1CbmNexZ9aQNkDc/images/integrations/azure-devops/azure-devops-integration-page.png?fit=max\&auto=format\&n=C1CbmNexZ9aQNkDc\&q=85\&s=7f2df587cd66f77565b7427fe2e5b9df)

***

## Configuring your Azure DevOps integration

Once installed, you can configure the Azure DevOps integration to suit your workflows. These options control when and how scans run, how findings are handled, and what rules apply.

### Integration status

Controls whether Plerion Code Security is active.

* **Default**: Enabled
* **When disabled**: Pauses all scanning activities, including scheduled and pull request scans
* **Recommendation**: Keep enabled unless there is a specific need to pause

![Integration status toggle in Plerion for Azure DevOps](https://mintcdn.com/pleriondocs/C1CbmNexZ9aQNkDc/images/integrations/azure-devops/integration-status.png?fit=max\&auto=format\&n=C1CbmNexZ9aQNkDc\&q=85\&s=09563e1a298d2b27e8d7eabcdf3eacd5)

### Scheduled scans

Runs automatic daily scans of your main branches.

* **Default**: Enabled
* **Purpose**: Ensures continuous monitoring of production-ready code
* **Key points**:
  * No manual input required
  * Helps identify risks over time
  * Best for stable branches

![Scheduled scans configuration in Plerion for Azure DevOps](https://mintcdn.com/pleriondocs/C1CbmNexZ9aQNkDc/images/integrations/azure-devops/scheduled-scans.png?fit=max\&auto=format\&n=C1CbmNexZ9aQNkDc\&q=85\&s=b459e48fcb0fd1836b50f337ef46196a)

### Pull request scanning

Scans code in new and updated pull requests.

* **Default**: Enabled
* **What it does**:
  * Scans only changes in the pull request
  * Posts findings as comments in Azure DevOps
  * Uses Azure DevOps status checks to block insecure merges
* **Supported file types**: YAML, Terraform, JSON, and other IaC files
* **Why it matters**: Prevents findings from merging, encourages secure practices, and improves developer awareness

![Pull request scanning configuration in Plerion for Azure DevOps](https://mintcdn.com/pleriondocs/C1CbmNexZ9aQNkDc/images/integrations/azure-devops/pull-request-scanning.png?fit=max\&auto=format\&n=C1CbmNexZ9aQNkDc\&q=85\&s=c3c15007798bb9483d24246d1cd4fa14)

### SAST scanning

Scans your source code for security vulnerabilities using static application security testing (SAST).

* **Default**: Disabled
* **What it does**:
  * Adds your source code to default branch and pull request scans
  * Analyzes it for common vulnerability patterns such as injection flaws, insecure cryptography, and unsafe deserialization
  * Reports findings in the Plerion platform alongside IaC and SCA findings, and as comments on pull requests
* **Supported languages**: TypeScript, JavaScript, Python, Go, Java, Kotlin, Ruby, PHP, C#, C, C++, Rust, Swift, and Scala
* **Why it matters**: Catches application-layer vulnerabilities earlier in the development lifecycle, before code reaches production

![SAST scanning configuration in Plerion for Azure DevOps](https://mintcdn.com/pleriondocs/kraYeVtb0PteP6fB/images/integrations/azure-devops/sast-scanning.png?fit=max\&auto=format\&n=kraYeVtb0PteP6fB\&q=85\&s=e23cdccd103b90e4e900437e40b450eb)

### Dismiss behavior

Controls how Plerion handles existing pull request comments when new commits are pushed.

![Dismiss behavior configuration in Plerion for Azure DevOps](https://mintcdn.com/pleriondocs/C1CbmNexZ9aQNkDc/images/integrations/azure-devops/dismiss-behavior.png?fit=max\&auto=format\&n=C1CbmNexZ9aQNkDc\&q=85\&s=7603bbdeb596228372e61fcb105feba8)

### Tolerance for blocking pull requests

Controls when pull requests are blocked based on severity.

* **Default**: Do not block pull requests
* **Options**:
  * Only block for critical findings
  * Block for high and critical findings
  * Block for medium and above findings
  * Block for any finding
  * Do not block pull requests
* **Best use**: Choose based on your team's risk tolerance, development velocity, and compliance needs

![Tolerance configuration options in Plerion for Azure DevOps](https://mintcdn.com/pleriondocs/C1CbmNexZ9aQNkDc/images/integrations/azure-devops/tolerance-configuration.png?fit=max\&auto=format\&n=C1CbmNexZ9aQNkDc\&q=85\&s=17e661c7e398632e249a71c2b5d7f7d6)

### Profile

Defines which detection rules are used during scans.

* **Default**: Organization's default profile
* **Options**: Use an existing profile or create a new one
* **Where to manage**: Detection Settings
* **Best use**: Align with coding standards, risk tolerance, and compliance needs

![Profile selection in Plerion Azure DevOps integration](https://mintcdn.com/pleriondocs/C1CbmNexZ9aQNkDc/images/integrations/azure-devops/profile.png?fit=max\&auto=format\&n=C1CbmNexZ9aQNkDc\&q=85\&s=5535d31f3a102b6d2e3fbfb7d494ef23)

***

## Fixing issues with Pleri

Once the integration is connected, you can ask Pleri to fix an issue in an Azure DevOps repository and open a pull request for it, then manage that pull request without leaving Plerion.

Pleri can:

* Open a pull request containing a fix for a high or critical IaC issue
* Report the status of a pull request, including reviewers and branch policy evaluations
* Request a review from a person in the Azure DevOps project
* Remove a reviewer
* Abandon a pull request, posting the reason as a comment first

### Opening a pull request

Ask Pleri to fix a high or critical IaC issue in a connected repository. Plerion pushes the fix to a new branch named `plerion-code-security-<id>` and opens a pull request against the repository's default branch.

The pull request is created asynchronously, so it can take a minute to appear. Pleri picks it up on your next message.

> [!NOTE]
>
> Fixes are available for high and critical IaC issues only. Low and medium issues, and other issue types, are not fixed automatically.

### Requesting and removing reviewers

Azure DevOps pull requests have reviewers rather than assignees, so ask Pleri to request a review instead of assigning the pull request.

Name reviewers individually. Two conditions apply:

* The reviewer must be a member of a team in the Azure DevOps project. Plerion resolves names against project team membership, so a person who has never been added to a team cannot be found.
* The reviewer must have access to the repository. If they are in the project but not on the repository, Azure DevOps refuses the request and Plerion tells you it is repository access rather than the name.

If a name matches nobody, Plerion lists the people it can see in the project so you can pick one.

### Abandoning a pull request

Azure DevOps has no "close" for pull requests. A pull request retired without merging is **abandoned**, and that is the word Plerion uses.

Ask Pleri to abandon the pull request and give a reason. The reason is posted as a comment on the pull request before it is abandoned, so the history records why. Abandoning a pull request that is already abandoned succeeds and changes nothing.

> [!WARNING]
>
> Plerion can only abandon pull requests it opened for your tenant. Pull requests raised by a person, or by another tool, must be abandoned in Azure DevOps.

***

## Best practices

* Keep the integration enabled for continuous coverage
* Use scheduled scans to secure long-term branches
* Enable PR scanning to prevent insecure code from merging
* Set PR blocking tolerance based on your security posture
* Select a detection profile that matches your organization's needs
* Add reviewers to a team in the Azure DevOps project so Pleri can find them by name

***

## Limitations

* Azure DevOps Services (dev.azure.com) is supported. Azure DevOps Server, the self-hosted product, is not.
* Reviewers must be named individually. Requesting a review from an Azure DevOps team is not supported.
* Pull requests cannot be assigned, because Azure DevOps has no assignee field.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.