Upgrading from TFS2010 to Visual Studio 2012 Team Foundation Server in production

Audience

Everyone

Upgrading from Visual Studio 2010 Team Foundation Server to Visual Studio 11 Team Foundation Server beta is very easy and as we have seen, fully supported in production. Today I got the new bits and I an going to upgrade our Northwest Cadence production server.

You need a couple of things before you get started:

  • Admin on your Team Foundation Server environments
    That includes your data tier and app tiers
  • Your TFS account details
    This means TFSService & TFSReports accounts at the least.
  • Download Updates

Here is my TODO list for this install:

  • DONE – Unpacking Visual Studio 11 Team Foundation Server
  • DONE – Uninstalling Visual Studio 2010 Team Foundation Server
  • DONE – Installing Visual Studio 11 Team Foundation Server
  • DONE – Upgrading SQL Server 2008 R2 to SQL Server 2008 R2 SP1
  • DONE – Apply SQL Server 2008 R2 SP1 CU1
  • DONE – Upgrading to Visual Studio 11 Team Foundation Server
  • DONE – Test your environment
  • Email Everyone in your company to go check

Once you have those things you can move on to the good bits:

  1. Unpacking Visual Studio 11 Team Foundation Server

    This is one of the longest processes as you need to unpack over 1gb of data from your ISO. I use WinRAR, but you can use anything you like.

    image
    Figure: Unpacking Visual Studio 11 Team Foundation Server ISO

    Yes, you heard me right, its only a 1GB iso for TFS11. The team has done some amazing work pairing down the install (It was over 2GB in 2010.)

  2. Uninstalling Visual Studio 2010 Team Foundation Server

    When you run the install on a box that has Visual Studio 2010 Team Foundation Server you will need to uninstall it first. But don’t worry, all you data will be left alone.

    image
    Figure: You need to uninstall Visual Studio 2010 Team Foundation Server

    This is an easy process and is completed in a couple of minutes.

    image
    Figure: Its an easy thing to Uninstall

    Once it is off you computer you can start with the Visual Studio 11 Team Foundation Server upgrade.

  3. Installing Visual Studio 11 Team Foundation Server

    Installing TFS 11 is quick and easy. It takes only a few minutes, although you may need to make sure that you have the latest updates and service packs for all of the affected products as I would always recommend that you do.

    image
    Figure: Accepting the Visual Studio 11 Team Foundation Server

    You will see that even the Install has become cleaner and less cluttered. This may change when for the release, but it looks pretty good.

    image
    Figure: Only a few customisation points

    The only customization is the folder that you are installing to and I ALWAYS use the default.

    image
    Figure: make sure that you get any updates

    This is checked by default, but it is always good to get all of the updates before you start.

    image
    Figure: Upgrading to .NET Framework 4.5 Beta

    Now the install only takes a few minutes, but .NET 4.5 takes up most of that.

    image
    Figure: As usual, .NET installs require a restart

    Always prep the machines with .NET prior to starting if you can. If you do that, you are doing this in minutes.

    image
    Figure: After a reboot the install kicks of again

    After that the install automatically starts after you log in and carries on.

    image
    Figure: After the install the the configuration window will pop

    Now that you have everything installed you need to begin the configuration. In TFS 2010 you had to stop here and install the Service Pack but as we just got these bits there is no SP, so … wooohooo..Done.

  4. Upgrading to Visual Studio 11 Team Foundation Server

    But not really. Now we need to get to the real hard stuff. I am upgrading our current TFS 2010 server, so I need to select the Upgrade Wizard. There are many other options but I don’t need them for now.

    image
    Figure: Select “Upgrade | Start Wizard” to get going

    Once you get into the wizard you will only see the options and be lead through the story that you want. Make sure that you select the correct story, and often the “Advanced” wizard is the most appropriate.

    image
    Figure: The only options for Upgrade is to select the database

    You need access to the database server for the next bit.The upgrade wizard is going to upgrade the schema of your server and you need “sysadmin” in order to do that. I forgot and had to get Steven Borg to add me.

    image
    Figure: Select your TFS 2010 database

    The wizard will check to make sure that you have a data base that you can import. It will list all of your DB’s but you can only do one through the interface. There is a command line for upgrading subsequent databases if you have more than one configuration database.

    note: You only need to do this ONCE per TFS Instance and not per team Project Collection. It will upgrade all of your collections.

    You then need to specify the TFS Service account to use. Now I forgot this as well and had to ask Shad Timm (get a blog Shad) to get the password , which he provided with the speed that only Shad can.

    image
    Figure: Configure the TFS Service Account

    I have very few circumstances where anything other then NTLM is not appropriate and as we have a separate data tier and app tier I have to use AD credentials. To be honest every time that I have used “network service” I have run into many problems. Just suck it up and use AD Credentials.

    image
    Figure: We are going to configure reporting

    If you have TFS basic (or express) then you don’t get reporting, but this is an enterprise solution that has both reporting services and analysis services to configure.

    image
    Figure: Select the server that is running Reporting Services

    In my case Reporting Services runs on the same server as the App Tier and it prepopulates the data. Remember that we already selected a TFS 2010 configuration database, so everything except the accounts is pre populated.

    image
    Figure: Your reports database might not be on the same environment as Reporting Services

    You need to select your warehouse, but enter your server and it will find it.

    image
    Figure: Select your Analysis Services database

    My Analysis Services database is sitting on my Data Tier so I have to enter that server name here. I love the “Test” feature on the pages so that you make less mistakes.

    image
    Figure: Enter your TFS Reports  Account

    image
    Figure: Setting up SharePoint is also easy

    We use an Enterprise SharePoint farm so I will be leaving it configured as is.

    image
    Figure: Review your setting

    If you have not done a TFS upgrade since 2008 you will love the readiness checks that the TFS team added. It looks at all of the things that it can to make sure that we catch any errors NOW, before we go any further.

    image
    Figure: All of the readiness checks then run

    The readiness checks run…. and…

    image
    Figure: F*ck, I need to update SQL Server.

    My SQL server does not have SP1 or the required CU…. let me go do that….

    WARNING: While I can get SP1 from Windows Update I need to jump though a bunch of hoops in order to get the CU, so:- SQL Server 2008 R2 SP1 CU1 Download

    image
    Figure: You can just rerun the checks once you have changed something

    Now that you have fixed the problem, you just need to rerun the Readiness Checks to before you can Configure your server.
    SNAGHTMLf0fc8
    Figure: If you have express you get upgraded

    image
    Figure: Depending on your hardware the upgrade may take some time

    Some updated take longer than other, but it really depends on your feature usage and hardware.

    image
    Figure: All of the collections are upgraded

    Each collection is upgraded individually after the configuration database has been completed and these again depend on the size and complexity. In this case the first collection has very little data and was upgraded quickly, but the second one is the main collection so will take a little longer.

    image
    Figure: Warning for Lab Management

    [2012-02-29 19:55:43Z][Warning] Team Foundation Server could not tear down the existing deployment rigs.
    Delete the Visual Studio 2010 Team Foundation Build Agents associated with your environments manually using Team Foundation Server Administrator Console.
    Exception Details:
    TF259046: Team Foundation Server could not complete the operation because of an internal error. Try the operation again.
    If the problem persists, contact your system administrator.
    

    Figure: Warning message for Lab Management integrate collections

    This is just to let me know that it did not do something against the Lab environment that is setup. I am going to leave it for now, but I will tell Shad that it happened Smile

    image
    Figure: SharePoint config failed

    It looks like the existing configuration settings for SharePoint were not honoured in the beta. So it is worth noting that you will need to manually configure the if you get this error.

    image
    Figure: SharePoint is actually OK

    It looks like it is just a false message. When I looked in the admin tool all was well.

DONE

You will want to do lots of exercising of the features to make sure that everything works so we only have a few tasks left:

image
Figure: All looks well from an admin

Remember that there is Go-Live for Visual Studio 11 Team Foundation Server!

Go on… be a kid again!

Create a conversation around this article

Share on Facebook
Share on Twitter
Share on Linkdin

Read more

Martin Hinshelwood
In organizational development and team dynamics, Agile (as the Agile Manifesto delineates) and Scrum (as the Scrum Guide outlines) guide teams not by solving their problems but by illuminating the issues that demand attention. These frameworks aim to identify and spotlight the challenges within a team or organization’s processes, effectively …
Martin Hinshelwood
This week, I participated in a Scrum.org Webinar hosted by Sabrina Love (Scrum.org Product Owner) as well as my colleagues, Joanna Płaskonka, Ph.D. and Alex Ballarin to discuss the state of learning and how immersive learning is the future of training. You can watch the video below to hear what …
Martin Hinshelwood
For a long time now I have been searching for that perfect domain that epitomised the vision, the why, of what I am trying to achieve with my customers and the industry at large. Now I have found it in http://nkdagility.com
Martin Hinshelwood
At the MVP Summit I was appalled by the number of people who asked questions about new features for supporting hierarchical tasks! I shared a disgusted look with Peter Provost and we had a quick (and I mean really quick) conversation that resulted in this post. it really comes down …