DEV Community

Cover image for Run self-hosted Azure Pipelines Agent on GitHub Codespaces (Video Tutorial)
Marcel.L
Marcel.L

Posted on • Edited on

3 1

Run self-hosted Azure Pipelines Agent on GitHub Codespaces (Video Tutorial)

Overview

Based on a previous blog post, this devcontainer is now publicly available as a template for anyone to use at Dev Container Templates and integrated with publicly available Codespace images.

Check out the repo and documentation.

Video Tutorial

How to add this community Codespace config

  • Add Codespace secrets on the GitHub repository where the Codespace is to be spun up

image.png

  • Select Add Dev Container Configuration Files...

image.png

  • Select Create a new configuration...

image.png

  • Select Show All Definitions...

image.png

  • Select Azure Pipelines Agent

image.png

  • Select Debian version bullseye

image.png

  • Choose version of ADO Agent to install inside of Codespace

image.png

  • Select any additional features to install (example, Terraform)

image.png

  • Notice .devcontainer now holds Codespace configuration

image.png

NOTE: The config is the same template as found on this public Dev Container .src/azure-pipelines-agent-devcontainer/.devcontainer

  • Commit and sync Dev Container Configuration

image.png

  • Launch new codespace with options

image.png

  • Select options, compute size and Create new Codespace

image.png

Self hosted Azure Pipelines agent registers on agent pool and runs inside Codespace at launch

image.png

Submitted as part of the GitHub + DEV Hackathon 2023

image.png

Author

Like, share, follow me on: 🐙 GitHub | 🐧 X/Twitter | 👾 LinkedIn

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay