Lab Management for Team Foundation Server supports SCVMM 2008 R2 and SCVMM 2012. If you are upgrading Team Foundation Server 2013 to Team Foundation Server 2015, and plan to upgrade SCVMM 2008 R2 to SCVMM 2012, we recommend that you upgrade to SCVMM 2012 after you complete your upgrade to Team Foundation Server 2015. This topic describes how to upgrade SCVMM 2008 R2 to SCVMM 2012 when you are using Lab Management on Team Foundation Server 2015. Lab Management does not support SCVMM 2016.
Important: When you upgrade SCVMM, certain steps will cause some downtime for your Team Foundation Server. You'll find these steps below.
Upgrading to SCVMM 2012
Use the SCVMM 2012 installer to upgrade SCVMM 2008 R2 Server to SCVMM 2012 Server.
Upgrade the SCVMM agents on your hosts and library shares.
Use the SCVMM Administration Console to verify that all of your SCVMM components are working.
Install SCVMM 2012 Administration Console on all machines of the application tier of your Team Foundation Server.
Use the iisreset command to restart the Team Foundation Server web service. Then restart the Team Foundation Server job agent.
Caution: This step will disrupt the services on your Team Foundation Server.
Upgrade the data and templates in each project collection database so it is compatible with SCVMM 2012.
Open an elevated command prompt on your Team Foundation Server and enter the following command:
C:\Program Files\Microsoft Team Foundation Server 14.0\Tools> tfsconfig lab /upgradeSCVMM /collectionName:\*
When you use the upgradeSCVMM command, Team Foundation Server will create a new template object on your SCVMM server for every team project that uses that template. This ensures that your templates are upgraded to be compatible with SCVMM 2012 without losing any data. However, when the new templates are created, the team project name is appended to the template name.
If the new template name is greater than 64 characters, this will cause an SCVMM failure. To resolve this error, you must give those templates a shorter name. If you encounter any other errors or warnings when you run this command, see the next section to resolve those errors. If you do not encounter any errors or warnings, your upgrade is complete and you can begin using SCVMM environments with Lab Management.
Resolving errors and warnings when using the upgradeSCVMM command
After you use the upgradeSCVMM command, you must resolve any errors or warnings you receive then rerun the command before you can start using Lab Management. The upgradeSCVMM command generates a log file that contains information about any errors and warnings that you encounter. The location of the log file is displayed when you run the upgradeSCVMM command.
SCVMM failure: If you receive an error that is related to an SCVMM failure, use your SCVMM job history to get additional information about the error. After you resolve the error in SCVMM, rerun the upgradeSCVMM command.