blog

Upgrading to Team Foundation Server 2012 Update 1 in production – DONE

Published on
10 minute read

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.

Checklist for Upgrading to Team Foundation Server 2012 Update 1

I always like to have a short measurable checklist

  1. 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.

  2. 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!

  3. DONE Upgrade Application Tier to Team Foundation Server 2012 Update 1 (30 minutes)

  4. DONE Configure Application Tier and upgrade Schema to Team Foundation Server 2012 Update 1 (30 minutes)

  5. DONE Upgrade Build Server to Team Foundation Build 2012 Update 1 (XX minutes)

Lets get going…

Free up disk space for Team Foundation Server 2012 Update 1

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.

Backup before Team Foundation Server 2012 Update 1

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.

Upgrading to Team Foundation Server 2012 Update 1 in production – DONE

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.

Upgrading to Team Foundation Server 2012 Update 1 in production – DONE

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.

Upgrade Application Tier to Team Foundation Server 2012 Update 1

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.

Upgrading to Team Foundation Server 2012 Update 1 in production – DONE

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.

Upgrading to Team Foundation Server 2012 Update 1 in production – DONE

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.

Configure Application Tier and upgrade Schema to Team Foundation Server 2012 Update 1

Once the installation has completed we are presented with the usual Configuration Wizard page but it has defaulted to an Upgrade.

Upgrading to Team Foundation Server 2012 Update 1 in production – DONE

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.

Upgrading to Team Foundation Server 2012 Update 1 in production – DONE

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.

Upgrading to Team Foundation Server 2012 Update 1 in production – DONE

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.

Upgrading to Team Foundation Server 2012 Update 1 in production – DONE

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.

Upgrading to Team Foundation Server 2012 Update 1 in production – DONE

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.

Upgrading to Team Foundation Server 2012 Update 1 in production – DONE

Figure: Verify that you have Team Foundation Server 2012 Update 1

Now for a couple of checks:

  1. Version in TFS Administration Console is correct
  2. Web access is up and running

Awesome…

The last thing that I did was to update the Power Tools to the latest version so that there was no mismatch.

Upgrading to Team Foundation Server 2012 Update 1 in production – DONE

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.

Upgrade Build Server to Team Foundation Build 2012 Update 1

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.

Part 1 – Recreate the Controller (TFS Application Tier)

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.

Upgrading to Team Foundation Server 2012 Update 1 in production – DONE

Figure: Replace the old controller with the new one

This will reactivate the same controller instance that you had before with the same configuration.

Part 2 – Recreate the Agents (TFS Build Server)

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.

Upgrading to Team Foundation Server 2012 Update 1 in production – DONE

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”.

Upgrading to Team Foundation Server 2012 Update 1 in production – DONE

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.

Conclusion

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…

code-and-complexity tools-and-techniques blog configuration infrastructure tfs tfs2008 tfs2010 tfs2012 tfs2012-1 tools

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.​

Healthgrades Logo
Trayport Logo
Boeing Logo
Microsoft Logo
Capita Secure Information Solutions Ltd Logo
SuperControl Logo
Lockheed Martin Logo
Slicedbread Logo
Boxit Document Solutions Logo
Hubtel Ghana Logo
New Signature Logo
Akaditi Logo
Cognizant Microsoft Business Group (MBG) Logo
ProgramUtvikling Logo
Genus Breeding Ltd Logo
Lean SA Logo
Qualco Logo
Milliman Logo
Royal Air Force Logo
Department of Work and Pensions (UK) Logo
Ghana Police Service Logo
Washington Department of Enterprise Services Logo
Washington Department of Transport Logo
Nottingham County Council Logo
Alignment Healthcare Logo
Akaditi Logo
Sage Logo
Workday Logo
Deliotte Logo
Jack Links Logo