Self Hosted Runners

Step 3 - Testing the self hosted runner

Test the self hosted runner with an example Azure DevOps pipeline using the pool you created.

The following is an example pipeline using the pool we just created:

YAML
stages:
  - stage: run
    displayName: Run
    jobs:
      - job: run
        displayName: Run
        pool: SelfHostedRunnerUbuntu # Name of your VMSS pool
        steps:
          - task: PowerShell@2
            name: Test
            displayName: "Test"
            inputs:
              targetType: inline
              pwsh: true
              script: uname -a

After running the pipeline, you should see that an agent has come online:

An agent online in the agent pool

And from the VMSS side of things, we can see that an instance has been created:

A new instance in the VMSS

And of course, we can see that the pipeline is working just fine:

The pipeline run completed

That's it, you now have an agent pool in Azure DevOps, that will automatically be updated whenever the Microsoft Hosted Runners are updated (through our image). Have fun!

Last updated 2 November 2026 Edit this page on GitHub
Esc