Create a workspace from Powershell run within VS Team Services build
- Check Allow Scripts to Access OAuth Token option of your build defition
- Append /noprompt /loginType:OAuth /login:.,$(System.AccessToken) to your TF command (arguments)
About TF Command, you can check this article.