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: https://[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 https://[account].visualstudio.com/defaultcollection
TF30063: You are not authorized to access https://[account].visualstudio.com/defaultcollection
Jul 25, 2018 in Other DevOps Questions by Hannah
• 18,570 points
1,302 views

1 answer to this question.

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
• 52,350 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,280 points
816 views
0 votes
0 answers
0 votes
2 answers
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,672 views
+2 votes
1 answer
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP