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

Reinvent your career for the AI era. Join DEV.

It takes one minute and is worth it for your career.

Get started

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

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay