Integration
Github Integration https://final.techwithpatil.com/~/revisions/DFnUwSzvb2Fqv2WBM8sE/technologies/azure/azure-devops/integration/connect-private-github-and-other-vcs
GitHub Integration (Source Code Integration)
✅ What it is
Connect Azure DevOps Pipeline to GitHub repo so CI/CD triggers on code push/PR.
✅ Steps
Go to Pipelines → Create Pipeline
Choose GitHub
Sign in → Authorize Azure DevOps
Select your repo
Choose pipeline template or write your own YAML
Set trigger in YAML:
trigger: branches: include: - main
⭐ Why this approach?
GitHub is standard source control.
Azure DevOps can auto-trigger pipelines.
Secure connection via OAuth + PAT.
Best for teams using GitHub + Azure ecosystem.
Self-Hosted Agent
agent vm can be selfhosted or microft hosted
vmimagename: ubuntu-latest
own agent
pool:
name: "azureagent"
Setup self-hosted agent
go to project setting > pipeline > agent pool > add agent pool

go to created agent pool under agent add new agent

select os and run command on agent server

create PAT token for agnet to give granular permission
go to user setting > security > personal acces token select scope, permission


paste token and register agent


similar to github runner and run this as backround by adding as a service
install docker on agent server

Last updated