Analyzing Azure Pipelines Agent Pool Usage via the Historical Graph and TaskAgentPoolSizeSnapshot
Short answer
AC Agent pool usage is analyzed via the pool historical graph and the TaskAgentPoolSizeSnapshot entity; pipeline runs and duration measure execution instead.
Question
Key Takeaways
Agent pool consumption can be analyzed either through the historical graph of the agent pools in the interface or by querying the TaskAgentPoolSizeSnapshot entity in Analytics, which is the table that records agent pool size and usage over time.
Agent pool usage needs to be analyzed for an Azure Pipelines organization, and two approaches are available. One is the built-in visual history the interface provides, and the other is querying the analytics data directly, so the answer must combine a UI path with a data path.
Common mistake: Querying the PipelineRun entity or reviewing the Pipeline duration report. Those address how many pipelines and runs executed and how long they took, which is a different measurement from how the agent pool capacity itself was consumed.
Expert Analysis
Why the Answer Is Correct
Agent pool usage is a distinct measurement from pipeline execution, and Azure DevOps supports two complementary ways to examine it. The first is the historical graph for the agent pools, which visualizes how the pool has been consumed over time without any query writing. The second is querying the TaskAgentPoolSizeSnapshot entity, which is the Analytics entity that records agent pool size and usage, so it supports deeper analysis and filtering beyond the built-in graph. Together they cover both the out-of-the-box reporting path and the data path. The vote was unanimous at 100 for A and C. p2006 linked the pool consumption report documentation, and UrbanRellik plus 8fc2e85 both linked the Analytics entity reference page identifying the TaskAgentPoolSizeSnapshot entity set, which is exactly what option C names.
Why the Other Options Are Wrong
Querying the PipelineRun endpoint (D) or reviewing the Pipeline duration report (B) both measure pipeline activity rather than pool consumption. The Pipeline duration report answers how long pipelines and their stages took to run, and the PipelineRun entity records the individual pipeline runs with their outcomes and timing. Neither captures how many agents were available or how the pool was consumed, which is the specific subject of the question. These are useful reports for a different question, namely where pipeline time is being spent, but they cannot show pool usage.
Community Comment Notes
The community was unanimous at 100 for A and C, and the three substance comments converge on the same two sources. UrbanRellik and 8fc2e85 both cited the Analytics entity reference page and pointed out that TaskAgentPoolSizeSnapshot is the entity set backing the pool size and usage data, which is the documentary basis for option C. p2006 cited the agent pool consumption report page, which is what backs the historical graph in option A. The pairing is therefore not a guess but the two documented access paths to the same measurement.
Official Reference
This link opens the official vendor documentation in a new tab.
Community Votes
100% of anonymous learners picked answer AC. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 4 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 4
-
8fc2e85 👍 1Correct. A & C. Link to the API for C: https://learn.microsoft.com/en-us/azure/devops/report/analytics/entity-reference-pipelines?view=azure-devops#entity-sets-and-entity-types
-
UrbanRellik 👍 1https://learn.microsoft.com/en-us/azure/devops/report/analytics/entity-reference-pipelines?view=azure-devops#entity-sets-and-entity-types
-
p2006 👍 1https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/pool-consumption-report?view=azure-devops
-
MrAZ105 👍 2AB makes more sense
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All AZ-400 Questions
Access 100 questions with complete answers and detailed explanations.
View Full AZ-400 Practice Test →