Harmeet Sra
Harmeet Sra

Reputation: 23

Checkin to VSTS using TF.EXE without interactive login service account

I am using TF.exe command line utility to check-in to TFS once my build finishes on TeamCity.

Build step is using command line. TeamCity build is running under service account from domain. service account's interactive login is disabled.

When I using tf.exe it's failing with authentication error "TF30063: You are not authorized to access https://xxxxxx.visualstudio.com/DefaultCollection" even I am passing /login parameter.

Once we enable interactive login and login use tf.exe workspaces command, it prompts for login once. after that builds started working fine. once we disabled interactive login on service account TF30063 error appeard again.

tf.exe works fine under service account if we run against on-premise TFS server, this only happens with VSTS.

any suggestion much appreciated.

Upvotes: 1

Views: 810

Answers (0)

Related Questions