Forrest logo
back to the az tool

az-pipelines:tldr:29f90

az-pipelines: Get a list of agents in a pool.
$ az pipelines agent list --org ${organization_url} --pool-id ${agent_pool}
try on your machine

The command "az pipelines agent list" is used to list all the agents in an agent pool in Azure Pipelines.

Here's a breakdown of the command:

  • "az pipelines" refers to the Azure Pipelines CLI (Command-Line Interface), which is the tool used to interact with Azure Pipelines from the command line.
  • "agent list" is the specific command within the Azure Pipelines CLI to list agents.
  • "--org ${organization_url}" is an argument used to specify the Azure DevOps organization URL. You need to replace "${organization_url}" with the URL of your Azure DevOps organization.
  • "--pool-id ${agent_pool}" is another argument used to specify the ID of the agent pool you want to list agents from. You need to replace "${agent_pool}" with the ID of the desired agent pool.

When you run this command, it will connect to your Azure DevOps organization using the specified URL, access the specified agent pool, and provide a list of agents within that pool.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the az tool