Visual Studio Team Foundation Server 2015 RTM (Release to Manufacturing) was released on August 6, 2015. In 4ward we upgraded TFS on all the major and minor versions from 2010 to 2013, and this week we updated our TFS 2013.4 architecture to TFS 2015.
As usual, in this post I’ll show you how to do an in-place upgrade of Team Foundation Server 2015.
For a Single-Server TFS topology like mine it was an easy and fast enough process. The Upgrade wizard restore the previous configuration settings, so the only things you have to insert are the passwords for the service accounts.
If you want to see the previous posts on TFS upgrade, you can go here:
- Upgrading TFS 2010 to 11 Beta
- Upgrading TFS 11 Beta to TFS 2012 RC (Release Candidate)
- Upgrading TFS 2012 RC to RTM (Release to Manufacturing)
- Upgrading TFS 2012 to 2012.1 (Update 1)
- Upgrading TFS 2012.1 to 2012.2 (Update 2)
- Upgrading TFS 2012.2 to 2012.3 (Update 3)
- Upgrading TFS 2012.3 to 2013 (Migration upgrade to new hardware)
- Upgrading TFS 2013 to TFS 2013 Update 2 (2013.2)
- Upgrading TFS 2013.2 to TFS 2013.3 (Update 3)
- Upgrading TFS 2013.3 to TFS 2013 Update 4 (2013.4)
Before upgrading, you have to check the System Requirements for Team Foundation Server.
Preparing for Installation
If you have a MSDN Subscription, you can download, under the “Visual Studio” category, the Team Foundation Server 2015 ISO image (en_visual_studio_team_foundation_server_2015_x86_x64_dvd_6909713.iso) or the Web Installer (en_visual_studio_team_foundation_server_2015_x86_x64_web_installer_6909735.exe). Before to go on, my recommendation is to perform the following tasks:
- Run a Complete Health Check with the Best Practice Analyzer Tool for Team Foundation Server (available after installing the Microsoft Visual Studio Team Foundation Server 2013 Power Tools on TFS Application Tier) in order to prevent or troubleshoot problems in the actual TFS deployment;
- Write down the actual TFS configuration (you can take some screenshots on TFS Administration Console) and make sure to have all the service accounts credentials for TFS;
- Send an email to warning about the upgrading process because the system will be offline while the Upgrade is applied!
- Download all the Windows Updates and Microsoft Updates and reboot the system if necessary;
- Stop all the services and application pools:
- Perform a full backup for each database used by TFS. There are two way to do this operation:
- By using the Database BackUp Tool when the Upgrade wizard asks to do it (recommended);
- By using SQL Server Management Studio (you must also synchronize the backups to the same point in time, see how to manually back up Team Foundation Server).
- Are you using a virtual machine? If so, take a snapshot so you can always rollback the system if something goes wrong.
Install TFS 2015
Run the Visual Studio Team Foundation Server 2015 installation (tfs_server.exe):
Click on Install Now: it would take about 10 minutes to complete the installation (depending the system performance).
If you are doing an in-place upgrade, the Upgrade Wizard opens automatically at the end of the installation process:
Make sure the SQL Server Instance is ok.
ATTENTION: The schema of your database will be updated to the new format and the operation is not reversible without a backup! So you can take a full backup now by clicking the link to the Database Backup Tool:
Select the databases to backup and the destination folder and click on Backup Now.
The process was very quick for me (4 minutes to backup about 30 Gb).
Now you have a current full backup of TFS databases: you can close the tool and go straight
Insert the password for the TFS service account and click on Test link to validate the credentials:
Because the Application Tier caches a lot of resources on a local folder (usually under C:\Program Files\Microsoft Team Foundation Server 12.0\Application Tier\Web Services\_tfs_data), you can configure a different path for this directory and make sure you have enough disk space.
Now you can see the new Build service settings on the wizard. The new Team Foundation Build (TFBuild) 2015 is a completely new build system that’s web-based and cross-platform: it use a different architecture and run on a completely different system related to the old XAML build system (based on XAML build process templates, build controllers and build agents). You can use both the new Team Foundation Build system alongside your old XAML Build system.
So when you install or upgrade TFS 2015, a new build agent will automatically be installed and configured as part of your application tier, but you can choose to start automatically or keep disabled. I set a domain user account for the build service and keep disabled for now (I’m going to enable a new build agent on a separate build machine and a future post will explain how to do it):
Keep the flag to configure Reporting for TFS:
Most of these screenshot are just “click next, next, next” because I am doing an in-place upgrade. So check if everything is ok, like the Reporting Services Instance, the Report Server URL and the Report Manager URL.
Insert the Password for the report reader account:
My deployment use a separate server for SharePoint, and I don’t want to modify the current settings, so go on…
Take a look at the Review page to check if everything is ok:
The Readiness Check validates that everything is available:
The TF400419 message alerts to install the SharePoint Extensions for Team Foundation Server on remote SharePoint server. You can install it later, now click on Configure:
After Configuration, you have to start the Project Collection upgrade:
The process took about 15 minutes to upgrade all the ours Project Collections:
At the end you can close the Upgrade Wizard and the Configuration Center:
From the TFS Administration Console you can see that the version number is updated (14.0.23128.0):
Take a few minutes to check that everything works correctly:
- Open Visual Studio and connect to TFS by using the Team Explorer window;
- Perform a Get Latest;
- Modify a test file and check in;
- Queue a new build and verify if it has successfully run;
- Check the Reporting Services;
- Open the TFS Web Access:
- Create a new Team Project with Visual Studio 2015.
Final tasks: don’t miss to update the Build Server, the SharePoint Extensions on the remote machine and the Agents for Visual Studio (Test Controllers and Test Agents). Now you’re ready to go!
Do you need a support to adopt Visual Studio ALM? We can help you! Contact us: firstname.lastname@example.org