Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 2.99 KB

README.md

File metadata and controls

36 lines (29 loc) · 2.99 KB

Avanade DevOps HOL - Private Agent configuration with Visual Studio Team Services

In this lab we configure a private agent for use in building the solution created in the Continuous Integration lab. For more information on using private agents for VSTS builds, see the Build and Release Agents documentation.

Pre-requisites:

I. Configure Private Build Agent

When choosing the Agent Queue for the build process (such as from the Continuous Integration lab), click on the Manage link above the Agent queue dropdown. Otherwise, you can click on the Settings (gear) icon and choose Agent Queues to get to the Agent Queues page for the project.

Note: Private build agents need to be accessible from VSTS so it is recommended to install them on a "build" VM within Azure. For the HOL, if you are using an Azure VM for the development environment, then this same VM can be used for running the private build agent.

  1. Open your VSTS portal (https://<youralias>.visualstudio.com) in another browser tab.
  2. Navigate to the DevOpsHOL project created earlier.
  3. Navigate to Personal access tokens (select your account picture, then Security, or navigate to https://youralias.visualstudio.com/_details/security/tokens)
  4. Create a new token with description DevOpsTraining, and copy the personal access token somewhere for use later.
  5. Return to the previous Agent Queue browser tab. Click on Download agent.
    Once the Agent zip file is downloaded, follow the instructions on the agent download page to unzip and configure the agent on the target machine using the configuration options below.
  • Enter server URL > https://<youralias>.visualstudio.com
  • Enter authentication type (press enter for PAT) >
  • Enter personal access token > use the access token saved earlier
  • Enter agent pool (press enter for default) >
  • Enter agent name > DevOpsBuildDeploy (or use the default which is the computer name)
  • Enter work folder (press enter for _work) >
  • Enter run agent as service? (Y/N) (press enter for N) > Y
  • Enter User account to use for the service (press enter for NT AUTHORITY\NETWORK SERVICE) > admin account on target computer
  • Enter Password for the account > admin account password
  1. Return to the build definition and choose the Default Agent Queue instead of Hosted VS2107.