tf.exe authenticate for vsts

+1 vote

I am trying to list all the workspaces and trying to authenticate tf.exe with vsts using the below commandline.

tf workspaces /Collection: [account].visualstudio.com/defaultcollection/login:USername,Password

The vsts account is backed by Azure Active Directory synced with an on-prem AD.

It works fine when I have connected to the vsts from visual studio and then running the above tf.exe command without the login switch.

But, when I use the login switch for tf.exe and use the same credentials that I use in visual studio it throws

TF30063: You are not authorized to access [account].visualstudio.com/defaultcollection

TF30063: You are not authorized to access [account].visualstudio.com/defaultcollection

Jul 25, 2018 in Other DevOps Questions by Hannah
• 14,040 points
286 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
You can use the Check in changes task in TFVC Build Tasks extension to check in changes.

Also, you can call TF command to check in changes during the build process, it uses build service account.

You can also create a console application to check in changes through TFS API (Workspace.CheckIn method), then call this app through command line.
answered Jul 25, 2018 by Kalgi
• 35,640 points

Related Questions In Other DevOps Questions

0 votes
1 answer

using Release Definition REST API for VSTS

Try using this: $vstsAccount = "[your vsts name]" $user ...READ MORE

answered Jul 24, 2018 in Other DevOps Questions by ajs3033
• 7,000 points
212 views
0 votes
1 answer
0 votes
1 answer

how to check runtime for chef-client executions?

 Chef doesn't have the mechanism to save ...READ MORE

answered Jul 5, 2018 in Other DevOps Questions by DareDev
• 6,520 points
23 views
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.