Azure Repositories source control
Snyk's Azure Repository integration lets you:
- Continuously perform security scanning across all the integrated repositories
- Detect vulnerabilities in your open source components
- Provide automated fixes and upgrades
The process to connect Snyk with your Azure repositories includes the following steps:
- 1.Generate a unique Azure DevOps personal access token (PAT) for Snyk, based on a username and password combination, and configured with the specific permissions Snyk needs to access your Azure repositories.
- 2.Select the projects and repositories you want to associate with Snyk for testing and monitoring. You can also enter custom file locations for any manifest files that aren't located in the root folders of your repositories.
Snyk then:
- 1.Evaluates the items you selected and imports the ones that have the relevant manifest files in their root folder and all the subfolders at any level.
- 2.Communicates directly with your repository for each test it runs (using the permissions you associated with your PAT), to determine exactly which code is currently pushed, and which dependencies are being used. Each dependency is tested against Snyk’s vulnerability database to see if it contains any known vulnerabilities.
- 3.Notifies you via email or a dedicated Slack channel if vulnerabilities are found (according to the preferences you configured), so that you can take immediate action to fix the issues.
Snyk tests and monitors Azure Repos by evaluating root folders and custom file locations for the languages that Snyk supports.
To add a default project:
- 1.In Snyk, go to Projects > Add projects.
- 2.Choose the relevant repository or tool from which to import your projects. The available repositories for the integration you picked are displayed in a new window.
- 3.Select the repositories that you want Snyk to monitor for security and license issues. To import all the repos for a specific organization, check the organization.
- 4.Click Add selected repositories. Snyk scans the entire file tree for dependency files and imports them to Snyk as Projects.

Import Projects
Use this procedure to add an Azure Repository dependency from a non-default path.
- 1.In Snyk, go to Projects > Add projects > Azure repos > Settings card.
- 2.Open the Add custom file location (optional) list and select a repository... to configure a custom path.
- 3.In the text field, enter the relative path for the manifest file location.
The relative path field is case-sensitive.

Select Azure repos
The Azure Repository integration works similar to the other Snyk Git integrations. To continue to monitor, fix, and manage your projects, see the related pages in the Snyk User Docs.
The optional Exclude folders field is case-sensitive. The pattern you enter is applied to all the Azure repositories.
Once repositories are imported, a confirmation appears in green at the top of the screen. The selected files are indicated with a unique icon, they are named by organization/repo, and you can now also filter to view only those projects, as seen in the example below:

View import results
The Azure Repository integration works similar to the other Snyk Git integrations. To continue to monitor, fix, and manage your projects, see the related pages in the Snyk User Docs.
Snyk integrates with Microsoft Azure Repository to let you to import your projects and monitor the source code for your repositories. Snyk tests the projects you’ve imported for known security vulnerabilities in the application’s dependencies, testing at a frequency you control.
Feature availability
Integration with Azure Repos Cloud is available for all of our pricing plans. Integration with Azure DevOps Server 2020 and above (also known as TFS) is available with Enterprise plans. See pricing plans for more details.
Snyk only supports Git: Snyk does not currently support integration with Team Foundation Version Control (TFVC).
To enable integration between Azure Repository and Snyk, and start managing your vulnerabilities, make sure that:
- You've set up your Azure Repos account and your Snyk account: you must have an Azure project. If you don't have a project yet, create one in Azure DevOps or set one up in an on-premises Azure DevOps.
- Create a PAT. You must be a member of the Project Administrators Group so that the PAT has edit subscriptions permissions required for enabling webhooks.
Have a Snyk admin user configure the integration within the UI.
Collaborator users cannot complete this task.
- 1.Generate and copy a unique personal access token to use for Snyk. For more information, see the Azure DevOps documentation.
- 2.When you're prompted in Azure, enable the following permissions for Snyk access:
- Expiry: to avoid breaking the integration, we recommend that you choose a token expiration date that is far in the future
- Scopes: Custom defined
- Code: Read & write.
- 1.
- 2.In the Azure Repos tile, clickto open Organization Settings > Integrations >Azure Repos> Account credentials.\
- 3.Set the Azure DevOps organization that you want to integrate with by entering the slug for your organization () and the personal access token that you generated.Enterprise customers can also provide a custom URL for an Azure Repos Server private instance that is publicly reachable.
- 4.Click Save. Snyk tests the connection values and the page reloads, displaying the Azure Repos integration information. A message to confirm that the details were updated is displayed at the top of the screen.

Azure repos integration information
If the connection to Azure fails, a notification is displayed under the Azure Repos card title.

Last modified 16h ago