How to do it...

To configure the build server, follow these steps:

  1. Open the VSTS site and select Security from your user options (the icon with your initials or picture).
  2. Click on Add under the Personal Access Tokens tab.
  3. Enter a suitable description, such as B05712_Agent.
  4. Set the expiry based on the project length, usually a year for Operations projects; you can extend this should it expire.
  5. Ensure that All Scopes is selected and click on Create Token.
  6. Make sure you copy the token as you will not be able to see it again!
  7. Open a PowerShell prompt (press Windows + R and type PowerShell).
  8. Type the following line:
Cd \DynamicsSDK 
  1. Ensure that the current directory is C:\DynamicsSDK and type the following lines of code:
    .\SetupBuildAgent.ps1 ...

Get Extending Microsoft Dynamics 365 for Operations Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.