Connecting TeamCity 10 VCS Root to Visual Studio Team Services

Connecting a VCS Root to a Visual Studio Team Services configured with Team Foundation Server.

Navigate to your Team Project at https://[your project].visualstudio.com

tfs-security

And navigate to “security” or navigate directly with this link:
https://[your project].visualstudio.com/_details/security/tokens

tfs-access-tokens

After you have generated a Personal Access Token you can fill it in the password field. Use your microsoft email as username and the generated token for password.

vcs-root

Note! As of Sept 2016 Visual Studio Team Services only allow a token to last for 1 year. So do remember to update the used tokens when they expire.

Source: https://www.visualstudio.com/en-us/docs/integrate/get-started/auth/overview