Using Github CodeSpace / DevContainers with Azure DEvops
Simon J.K. Pedersen, skp@delegate.dk, @simped
Two Use cases
- Cloning Azure DevOps Git Repo in a DevContainer
- Using GitHub CodeSpaces as ADO build agents
Cloning Azure DevOps Git Repo in a DevContainer
- Add external-repository feature
- Which depends on > codespace-auth
- Login with EntraID
![](https://s3.amazonaws.com/media-p.slid.es/uploads/156879/images/11163352/Screenshot_2024-03-03_at_09.43.22.png)
Using GitHub CodeSpaces as ADO build agents
- Install the devcontainer extension for VScode
- Start from the template
Commit the code to github so you can start the codespace
![](https://s3.amazonaws.com/media-p.slid.es/uploads/156879/images/11163387/Screenshot_2024-03-03_at_10.25.13.png)
Using GitHub CodeSpaces as ADO build agents
- Configure the access to Azure DevOps Agent Pools
![](https://s3.amazonaws.com/media-p.slid.es/uploads/156879/images/11163408/Screenshot_2024-03-03_at_10.37.32.png)