This is a walkthrough of TFS 2013 upgrade to TFS 2015 on a new hardware. During this upgrade our TFS 2013 server would be untouched and we would migrate all components (TFS, SharePoint and Reporting) to a new hardware which would be used by TFS 2015.

 

Note: This post provides a general guidance and some steps may vary depending on your environment.

 

In this post I am upgrading from TFS 2013 QU5 to TFS 2015, but steps would be almost same for other versions also.
Steps to upgrade SharePoint, however may differ from version to version.

 

Environment Details:

TFS 2013 environment

Windows server 2012 R2, TFS 2013 update 5, SQL 2014 SP1, SharePoint 2013 SP1

TFS 2015 environment

Windows server 2012 R2, TFS 2015 RTM, SQL 2014 SP1, SharePoint 2013 SP1 

 

Permission Requirements: 
The Account running the upgrade needs to have the following permissions for SQL, SharePoint, TFS, and server. 

-Local Administrator on the Application Tier. 
-Sysadmin on SQL Instance.
-Local Administrator on Reporting Tier as well. 
-SharePoint Farm Administrator.

 

Upgrade Process:

In this migration upgrade scenario, the requirement for operating system, SQL server and SharePoint remains same for both the versions of TFS. Refer here more information.

You must use the TFSServiceControl command to ensure that all necessary operations, services, and application pools are stopped for maintenance tasks. Find more info here. (this is needed to ensure that while backing up TFS databases all databases are in consistent state)

Please note, on my server I backed up following databases from 2013 environment, databases names and number of databases may vary from environment to environment.

Backup all the databases from TFS 2013, the databases to backup are listed below.

  1. The Configuration Database (For instance, Tfs_Configuration). This database stores the catalog of resources and the configuration information for Team Foundation Server. This database contains the operational stores for Team Foundation Server.
  2. The Collection Database(s) (For instance, Tfs_DefaultCollection). This database stores data from all team projects in that collection. (you can have multiple collection databases)
  3. The Warehouse Database (For instance, Tfs_Warehouse). This database stores the data for reports.
  4. The Analysis Database (For instance, Tfs_Analysis). This multi-dimensional database stores the aggregated data from team project collections.
  5. Report Server Databases (For instance, ReportServer and ReportServerTempDB). The report server database stores application state and persistent data. Each report server database uses a related temporary database to store session and execution data, cached reports, and work tables that are generated by the report server.
  6. SharePoint Content Databases (For instance, WSS_Content). This database stores all the content related to the application.

000.png

 

 

Note: SharePoint_Config and SharePoint_AdminContent database are created when SharePoint is installed and configured. So, the only database to backup is WSS_Content for SharePoint.

Also, you have to back up the Encryption keys of ReportServer database.

Open Reporting Services Configuration Manager to take backup of the encryption key. Enter server and report server instance name and click connect.

001.png

 

 

002.png

 

 

Select Encryption Keys and click on Backup. Specify the file location to store backup of key. Enter password and click ok.

003.png

 

 

Following are the screens of the installation and upgrade process,

Step 1: Installing SQL server and restoring databases.

On the new server, install SQL Server 2014. For step by step instructions on how to install SQL Server, refer here.

Once we’ve installed SQL Server, using the SQL Server Management Studio, connect to the database engine and restore all the databases. Also, connect to the Analysis engine and restore Analysis Database.

004.png

 

 

Step 2: Configuring Reporting.

After restoring the reports database, we need to change databases in Reporting Services Configuration Manager.

Select Database on the left panel and click on Change Database.
Choose an existing report server database. Click on Next.

 

005.png

 

 

Specify server name and Test Connection. Click on Next.

006.png

 

 

 

Select ReportServer database from the drop down and click next.

007.png

 

 

 

Review and complete the wizard.

008.png

 

 

 

 

009.png

 

 

After changing the database, we need to restore the encryption key.
select the encryption keys in the left panel, click on restore. Enter the file location and password.
010.png

 

 

011.png

 

 

Select Report Manager URL in the left panel and click on the URL to see if Reports are configured properly. (please ensure that reports manager page is coming up fine before proceeding, any issue with reports can lead to reports not working after upgrade and may require additional steps post upgrade)

012.png

 

 

(Below steps are for SharePoint installation configuration, you can skip them if you are not using SharePoint with TFS).

Step 3: Installing and Configuring SharePoint.

Click on Install software prerequisites, it will all the required files. Upon completion, click on Install SharePoint Server.

013.png

 

 

Select complete as the server type and click on install now. This will install all the binaries.

 014.png

 

Check run the SharePoint Product Configuration Wizard now and click on Close.

015.png

 

 

Click on next.

016.png

 

 

Configuring a new farm would require reset of some services. Click on Yes to confirm.

017.png

 

 

Select Create a new server farm and click on next.

018.png

 

 

Enter the database server name and specify the database access account.

019.png

 

 

Enter the passphrase, which is used to secure farm configuration data and to join the farm.

020.png

 

 

Specify any available port. The SharePoint central administrator will use this port.

021.png

 

 

Review and click on next.

022.png

 

 

023.png

 

 

Click on finish to complete configuration.

024.png

 

 

Now that we’ve configured SharePoint, go to SharePoint Central Admin page, give the admin credentials.

In SharePoint central Admin, click on manage web application under Application Management.

025.png

 

 

Click on New to create new web application. Specify the web site name and port number. Also, specify the credentials and click on ok.

026.png

 

 

Click on Manage Content Database from Central Administrator site. Select the web application we created and check Remove content database. (this is to remove the new content database which was created while creating new web application. We would attach the content database which we migrated from TFS 2013 environment). 027.png

 

 

Open SharePoint 2013 Management shell and use Mount-SPContentDatabase to attach the old content database. Refer here.

028.png

 

 

Step 4: Configure Team Foundation Server.

Install TFS 2015 binaries by running tfs_server.exe application. Click on Install.

029.png

 

 

This process will install the required binaries.

030.png

 

 

The TFS installation wizard will complete and configuration wizard will open. Choose the upgrade option from the left pane. Click on Start Wizard.

031.png

 

 

Click on Next.

032.png

 

 

Enter the SQL Server/Instance name, click List Available Databases, this will list the configuration database of previous version, then select a database from the list. Check the box, confirming that backup is taken, then Click on Next.

033.png

 

 

Provide the service account, service account can be Network Service or user account. Also, select the Authentication method.

034.png

 

 

Set the file cache folder path. By default, path will be set but you can change the same.

035.png

 

 

If build is configured, provide the service account and click on Next.

036.png

 

 

Select the Configure Reporting for use with Team Foundation Server and Click on Next.

037.png

 

 

Enter the reporting services Instance name and click on Populate the URL for reporting service configuration. Validate the URL by browsing to the URL on a browser. Click on Next.

038.png

 

 

Specify SQL server instance name, do test and click on List Available Databases. Select the warehouse database and Click on Next.

039.png

 

 

Enter the analysis instance name. TFS will automatically identify and use TFS_Analysis. Click on Next.

040.png

 

 

Separate reader account for reports can be provided. If we proceed without entering any account, the same account for TFS Reports as TFS Services which we have set earlier. However, if you had used Network Service as TFS Service account then we have to specify a different account here as we cannot use Network Service as TFS Reports Reader account.

041.png

 

 

Check Enable integration with SharePoint. Select Change current setting to point to a different SharePoint Farm and do a test. Click on Next.

042.png

 

 

Review all the settings before proceeding. Click on Next.

043.png

 

 

Make sure all the Readiness Checks are validated. In this scenario, there is warning for Reporting and it’s complaining about the service account because for TFS and Reporting same account is used. This warning can be ignored. Click on next.

044.png

 

 

This step will configure the Application Tier and start the upgrade of Project Collection(s) in the background. Proceed with next to monitor the collection upgrade.

045.png

 

 

Project collection are upgraded. Click on Next.

046.png

 

 

Review the results and close the wizard. This will automatically open TFS Administration console.

047.png

 

 

In TFS Administration Console, we still see the old server URL under notification and web access URL.

048.png

 

 

Click on Change URLs, specify the notification and server URLs and do a test. Click on ok.

049.png

 

 

050.png

 

 

Click on Team Project Collection in the left panel, click on Team Projects and check If you can see all the team projects.

051.png

 

 

052.png

 

 

053.png

 

 

Under Reporting, check if Reporting is configured and jobs are enabled.

054.png

 

 

Try browsing the notification URL to see if you are able to view notification URL.

055.png

 

 

Try browsing SharePoint site for collection and check if you can navigate to the projects.

056.png

 

 

That’s it, your TFS 2015 is up and running.

Content Created By : Ramandeep Singh
Content Reviewed By : Romit Gulati

번호 제목 글쓴이 날짜 조회 수
116 TFS 최소, 권장 사양 (TFS 2010 ~ TFS 2017 Update 1) 황제낙엽 2022.05.04 1113
115 Azure DevOps Services REST API 를 이용하여 Git 저장소 조회하기 황제낙엽 2021.09.29 3103
114 connect to Azure DevOps Server (Rest API) 황제낙엽 2021.09.10 1046
113 elasticsearch-service-x64 제거하기 (TFS 2017–How to uninstall the ElasticSearch service?) 황제낙엽 2021.08.31 913
112 Azure DevOps Server 의 데이터를 다른 하드웨어의 서버에 복원 황제낙엽 2021.08.31 996
111 [도움말 캡쳐] TFSConfig ChangeServerID /help 황제낙엽 2021.08.31 1102
110 [도움말 캡쳐] TFSConfig help 황제낙엽 2021.08.31 1076
109 TF401054: 요청된 서비스 수준 속성 TFS_SERVICE_LEVEL이(가) 필요한 값과 일치하지 않습니다. 황제낙엽 2021.08.27 986
108 Azure DevOps Server 또는 TFS 의 Requirements 황제낙엽 2021.08.27 1062
107 [Azure] Azure Boards 구성 및 사용자 지정 설명서 황제낙엽 2021.08.25 952
106 [Azure] Restore data to a different server than the current one 황제낙엽 2021.08.25 1216
105 Process Template Editor For Azure, TFS2017 황제낙엽 2021.08.25 1979
104 Microsoft Visual Studio Team Foundation Server 2015 Power Tools 황제낙엽 2021.08.25 1124
103 [Azure] Azure DevOps Server 에서 TfsServcieControl.exe 의 위치 황제낙엽 2021.08.25 1043
102 Migrate TFS 2015 to Azure DevOps Directly? 황제낙엽 2021.08.24 536
101 [benday] Azure DevOps Server 2020 Installation Guide file 황제낙엽 2021.08.24 13336
100 [도움말 캡쳐] tf.exe git help 황제낙엽 2021.07.26 864
99 TFVC Rest API 를 이용한 변경집합 조회 (TFS 2017~) [1] 황제낙엽 2020.11.11 1122
98 [도움말 캡쳐] tf.exe workspace [1] 황제낙엽 2020.10.22 885
97 tf vc get 실행시 /force /overwrite 모두 사용해도 "모든 파일이 최신 상태입니다." 라고만 나온다 황제낙엽 2020.10.16 1200