Migrating TFS: Point your build server at the new TFS server

The Migration

Today I finished migrating TFS from a VM to a newly re-purposed machine.  The VM was on an overloaded host box and TFS was a bit sluggish.  Yesterday, I followed Microsoft's painstaking instructions on How to Move Your Team Foundation Server from One Hardware Configuration To Another.  This morning I updated our TFS build scripts so that all the file paths were valid on the new box, and then I refreshed the Version Control Cache on the build server by using the "tf workspaces /s:http://ApplicationTierServerName:Port" command (the colon after the "/s" is a needed variation on the command given in Microsoft's instructions on How to Refresh the Data Caches on Client Computers).  To my dismay, when I ran a build, it failed almost immediately with an error indicating it was trying to access something like vstfs:///Version_Control/Versioned_Items, and the build notification window on the build server still showed the old TFS server name.  I poked around the various TFS databases and a few other places to see if I could find the old server name, but I did not (or at least not anywhere relevant).  I decided to have a look at the .config file being used by the Visual Studio Team Foundation Build service executable, and there was a setting in there for a TFS server URI, but the value was blank.  The comment above the setting indicates that it overrides the setting in the registry under "HKCU".  I figured that if the old server name was in the registry, I would prefer to update that than override it with the new server name.  (No point in having old server names lurking around.)

Re-configuring TFS Build

After a quick search in the registry (using regedt32 of course), I found the "AllowedTeamServer" key in HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\TeamFoundation\Build\Service, and it was set to the old TFS server URI.  I updated this setting (always exercise caution when modifying your registry!) to be the URI of the new TFS server (http://[server]:8080/), and then I re-started the Visual Studio Team Foundation Build service, and voila! the next build I kicked off succeeded.  Unfortunately the build notification window on the build server still shows the old TFS server name, but I don't anticipate that being a problem.

Retrospective

Over-all, Microsoft's aforementioned instructions for migrating TFS to a new server worked pretty well (after muddling through the usual smattering of security issues), but the fact that properly re-configuring TFS Build to point to a new TFS server (which one would think would be a somewhat common operation, if not frequent, per se) requires a "reg hack" is a little annoying to me, and the fact that this step is not documented in the migration instructions is a significant over-sight.

Print | posted @ Wednesday, January 14, 2009 11:44 PM

Comments on this entry:

Gravatar # re: Migrating TFS: Point your build server at the new TFS server
by Olivia35Cy at 1/24/2010 8:35 PM

Your interesting research connected with this post goes parallel with the thesis example. Thus, you can perform for dissertation service.
Gravatar # re: Migrating TFS: Point your build server at the new TFS server
by Love poetry at 2/4/2010 8:48 AM

I always receive exception error 404 not found because the encoding of the URL replaces
Gravatar # re: Migrating TFS: Point your build server at the new TFS server
by Casino Willkommensboni at 2/12/2010 10:11 PM

Supposedly there is a way to fix this (assign the correct permissions) by using netsh.exe part of Windows Vista, but I couldn't get it to work. It's not too big of a problem to start it outside of Visual Studio, though, because you can always "attach to process" in Visual Studio after you've started it if you want to debug the code in the service host.
Gravatar # re: Migrating TFS: Point your build server at the new TFS server
by rolex at 3/5/2010 7:38 PM

replica watches crafted using the replica watches latest machines and fake watches technology these watches can fool omega watches even the discerning user. It is a replica rolex known fact that the rich omega and the famous all love to wear breitling expensive brands of watches. General people cartier too want to wear these watches. Due to their cartier watches prohibitive costs most people tag heuer go in for Tag Heuer replica watches breitling watches instead of the real panerai watches one.Just 5.5 mm thick and armani watches 42mm wide, the round case of the timepiece is made from stainless steel. At first sight, it seems that the bezel of the audemars piguet Bvlgari Diagono Calibro 303 is also crafted from bvlgari watches this material, but, after looking at movado watches it attentively, it becomes clear montblanc watches that it is made from white gold. The patek philippe bezel has the replica watches distinctive “Bvlgari” signature engraved across rolex watches it.The inside of the case contains the Calibro 303, composed of 303 elements tag heuer and set with 37 jewels
Gravatar # re: Migrating TFS: Point your build server at the new TFS server
by rolex at 3/5/2010 7:41 PM

replica watches society offers so many things for decorating our rolex watches life, that sometimes we begin to loose our breitling watches mind from an overflow of cartier watches choices. But what exactly can adorn the patek philippe human appearance? As a person's image is so omega watches individual and specific, it is very omega often too hard to say what will be the breitling most appropriate and naturally fitting cartier thing.Can you imagine the squeal of delight when audemars piguet you present your boyfriend with the montblanc watches latest Tag Heuer replica watches? He will be panerai watches amazed beyond belief and the bvlgari watches feeling of happiness on his face when he armani watches gets those Tag Heuer replica watches replica watches will amaze you. Do not tag heuer worry; He will never be able to make out the differences rolex watches between the Tag Heuer replica watches and the real stuff.

Your comment:

Title:
Name:
Email:
Website:
 
Italic Underline Blockquote Hyperlink
 
 
Please add 5 and 5 and type the answer here: