Although many of my customers have been having a go at installing Visual Studio Team Foundation Server 2012 Update 1 themselves one or two have had issues. While these issues are easily resolved it is sometimes nice to have someone else who has done the same thing a bunch of times take the rains.
This upgrade should take no more than 3 hours as I have only two servers to worry about and 40GB of data.
There are a couple of pre-requisites that you can get out of the way to make your install and upgrade a lot smother and if you are upgrading from a previous version of TFS this is exactly the same procedure. You can go strait from Team Foundation Server 2008 SP1 or Team Foundation Server 2010 SP1 to Team Foundation Server 2012 Update 1 without much trouble. I would however suggest that for a full version upgrade that you “move to new hardware” as part of the upgrade. This will give you a chance to upgrade SharePoint, SQL Server and whatever other components you have on there and more notably you get to clean all the plaque off your crusty server for a nice shiny.
Things to Read:
Note You can’t upgrade TFS 2005 to TFS 2012. You will need to go to TFS 2008 or TFS 2010 first.
Things to take into consideration:
For the satellite systems:
Things you will need:
Once you have all of these things ready and confirmed you can run the upgrade. Refer to the more detailed documentation for previous version of TFS, here I am doing a Team Foundation Server 2012 to Team Foundation Server 2012 Update 1 upgrade only.
I always like to have a short measurable checklist
DONE Free up disk space for Team Foundation Server 2012 Update 1 (added 1.5 hours to Upgrade)
This server has limited disk space so I had to uninstall a bunch of things that did not need to be there… like Visual Studio 2012 Ultimate.
DONE Backup before Team Foundation Server 2012 Update 1 (15 minutes)
This is imperative and not optional in any way. Even better take the backup off server!
DONE Upgrade Application Tier to Team Foundation Server 2012 Update 1 (30 minutes)
DONE Configure Application Tier and upgrade Schema to Team Foundation Server 2012 Update 1 (30 minutes)
DONE Upgrade Build Server to Team Foundation Build 2012 Update 1 (XX minutes)
Lets get going…
There are a number of things that folks like to install on there Team Foundation Server that have no business there. The first and most common thing is client tools. Do not install Visual Studio or any variant of it on your production Team Foundation Server. This takes up tons of disk space and complicates any upgrade as you need to worry about also patching Visual Studio to the same level. If you don’t have Visual Studio and Team Foundation Server patched to the same level you can get “unstable” behaviour from your system. Don’t take the risk and don’t install it here.
Any client tools that you do need can be installed locally on your workstation or on a build server where you have to install the client tools anyway. Another option that I often use is to have a Windows 7/8 VM in your environment that is all setup with the client tools and is specifically for Administration and configuration of TFS. So it would have the Power Tools, Sidekicks and anything else that you might need.
The easiest way to backup TFS is to use the add-on from the product team that comes with the power tools. This tool takes care of the heavy lifting and as it is from the TFS Product Team works great.
If you are using the Database Backup Tools then all you need to do is take a Full Backup before you get started.
Figure: Backup before Team Foundation Server 2012 Update 1
The backup here takes a backup of all of the databases associated with TFS, Reporting Services and SharePoint so you have a full reference. The only database of any size is the Collection database which in this case is around 40GB of data which is mostly in Version Control.
Figure: Verify backups before installing Team Foundation Server 2012 Update 1
Once the backup is complete and you have verified that the files exist (I am paranoid) then you can start with the upgrade.
The upgrade process is mostly automated with a little bit of configuration that would would do for any upgrade whatever version of Team Foundation Server you are upgrading from.
Figure: Upgrade components to Team Foundation Server 2012 Update 1
The installer will handle removing the old components and installing the new ones for you. You will then however need to do the configuration of this new App Tier to talk to your existing data tier and that’s where the real upgrade starts.
Figure: You may be asked to reboot a bunch for Team Foundation Server 2012 Update 1
Many of the components that both Team Foundation Server and the Operating System relies on will be updated as part of this process so you may be asked to restart. In this case I had to bounce the server twice and the installation automatically restarted once I logged in.
Note The installation restarts for the first user with admin that logs onto the server. I had one case of the ops team wondering why the server was bouncing and they logged onto the console in the data centre before we could remotely. Took us 10 minutes to figure out what went wrong and then had to talk the operations team through the process without being able to see the screen.
This part of the upgrade while fairly fast can take a good 15-30 minutes depending on the speed of your system and the components that you have installed.
Once the installation has completed we are presented with the usual Configuration Wizard page but it has defaulted to an Upgrade.
Figure: Team Foundation Server 2012 Update 1 Upgrade Wizard
For security reasons the wizard will NOT populate the same account that you used previously. You will need to manually specify each account, in this case the TFS Service & TFS Reports accounts as well as enter the password.
Figure: Select the database to upgrade to Team Foundation Server 2012 Update 1
As you may have more than one TFS instance in the same database you need to tell TFS which one is yours. In this case I only have one anyway but it does tell me the version of the database that I will be upgrading. Again we have the obligatory “I confirm that I have a current backup” to make sure that you have. No really… don’t just tick it.. make sure, verify again, that you indeed have backup of all of your TFS databases. I have indeed needed to restore a database and re-run the upgrade.
Figure: Select the Warehouse to upgrade to Team Foundation Server 2012 Update 1
Again there could be more than one warehouse and unlike previous version of Team Foundation Server, Team Foundation Server 2012 will upgrade the warehouse so that you don’t have to spend so long recreating it and are back up and running quicker.
Figure: Verification checks found TF400432 during upgrade to Team Foundation Server 2012 Update 1
During the upgrade I found an issue with communicating with SharePoint but it was very easy to solve.
I fixed this after the upgrade was complete so there is no reason to stop and try to fix it during the upgrade. You may however need to manually fix something.
Figure: Successful upgrade to Team Foundation Server 2012 Update 1
The upgrade completed successfully, but it was not able to add the TFS account to the SharePoint Farm Administrators group which makes perfect sense as it has the wrong post for the Administration Site.
Figure: Verify that you have Team Foundation Server 2012 Update 1
Now for a couple of checks:
Awesome…
The last thing that I did was to update the Power Tools to the latest version so that there was no mismatch.
Figure: Get and install the Power Tools that match the version you installed
Now that the Team Foundation Server is upgraded we only have the Build Server to do in this configuration.
On the build server you run the upgrade in exactly the same way that you did for the Application Tier. This takes a while as the same C++ components require a restart or two.
Because we reinstalled the TFS Server where ther controller was configured we do need to reconfigure that controller. When you run the wizard it will ask you it you want to keep the configuration the same as what was previously configured. In essence replace the existing item.
Figure: Replace the old controller with the new one
This will reactivate the same controller instance that you had before with the same configuration.
With our controller now configured on the TFS Application Tier we now need to activate the agents on the build server. First we upgrade the build server to Update 1.
Figure: Installing Team Foundation Server 2012 Update 1
On the build agents you will just be presented with the generic “pick a wizard” page and you should select the “Configure a build service”.
Figure: Select Configure a build service for Team Foundation Server 2012 Update 1
Now you go through the same configuration that you would for creating a new set of Agents. As with the controller you will be asked if you want to maintain the configuration from before for this server and all you need to do is say “Yes” and it will be configured for you in the same way.
Upgrading from Team Foundation Server 2012 to Team Foundation Server 2012 Update 1 is a fairly strait forward task but as with anything to do with TFS there can be a lot of moving parts. I would describe this as a simple installation and there were few gotchas.
Other installations and upgrade are not quite so simple…
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.
We partner with businesses across diverse industries, including finance, insurance, healthcare, pharmaceuticals, technology, engineering, transportation, hospitality, entertainment, legal, government, and military sectors.