a·gen·tic a·gil·i·ty

Getting a service account for VSO with TFS Service Credential Viewer

Learn how to use TFS Service Credential Viewer to generate service accounts for Visual Studio Online, enabling secure, automated access without frequent re-authentication.

Published on
2 minute read
Image
https://nkdagility.com/resources/i10guK3jvON
Subscribe

Have you tried to get a service account for Visual Studio Online (VSO)? Did you know that you can use the TFS Service Credential Viewer to get it.

When you join a local or azure build server to your VSO account you are asked to log in with an account that is an administrator to get credentials. However it cant continue to use your credentials as your Microsoft ID token expires after 2 days and you would have to login again. Not a good experience. However there is a little bit of code that the build server uses to get a basic service username and password that it uses instead. I have used this to create unit tests that hit the TFS API’s in VSO as well as do all sorts of automated tasks that I need.

I created the TFS Service Credential Viewer when the service was still in Preview but it is no less required now. Its your gateway to automation with VSO.

Download TFS Service Credential Viewer

The following prerequisites are required:

If these components are already installed, you can launch the application now. Otherwise, click install below to install the prerequisites and run the application.

install or launch via clickonce

How it works

Once you have authenticated as a TFS Collection Administrator using your Microsoft ID to your hosted VSO instance we use the Access Control Service to provision a service identity that you can use for unattended connections to VSO.

Getting a service account for VSO with TFS Service Credential Viewer

Figure: A quick #1, #2 to get your credentials

http://youtu.be/Fkn6V0 _zz28
Video: How to get your credentials

Troubleshooting

If you are using Windows 8 you will not get an automatic launch of the application due to an extra security check called Smart Screen for applications that come from the internet.

  1. Click or Press “Start” and Scroll all the way to the right
  2. Select the TFS Service Credential Viewer
  3. When the security dialog pops up click “More Info” Getting a service account for VSO with TFS Service Credential Viewer **Figure: Select More Info
    **
  4. Click “Run anyway” to launch the application and add it to the safe list Getting a service account for VSO with TFS Service Credential Viewer Figure;
  5. Done

If you encounter an exception when clicking “Connect” the most likely cause if that you do not have Team Explorer 2013 installed (it should also work with 2012).

Smart Classifications

Each classification [Concepts, Categories, & Tags] was assigned using AI-powered semantic analysis and scored across relevance, depth, and alignment. Final decisions? Still human. Always traceable. Hover to see how it applies.

Subscribe

Connect with Martin Hinshelwood

If you've made it this far, it's worth connecting with our principal consultant and coach, Martin Hinshelwood, for a 30-minute 'ask me anything' call.

Our Happy Clients​

We partner with businesses across diverse industries, including finance, insurance, healthcare, pharmaceuticals, technology, engineering, transportation, hospitality, entertainment, legal, government, and military sectors.​

Trayport Logo

Trayport

Capita Secure Information Solutions Ltd Logo

Capita Secure Information Solutions Ltd

Sage Logo

Sage

Philips Logo

Philips

Big Data for Humans Logo

Big Data for Humans

ALS Life Sciences Logo

ALS Life Sciences

Alignment Healthcare Logo

Alignment Healthcare

ProgramUtvikling Logo

ProgramUtvikling

Microsoft Logo

Microsoft

Slaughter and May Logo

Slaughter and May

Xceptor - Process and Data Automation Logo

Xceptor - Process and Data Automation

Akaditi Logo

Akaditi

Ericson Logo

Ericson

Emerson Process Management Logo

Emerson Process Management

Epic Games Logo

Epic Games

Boxit Document Solutions Logo

Boxit Document Solutions

Qualco Logo

Qualco

New Signature Logo

New Signature

Washington Department of Transport Logo

Washington Department of Transport

Ghana Police Service Logo

Ghana Police Service

Department of Work and Pensions (UK) Logo

Department of Work and Pensions (UK)

Washington Department of Enterprise Services Logo

Washington Department of Enterprise Services

New Hampshire Supreme Court Logo

New Hampshire Supreme Court

Nottingham County Council Logo

Nottingham County Council

Boxit Document Solutions Logo

Boxit Document Solutions

Ericson Logo

Ericson

Graham & Brown Logo

Graham & Brown

Brandes Investment Partners L.P. Logo

Brandes Investment Partners L.P.

SuperControl Logo

SuperControl

Lean SA Logo

Lean SA