Create a workspace from Powershell run within VS Team Services build Create a workspace from Powershell run within VS Team Services build powershell powershell

Create a workspace from Powershell run within VS Team Services build


  1. Check Allow Scripts to Access OAuth Token option of your build defitionenter image description here
  2. Append /noprompt /loginType:OAuth /login:.,$(System.AccessToken) to your TF command (arguments)

About TF Command, you can check this article.