Using PowerShell’s Invoke-RestMethod to Access VSTS OData

,
August 23, 2016 / No Comment

Given that Microsoft has abandoned their TFS CmdLets, one alternative is to access VSTS data is through the OData interface using the Invoke-RestMethod.
Before you begin you need to setup Alternate authentication credentials by navigating to https://<yourtenant>.visualstudio.com/_details/security/altcreds.  Once these are established, you will likely want to save them to a local PowerShell variable so that they can be reused for each […]
Read more

AUTHOR: CATEGORY: .Net, Blog, PowerShell, TFS, Uncategorized

Code Reviews

,
March 13, 2015 / No Comment

I absolutely love code reviews. My team uses a very informal asynchronous method for doing code reviews. When changes are made, a code review request is sent to the other members of the team. As people have time, they will look over the code review requests and provide feedback. Pretty painless; the way a code review should be.
The purpose […]
Read more

AUTHOR: CATEGORY: TFS

Deleting Moldy Shelvesets

,
October 20, 2012 / 1 Comment

If you have had a Team Foundation Server (TFS) instance running for any significant length of time you undoubtedly have old shelvesets lying around from other developers (surely you wouldn’t have done this) that have long ago expired and although moldy, they have not disintegrated. Consider cleaning them up using the following short PowerShell script from Kelly Adams:


Read more

AUTHOR: CATEGORY: Blog, PowerShell, TFS

Where'd that Team Foundation Build drop?

,
June 8, 2012 / No Comment

Recently I came across a need to know where a Team Foundation Server 2010 build definition dropped the files after a successful build.  I probably could have written a custom Activity and queried TFS in C# code, but the build definition in question heavily leverages PowerShell and the Psake domain specific language, so I wanted to keep it in PowerShell […]
Read more

AUTHOR: CATEGORY: ALM, Blog, Headlines, PowerShell, TFS

Team Foundation Server 11 Support Advanced SMTP Settings

,
February 29, 2012 / No Comment

Visual Studio Team Foundation Server 11 supports SMTP Settings as shown in the following screen shot.
As shown in the screen capture, it even supports a Certificate Thumbprint.
As a result, you can configure gmail as your email server for Team Foundation Server: smtp.gmail.com, Port 465, Enable SSL.

AUTHOR: CATEGORY: TFS, Uncategorized

Transitioning between Sprints/Iterations with Team Foundation Server (TFS)

,
February 6, 2012 / 8 Comments

Post updated for  VisualStudio.com and Visual Studio 2013 Update 5:
VisualStudio.com, or VSO, recently added support for the query token @CurrentIteration.  @CurrentIteration can be used in your queries to refer to the sprint or iteration that is currently in process.  This eliminates the need to create your own Current iteration as described in our original post below.  This update is also included in […]
Read more

AUTHOR: CATEGORY: Headlines, TFS

Remembering TFS Credentials (from a non-Domain Windows Client)

,
September 5, 2011 / No Comment

As a consultant, I am repeatedly connecting to customer Team Foundation Server (TFS) servers that are not on the same domain as my client workstation.  As a result, I am repeatedly prompted for credentials each time I launch Visual Studio or connect to TFS web.

Notice, there is no “Remember Credentials” check box so seemingly no way […]
Read more

AUTHOR: CATEGORY: ALM, Headlines, TFS

Configuring Windows SMTP Server on Windows 2008 for Relay

,
October 23, 2010 / 11 Comments

My SMTP mail server requires that email be sent with TLS encryption and on port 587.  This makes it problematic for Team Foundation Server (TFS) to send emails directly.  To work around the problem, I installed the Windows 2008 SMTP Server service and configured it for relaying to my real SMTP mail server. 
Install SMTP Server
To begin, launch […]
Read more

AUTHOR: CATEGORY: .Net, TFS

VSS to TFS Conversion Error

,
October 17, 2008 / No Comment

Recently I had the pleasure of migrating several VSS databases to Team Foundation Server 2008.  One of the databases was pretty large (90k+ files) and took between 12 – 16 hours to migrate.  However, about 6 hours in to the migration, I kept running across an error that would halt the migration process.
The error:
Could not find file ‘C:\Conv\Tfs\<TeamProjectName>\blah\blah\somefile.txt’.
Read more

AUTHOR: CATEGORY: TFS