Upgrading TFS 2010 to TFS 2012 RC – Done
Over the weekend, we decided to take the plunge and upgrade the SSW TFS 2010 instance to the shiny new TFS 2012 release candidate.
Update: for the latest rules for migration, see http://rules.ssw.com.au/TFS/RulesToBetterTFS2012Migration/Pages/default.aspx
From Adam Cogan‘s Blog:
Initially, there was some debate as to whether we should upgrade what is the busiest server in our environment. One call to Grant Holliday made all the difference and we quickly reached a consensus. The upgrade was going ahead and Damian Brady was the guy in the hot seat!
There are three main upgrade paths:
- Upgrade from a Basic or Express version of TFS
- Upgrade in place
- Upgrade and move to new hardware (recommended)
We chose option 3 for a few reasons. We used the opportunity to move to a SQL Server 2012 instance and change our hardware configuration a bit, but more importantly option 3 gave us the simplest rollback path; simply turn off the new server and bring the old one back up, then change any DNS settings back.
It was a very straightforward process (with a few coffee breaks):
- Before you start – getting the VMs ready
- Preparation steps – stopping the servers and backing up
- Installing and upgrading TFS 2012
- Configuring Reporting Services
The initial feedback from the test developers is extremely positive. They can’t wait to start using it!
I want to mention a couple of great blog posts. There was a series of blog posts from Tim Elhajj, and of course we could leverage off our Rules to Better TFS 2010 Migration and the related blog posts (first, second, third) from Martin Hinshelwood for ideas.
Well done to the TFS team, they’ve really done a great job in this version.
SSW may have a possible claim to fame here – we might be the first company to deploy TFS 2012 RC to live. I have not seen any blog posts about other companies migrating their live environment yet. I’m a TFS MVP and nobody on that list has posted about their migration yet. I’m expecting the punctilious Martin Hinshelwood to send us a nice scotch whisky!
The below is a bit of an epic, but if you’re keen to see how we did it, read on!
More Information
Our existing environment was:
- Windows 2008 server: TFS 2010, SQL Server 2008
- Windows 2008 server: SharePoint holding our projects
The new environment is:
- Windows 2008 R2 server: TFS 2012 RC and a local SharePoint instance
- Windows 2008 R2 server: SQL Server 2012
Before you start – getting the VMs ready
Thankfully, one of our sysadmins – Daragh – had already set up the servers I’d need, so we had an existing Windows 2008 R2 Server with SQL Server 2012, and a brand new Windows 2008 R2 Server for TFS. Daragh had also already installed (but not configured) SQL Server Reporting Services and Analysis Services on the TFS box. TFS no longer supports 32 bit, so it was important we were running 64 bit servers.
Make sure you have administrator access to all the machines you’re going to touch. It makes it much easier if you’re a domain administrator (I got promoted for the weekend!).
Preparation Steps – stopping the servers and backing up
- The first step is obviously to let everyone know that TFS will be offline.
Have a look at the Rules to Better Networks for guidance on an outage email. - Take the TFS 2010 server offline.
This is important because we’ll be upgrading from a backup, so any checkins that occur during the process won’t come across! - Just to be safe, I also stopped the TFS Application Pools in IIS
- Verify that you can’t connect to the TFS server by trying to connect in Visual Studio

- At this stage, it’s a good idea to run the awesome DogFood Stats queries from Grant Holliday to get some statistics on your current projects. Make sure you document these for comparison later.
- Backup the TFS and Reporting Server databases.
We had quite a few relevant databases because there were a few project collections.

- Back up the Reporting Services Encryption Keys.
We’ll need to use these later to configure our new Reporting Services against the restored databases.
To back up the encryption key, follow the steps on the MSDN page.
Note: Make sure you remember the password you use to protect it with – you’ll need it later! - Configure SQL Server Analysis Services to recover on failure.
On your new TFS Server box: - Move all my database backups to the new SQL Server 2012 instance.
This was as simple as copying each of the database backups to the new SQL 2012 server.
Installing and upgrading TFS 2012
- Because we’re installing from an ISO rather than a physical CD, we mount the ISO using SlySoft’s Virtual CloneDrive (or your favourite alternative).
- Run tfs_server.exe from the installation disk or ISO.
- Accept the license terms and click Install Now (because this is an admin operation, you may be given a UAC prompt – obviously, you can accept this)

- Watch the progress with excitement and trepidation (and coffee)

You may get a message asking you to reboot the machine. If it does appear… restart the machine.

This made me a little nervous because we were using a virtual machine and a mounted ISO, but everything came back up perfectly and continued from where it left off. - After installing, the Configuration Center will be shown.
We want to Upgrade from an existing server

- We need to restore our TFS databases, so we’ll use the Database Restore Tool presented on the next screen.

- Because we’re not using a local database, we’ll change the target server instance so we can connect to our SQL 2012 server.

- In the Restore SQL Database screen, choose the folder where you saved your backups. Note that this will be on your SQL Server if that’s where you put them.
The tool will find all TFS databases automatically.
Note: In our case, we want to restore our Reporting Server databases too, so make sure they’re ticked.

Ensure this is correct, then click Restore. The tool will restore each of the databases in turn. When finished, click Close. - The next step asks you to specify a configuration database to upgrade.
First, we choose our SQL Server 2012 instance, then click List Available Databases
The tool should find our Tfs_Configuration database automatically.
We’ll confirm we have a backup, then click Next.

- We’re next asked for the service account for our Application Tier
Network Service is fine for this, so just click Next. - Next up, we’re asked if we want to configure reporting services. Make sure the checkbox is checked, then click Next.
- Make sure the instance and the URLs are correct, and click Next.
We have a local instance and we kept all the default URLs, so there was nothing to change.

- Next up is the TFS Warehouse database
Because our SQL Server is in a different location, we had to change the instance. To find the correct database, I tested the connection then listed all available databases. After that, the wizard found the Tfs_Warehouse database automatically. If everything is correct, click Next.

- The Analysis Services are set up on the local TFS machine as well, so nothing needs to change on this screen. It’s a good idea to test using the Test link, however.
If all is well, click Next. - Next, we’re asked to provide an account that the Reports will run as. We have a TFSSERVICE account for this specific purpose, so I supplied the credentials and tested successfully, then clicked Next.
- Next we’re asked if we want to configure SharePoint for TFS, we do, so we’ll make sure the checkbox is checked and click Next
- We want to use our existing SharePoint (installed with TFS), so we’ll leave the default settings and click Next.

- On the next screen, we get a summary of all the options we’ve chosen.
Go through them carefully to make sure everything is as expected, and click Verify to check.

Note: At this point I got a System Verification error at this point telling me I’d need to reboot before continuing.
After rebooting… I had to start the wizard again!
My initial thoughts were:

But I persisted.
I had to reboot twice to get past this error, but after that it all went smoothly. - Now we’ve got all green ticks, we can click Configure.

Configuration will take a little while, but when it’s finished, make sure you get all green ticks then click Next. - Now each of the Project Collections will be updated. This includes a lot of stuff, so it may take some time.
Grab a coffee. Maybe go for a jog.

Once you get a big green tick, click Next.
Note: The Lab management warning told us it couldn’t tear down any labs. As we didn’t have any set up, this wasn’t an issue. - At this point, you should run Grant Holliday’s DogFoodStats scripts over the new databases to make sure there are no unexpected numbers.
Don’t be concerned if the numbers aren’t identical; what you’re looking for is big discrepancies (for example zero checkins).
All of our stats were either identical to the previous value, or were extremely close.
Configuring Reporting Services
- Finally, let’s configure our Reporting Services to work with our restored Reporting Server databases.
On the TFS server, Go to Start | All Programs | Microsoft SQL Server 2012 | Configuration Tools | Reporting Services Configuration Manager - We’ll change the Server Name to our SQL 2012 instance, click Find, then Connect

- Navigate to Database on the left-hand menu, then choose Change Database

- Select “Choose an existing report server database” then click Next
- Make sure we’re pointing at the correct SQL Server instance, and that testing the connection succeeds, then click Next

- Choose the Report Server database you restored in step 8, then click Next
- Leave the Credentials page with default settings, then click Next
- Review the information on the Summary page, then click Next
When done, click Finish to complete the process - Now we’ll restore our saved encryption key.
Navigate to the Encryption Keys section, and choose Restore

- Locate the encryption key you backed up earlier, enter the password, then click OK.
Make sure you get a green tick in the Results section

- Click on the Web Service URL section and Apply the default settings

Make sure the Results section shows green ticks.

Note: If you’re unable to click Apply, you’ve probably already completed this step. Just skip this step. - Click on the Report Manager URL and Apply the default settings here as well.
Again, check you get green ticks.
Note: If you’re unable to click Apply, you’ve probably already completed this step. Just skip this step. - Try out your new URLs by clicking on the hyperlinks in the Web Service URL and Report Manager URL sections.
If all is well, you can Exit from the Reporting Service Configuration Manager.Aside: I had an issue here where when I navigated to the ReportServer URL, I was given an error saying “The report server installation is not initialized”.
My solution was:
- Navigate back to the Encryption Keys section, Delete all Encrypted content, then restore the Encryption key again.
- Navigate to the Web Service URL, make a change to the URL (and change it back), then reapply the settings.
- Do the same to the Report Manager URL.
After that it started working.
Final Steps
A couple more steps were required before we were up and running. I worked with our trusty SysAdmin Daniel Hyles to get these items sorted out.
- Make a DNS change so tfs.ssw.com.au now points to this server’s IP address.

- Make changes to the firewall to allow traffic through to this server
- In our environment, we had TFS listening on a few different ports (including 443 for SSL). This meant a bit more configuration in IIS, and some installation of certificates.
Testing
After the final steps were completed, testing went as smoothly as you could imagine. Visual Studio accepted the new server without a hitch, and all our test developers could Get Latest and Check In without an issue.
To Do
There are a few loose ends that we hope to clear up over the next few days.
- In TFS Web Access, it appears that there are no members for any of the projects. Obviously this isn’t causing an issue, and permission to access the Projects and Project Collections must have come across with the data migration (we made sure it wasn’t a free-for-all), but it seems a bit unusual.

- We still need to finish setting up the SharePoint instance that will store all our project documents.
- Our Build Servers have not yet been upgraded. This should be a fairly quick task, however until it’s done, none of our builds will work.
In particular, this affects our gated checkins. Because they make sure the project can be built before a checkin is accepted, they’re stopping us from checking in!
We’ve turned these off for the moment.
Summary
The upgrade process was fairly straightforward, however there are a few suggestions I’ll give you.
If you’re doing it, I highly recommend you have a trusty SysAdmin involved for the final few steps. A person like Daniel comes into his own on these occasions and knows exactly what changes to make and how to make them efficiently. You don’t want a programmer doing that work if you can help it.
One thing we noted was that the URLs that were used to access the old TFS server were carried over in the configuration during the upgrade. While this was fine for us as we were changing DNS entries to keep everything consistent, I can imagine a common final step would be to change these URLs. It would have been nice for the wizard to prompt us for settings like that.
The feedback has been given to Brian Harry‘s TFS team so they can add some spit and polish for the RTM version.



Damian,
Well Done! I am looking forward to using the new project management tools including the new backlog and task board.
Are you using Friendly DNS names in your TFS environment? That is always helpful for many reasons including moving hardware and upgrades. It’s especially important to make sure the Source Server information inside the symbols of your symbol server continue to work. Otherwise they won’t and that’s bad.
I would consider it to be in the Rules for Better TFS Setups. Here is my blog post about it: http://www.edsquared.com/2011/01/03/Using%20Friendly%20DNS%20Names%20In%20Your%20TFS%20Environment.aspx
Hi Ed,
Yes, we’re using friendly names for our TFS instance for exactly the reasons you mentioned. It meant that once our DNS (and firewall) was updated, all the previous connections were back online. We haven’t been using it for our other URLs however (SharePoint, Database, etc.). It’s a good idea, and I’ll discuss it with our SysAdmins.
Thanks for the link, and I’ll make sure at least the TFS friendly name recommendation makes it into our rules.
Damian
Well done Damian. This is a very informative post. I am sure I will be using this soon when we go to TFS 2012 RTM. Outstanding
Awesome work Damo. Using it now and everything is working fine from my end. Going to start playing the TFS Web Access stuff later in the week. Top effort!
Great work, Damian! SSW Designers are going to upgrade soon
Great work Damian! As usual you are on the cutting edge.
I’m looking forward to showing off the new features. Based on the feedback we’ve gotten from TFS Preview, it should be a hit.
[...] by step plan documented here Like this:LikeBe the first to like this. Tagged: TechEd12 Posted in: Uncategorized ← Scrum [...]
[...] Upgrading TFS 2010 to TFS 2012 RC – Done Categories [...]
The migration upgrade steps from TFS 2010 to TFS2012 look comprehensive. We are building out 2 new servers for our migration upgrade:
Application tier (TFS2012, SSRS, Sharepoint (WSS 3.0) and Data tier (SQL Server 2012 and Analysis Services)
The above migration document does not mention/reference installing sharepoint/WSS 3.0 out ahead of the upgrade.
Are you assuming that there is a remote/separate server running sharepoint and not installed on the application tier?
I would like to keep using WSS 3.0 but I am not sure it is supported with SQL 2012?
Any advice here?
Hi Greg,
I left SharePoint out of the install guide because the post was epic enough as it was!
We have a full Enterprise instance of SharePoint running on a separate server (with its own database), but I understand WSS 3.0 is still supported provided you also install the TFS 2012 Extensions.
However, you’re quite right in thinking that SQL Server 2012 and WSS 3.0 don’t mix. You may have to upgrade your SharePoint server or keep a SQL 2008 instance around for SharePoint only.
Damian
[...] long ago, we upgraded our TFS 2010 instance to TFS 2012 RC, and then followed it up with an update to the RTM when that became available. It has been [...]
Hi Damian,
Thank you for this post. A few questions…
1. Is this still the way to go? Because we are past RC;
2. What happens to the WIT when switching form Agile to Scrum; The source is on base of the Agile template and the new TFS projects must be Scrum. Can I change the template?
Ronald.
Hi Ronald,
Thanks for commenting.
1. Yes, this is still the way to go. So far the install process has been more or less the same for RC, RTM, and Update 1. If you get stuck though, it might be worth checking my other blog posts.
2. Changing the process template is notoriously tricky. The main problem is that the different templates have different fields that you need to decide how to map. I have two suggestions:
a) Create a whole new Team Project with the new project template. Either take a cut of your code and check it in to the new project, or create a branch of your existing code and push it across to your new team project. This is obviously the easiest, but you’ll lose all your existing work item history.
b) Do a bit of reading on changing the process template. You are able to change the process template on an existing project by redefining the fields but you have to be really careful (always test on a test server first!). Terje Osiris has a good comment on this thread that outlines the process. It should be the same with 2012 – nothing dramatic has changed with respect to how this all works.
With some effort, you’re likely to find a tool that will do this for you.
Useful resources if you go down this path might be the TFS Integration Platform and a few Stack Overflow threads (1, 2, 3)
If you’d like someone to help you migrate, let me know and I’ll see if I can reach out to some local TFS MVPs for you.
Good luck!
When I start the upgrade wizard I don’t see “Database Restore Tool” in step 6.
Hi Damian,
We are trying to migrate TFS 2010 to TFS 2012 update 1, upgrade wizard completed successfully.
There are some errors logged in windows event viewer of app tier and database tier for analysis services processing.
Are there any extra configurations needed if we migrate to TFS 2012 update1 directly instead of TFS 2012 RC?
Hi,
The short answer is there shouldn’t be, no. You should be able to upgrade to the latest version without an in-between step.
It’s a little hard to give a better answer without seeing your setup though.
Damian
This is by far the best guide I’ve read on performing a single server migration from TFS 2010 to TFS 2012. Hats off.
Thanks for this guide.
This guide really helped us much during our upgrade from TFS 2010 to TFS 2012 update 1 ,with migrating databases to a new server.
Hi Damian,
Thanks for your guide/tutorial, it’s very very helpful, especially when read in conjunction with the ALM rangers documentation.
We are upgrading from TFS 2008 SP1 directly to TFS 2012 Update 1, and although there are some slight differences in the process it largely matches your guide.
Upgrading the test server at the moment and so far we’re 15 hours in and only on step 223 of 667
I’m hoping it will be faster on the production system! So far this is the simplest/easiest TFS installation upgrade I have been involved in, so thanks for the help.