SetBuildAgentStatus Question

Sep 27, 2016 at 6:32 PM
what are the valid states for SetBuildAgentStatus? I'm somewhat new to team build workflows and I would like to use this to reserve an agent until I'm done with it.
Can I use this to set an agent status to "Executing workflow..."?

May 25 at 5:54 AM
To build your code or deploy your software you need at least one agent. As you add more code and people, you'll eventually need more.

When your build or deployment runs, the system begins one or more jobs. An agent is installable software that runs one build or deployment job at a time.

for more visit: here

For TFS training