> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.governanceaicore.com/integrations/azure-dev-ops/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.governanceaicore.com/_mcp/server. # Azure DevOps Integration > Connect Azure DevOps for AI governance scanning # Azure DevOps Integration Connect GovernanceAI with Azure DevOps for automated repository scanning and compliance governance. ## Setup ### Step 1: Create Personal Access Token * Azure DevOps → **User Settings** → **Personal access tokens** * **New Token** with scopes: * `Code: Read` - Read repositories * `Build: Read` - Access pipelines * `Pull Request Threads: Read` - Read PR comments * Copy token ### Step 2: Connect in GovernanceAI * **Integrations** → **Azure DevOps** * Enter organization URL * Paste PAT token * Select projects to scan ### Step 3: Configure Scanning * **Repositories**: Select which to scan * **Trigger**: Push, Pull Request, Scheduled * **Frequency**: Hourly, Daily, Weekly ## Azure Pipelines Integration ```yaml # azure-pipelines.yml trigger: - main pool: vmImage: 'ubuntu-latest' steps: - script: | curl -X POST https://api.governanceai.com/v1/scans \ -H "Authorization: Bearer $(GOVERNANCEAI_API_KEY)" \ -d '{ "repository": "$(Build.Repository.Name)", "ref": "$(Build.SourceVersion)" }' displayName: 'GovernanceAI Scan' - script: | # Check for critical findings curl -H "Authorization: Bearer $(GOVERNANCEAI_API_KEY)" \ https://api.governanceai.com/v1/scans/results/latest \ | jq -e '.critical_count == 0' displayName: 'Verify Compliance' ``` ## Pull Request Checks Automatically adds checks to PRs: * AI Model findings * Dependency analysis * Compliance status * Risk assessment ## Permissions * `Code: Read` - Required for scanning * `Build: Read` - For pipeline integration * `Pull Request Threads: Read` - For PR comments ## Troubleshooting * **Auth failures** - Verify PAT token is valid * **Projects not showing** - Check permissions * **Webhooks not firing** - Check Service Connection * **Pipeline failing** - Verify API key in pipeline variables ## Next Steps * **[GitHub](/integrations/git-hub)** or **[GitLab](/integrations/git-lab)** - Other Git providers * **[Jira Integration](/integrations/jira)** - Track issues * **[API Reference](/api)** - Integration APIs > Connect Azure DevOps for AI governance scanning