Code QuizAdvanced

Azure Pipelines Agent Pool Bug

Find the mistake in a basic Azure Pipelines YAML that selects a Microsoft-hosted agent.

Codeyaml
trigger:
  branches:
    include:
    - main

pool: ubuntu-latest

steps:
- script: echo "Building the app"
  displayName: 'Build'
- script: npm test
  displayName: 'Test'

This pipeline should run on a Microsoft-hosted Ubuntu agent, but the agent selection is wrong. What is the bug?