In-Place upgrade of TFS 2008 to TFS 2010 with move to new domain

Topic(s)
Audience

Everyone

vs2010logoI had a particularly complicated upgrade this time that required me to do two things:

  • In-Place upgrade of TFS 2008 to TFS 2010
  • Move new TFS 2010 server from one domain to another

I followed Vasu Sankaran’s post on Guidance for upgrading to TFS 2010 along with domain move to make sure I did not fall into any of the known pitfalls, but unfortunately everything went screwy when we tried to move domain.

WARNING: Do not install Team Foundation Server SP1 as part of your Upgrade and domain migration; Do it after!

 UPDATE: 2012-02-28 – Microsoft re-released the Service Pack to fix a bunch of issues with this!


There are a number of things we need to accomplish:

  1. In-place Upgrade of Team Foundation Server 2008 to Team Foundation Server 2010
  2. In-place upgrade of Team Foundation Build 2008 to Team Foundation Build 2010
  3. Move Team Foundation Server 2010 Team Project Collection to a new Domain

#1 In-place Upgrade of Team Foundation Server 2008 to Team Foundation Server 2010

The best way to do a domain migration of TFS 2008 and upgrade to TFS 2010 is to do the upgrade first. The Identities Change commands required to do the migration are much more stable under TFS 2010.

  1. Run Best Practice Analyser for Team Foundation Server 2008 and fix all problems foundimage
    Figure: There are always things highlighted in the BPA. Luckily these were all easily fixed
  2. Backup all TFS 2008 databasesnote: Make sure you remember to take the Reporting Services Key image
    Figure: With TFS 2008 there are a lot of databases to backup.
  3. Uninstall Team Foundation Server 2008It is a LOT easier to uninstall TFS 2008 than it ever was to install it Smile
  4. Install Team Foundation Server 2010 (But do not configure)
  5. Install Team Foundation Server 2010 Service Pack 1 – Do not do this!
  6. Configure Team Foundation Server 2010Select the “Upgrade”  option to upgrade the exiting TFS 2008 databases to TFS 2010. The wizard will find all of the valid databases on any instance of SQL you specify.image
    Figure: The Upgrade process took around 30 minutes for ~3GB of data
  7. Configure Team Foundation Build 2010 Controllerimage
    Figure: I am running the Team Foundation Build Controller on the TFS Server  

    In cases of low load I always run the Team Foundation Build Controller on the same server as Team Foundation Server. This allows for less servers under low load and simplifies the topology.

  8. Install Visual Studio 2010 Team Explorer
  9. Install Visual Studio 2010 Service Pack 1
  10. Test new environment (Create Team Project | Connect to Source Control | Connect to Work Item Tracking | Run a Build)image
    Figure: Agile 5 sandbox
  11. Backup Team Project CollectionThis is just a precautionary backup so I can get back to this point if I need to. I also have backups for the Team Foundation Server 2008 databases.
  12. Run Best Practices Analyser 2010image
    Figure: Acceptable errors  

    I am OK with these errors as they will not impact the domain move.

#2 In-place upgrade of Team Foundation Build 2008 to Team Foundation Build 2010

Upgrading Team Foundation Build is even simpler than upgrading Team Foundation Server. Make sure however that you clean up all of the old build details as the upgrade will create “controllers” for all of the Build servers that you currently have.

  1. Uninstall Team Build 2008
  2. Install Team Build 2010
  3. Configure Team Build 2010
  4. Connect to Controller on TFS 2010 Server
  5. Test Build servers

    image
    Figure: Woot, a build just runsThis is an Upgraded project so all of the builds are just wrapped “TFSBuild.proj” files.
  6. Test All existing build definitions still runimage
    Figure: Its even better when ALL of the builds work
  7. Clean off all old Build Servers

I was very surprised that all of the builds still worked, but there is currently limited validation as part of these existing builds.

At this point the system works perfectly. I am able to connect to TFS, detach and reattach the collection as well as do builds and work with code. Little did I know that there was a gremlin hidden in the mix.

#3 Move Team Foundation Server 2010 Team Project Collection to a new Domain

It is now time to follow the documentation for Moving Team Foundation Server from One Environment to Another, but with the caveat that we are only migrating the Team Project Collection and not changing the domain of the old Team Foundation Server.

  1. Remove all accounts from new Team Foundation Server 2010
    Why you might ask! Guidance for upgrading to TFS 2010 along with domain move 

    image
    Figure: make sure there are no groups with the same users

  2. Install Team Foundation Server 2010 (But do not configure)
  3. Install Team Foundation Server 2010 SP1 – Do not do this!
  4. Install Team Explorer 2010
  5. Install Visual Studio 2010 SP1 – Do not do this!
  6. Install SQL Server 2008 R2 Client toolsYou need this to connect to Analysis Services on a remote computerimage
    Figure: You get TF255040 if you don’t have the client tools installed
  7. DBA Installed SQL Server (Database Engine | Analysis Services | Reporting Services)image
    Figure: I always get caught by this one 

    Make sure that you install Reporting Services in “Default” configuration and not “SharePoint Integrated”. As the team I am Woking with usually works with reporting services integrated with SharePoint their default was naturally “SharePoint Integrated”. Luckily Reporting Services is easy to reinstall.

    For some reason I always forget to install “Fill-test search” and get a TF254027. Because I always forget I neglected to tell the DBA to install also. In this case all parts of SQL are remote to the TFS server which is a configuration that I know is supported, but this is the first time I have used it.

  8. Configure TFS selecting “Advanced”  to set the Database, Cube and Reporting to use another server. At this point we are NOT installing or integrating with SharePoint.image
    Figure: I do love green ticks 

    If we want to Integrate SharePoint 2010 with Team Foundation Server 2010 at a later date we can

  9. Add any Admin users you needimage
    Figure: Remembering that Reporting Services in Remote
  10. Detach Team Project Collection from OLD serverimage
    Figure: Detach before backup as changes are made to the collection 

    if you do not detach the collection prior to backup and move to the new server you may encounter problems trying to get the collection back up.

  11. Backup Collection and Restore to Team Foundation Server in new Domainimage
    Figure: You get a chance to change the name when you restore  

    I would recommend this as “DefaultCollection” does not really sound good. I prefer “[CompanyName]Collection” as it will make everyone feel that it is more important.

  12. Make sure that your account has permission to the databasesimage
    Figure: Permission to the database is required
  13. Attach the collectionimage
    Figure: Oh, why do I get a TF254078?
  14. Lets try that again through the command lineimage
    Figure: Oh, so really its a TF246081! That’s nice.

    note: Make sure that you run the command prompt in elevated permissions
  15. Rerun all previous steps without installing SP1 (the long shot)image
    Figure: Would you believe it!  

    image
    Figure: Woooohooooo!

  16. Change all of the Identities (Identities Change)Well, it looks like this server is now on its 4th domain! That’s right, the company has had this server since TFS 2005 and has kept it moving around. As TFS only recently gained the ability to migrate accounts I was only able to migrate some of the accounts.
  17. Create user account groupsimage
    Figure: Adding users can be done through the project or at the TPC level
  18. Connect up build serversAs these build server do not yet have all of the components installed to run the build I was unable to get the build running on the day. To be installed for my next visit is:
    • SharePoint 2007 – The developers are creating SharePoint apps
    • Visual Studio 2008 – you always need to add VS to a build server

Conclusion

After trying a while bunch of options including re-running everything from scratch without installing Service Pack 1. With the success of running without SP1 installed I am inclined to think that the product team broke something in the Attach Team Project Collection command.

References

BNX4P3AT2EP3

Upcoming Training Opportunities

These are the next five classes we have, and you can check out our full public schedule of classes.

Timezone:
Live Virtual Professional Scrum Master Online on 29th May 2023
Virtual
29 May-1 May, 2023
09:30-13:30 BST
4 half-days
Live Virtual Professional Scrum Product Owner online 5th June 2023
Virtual
5-8 Jun, 2023
09:30-13:30 BST
4 half-days
Live Virtual PAL Evidence-Based Management Online on 19th June 2023
Virtual
19-20 Jun, 2023
09:00-13:00 BST
2 half-days
APS 19th June 2023
Virtual
19-22 Jun, 2023
09:00-13:00 EDT
4 half-days

We can deliver any of our courses as private in-house training over Microsoft Teams & Mural. We also recommend training based on your accountabilities or role, you can go directly to recommended courses for Scrum MastersProduct OwnersDevelopers and Agile Leaders.

Create a conversation around this article

Share on Facebook
Share on Twitter
Share on Linkdin

Related Courses

No items found

Read more

Martin Hinshelwood nkdAgility.com
https://youtu.be/_fFs-0GL1CA Why do you encourage people to follow a certification path in their career journey? I would encourage you to follow a scrum certification path for the same reason that people go to university. The same reason that people do any course or certification. It gets you a foot in …
Martin Hinshelwood nkdAgility.com
https://youtu.be/QGXlCm_B5zA What will you learn on the PSM II course? There are two main things that most scrum masters will learn on the PSM II or Advanced Professional Scrum Master course. That they haven’t been working effectively as a scrum master to date. That they are there to empower and …
Martin Hinshelwood nkdAgility.com
In Scrum Events across the world, I hear repeated the phrase “that’s how agile works” when describing behaviours that are both unprofessional and the very opposite of an agile mindset. These behaviours will inhibit agility and are a result of a lack of understanding of the underlying principles. We need …
Martin Hinshelwood nkdAgility.com
https://youtu.be/klBiNFvxuy0 What is the most common Aha moment people have in a scrum course? It depends on the scrum course they are attending. The content presented in the Applying Professional Scrum (APS) course leads to very different epiphanies when compared to the content presented on an Advanced Professional Scrum Master …

OUR TEAM

We believe that every company deserves high quality software delivered on a regular cadence that meets its customers needs. Our goal is to help you reduce your cycle time, improve your time to market, and minimise any organisational friction in achieving your goals.

naked Agility Limited is a professional company that offers training, coaching, mentoring, and facilitation to help people and teams evolve, integrate, and continuously improve.

We recognise the positive impact that a happy AND motivated workforce, that has purpose, has on client experience. We help change mindsets towards a people-first culture where everyone encourages others to learn and grow. The resulting divergent thinking leads to many different ideas and opportunities for the success of the organisation.