Azure Integration Guide
Work with Devin directly in your Azure DevOps repositories
Why integrate Devin with Azure DevOps?
Integrating Devin with your Azure DevOps organization allows Devin to clone repositories, create pull requests, and collaborate effectively with your team. This integration enables Devin to work seamlessly within your existing development workflow.
Setting up the Integration
- In your Devin account at app.devin.ai, go to Devin’s Workspace, and click the “Advanced Setup” button.
- Once on the Advanced Setup page, click the “Edit” -> “Set up in VSCode” button.
- Use the terminal within VSCode to add your Azure DevOps PAT token and then clone your repositories.
Before proceeding with the CLI setup, ensure you have:
- Admin access to your Azure DevOps organization
- A Personal Access Token (PAT) with appropriate permissions
Set up Azure CLI
- Install the Azure CLI for Ubuntu:
- Add the Azure DevOps Extension:
- Configure your Azure DevOps organization defaults:
- Set up authentication using your Personal Access Token (PAT):
- Test your connection by listing repositories:
Cloning Repositories
- Create a directory for your repositories:
- Clone your repository:
- Repeat step 2 for each repository you want to clone.
Clone all the repositories that you want to give Devin acces to. Once you finish with this machine setup, a machine snapshot will be saved. You can use this machine snapshot kickoff any new session with the same setup.
Required Permissions
When creating your Personal Access Token (PAT), ensure it has the following permissions:
- Code
- Read & Write
- Status
- Pull Request Contribute
- Pull Request Management
- Build
- Read
- Status
- Project and Team
- Read
We recommend setting up branch policies in Azure DevOps to ensure all changes go through proper review processes before being merged.
Security Considerations
- Store your PAT securely and never commit it to source control
- Use a dedicated service account for Devin’s integration if possible
- Enable branch policies to enforce code review requirements
- Regularly rotate your PAT for enhanced security
External Documentation
For more detailed information, refer to these official Microsoft docs: