Configure TFS Connection for VS 2013 Release Management
Another optional configuration for VS Release Management is TFS connections. TFS Connections are optional because Release Management is capable of using package/payload built by any other build system.
If TFS is used in an organization it can be integrated with VS Release Management to provide an end to end solution, which tracks TFS based Requirements to Production Deployments.
With VS Release Management TFS can be integrated at the project collection level. This allows integration of project collections from different TFS servers with a single VS Release Management Server. In other words, VS Release Management Server is capable of managing releases, using builds done manually, any other build system or any number of TFS build servers.
http://lh4.ggpht.com/-9LLd6uB2xNs/U_eAXfW71zI/AAAAAAAAC0g/9nc66PbOq64/001_thumb%25255B1%25255D.png?imgmax=800
The first step is to setup an account to integrate TFS and VS Release Management Server.
http://lh5.ggpht.com/-PYEX4pJjMvI/U_eAZuRbVSI/AAAAAAAAC0w/OFSzvGud_Us/004_thumb%25255B5%25255D.png?imgmax=800
http://lh3.ggpht.com/-sLE7JNwEeQY/U_eAbsPhdJI/AAAAAAAAC1A/Pk5Zwm8MDEI/005_thumb%25255B1%25255D.png?imgmax=800
In Administration tab of the VS Release Management Client go to Manage TFS and click on New button.
http://lh4.ggpht.com/-JCKNz-QfQyQ/U_eAdTvjAKI/AAAAAAAAC1Q/cY-2YXc1W8E/002_thumb%25255B6%25255D.png?imgmax=800
http://lh6.ggpht.com/-WTFC6Nwg4Pc/U_eAg-BTSkI/AAAAAAAAC1g/KCjRR_fzXBQ/003_thumb%25255B1%25255D.png?imgmax=800
Select the TFS Integration account.
http://lh4.ggpht.com/-2UhPaM3UTwc/U_eAjDFkRZI/AAAAAAAAC1w/oI6Sxn47s80/006_thumb%25255B3%25255D.png?imgmax=800
Provide the TFS Project Collection details.
http://lh6.ggpht.com/-oHdhzpFvcow/U_eAlrhEqXI/AAAAAAAAC2A/Wg-x2eQ_67U/007_thumb%25255B6%25255D.png?imgmax=800
Click on verify to check the connection to Project Collection.
http://lh6.ggpht.com/-xbc8AlSnK9k/U_eAnbxZHSI/AAAAAAAAC2M/r3qa7J5TQKI/008_thumb%25255B2%25255D.png?imgmax=800
Access denied. This is because the TFS integration account is not having required permissions in the Project Collection. Release management installation guide specifies the account requirement as below.
http://lh5.ggpht.com/-Kepe3yFST3o/U_eApst_0YI/AAAAAAAAC2g/49op3xqkwGs/image_thumb%25255B1%25255D.png?imgmax=800
To enable the TFS integration account to be used to connect all the project collections with release management server, the TFS integration account should be added to “Team Foundation Service Accounts”.
http://lh3.ggpht.com/-P6A9iY5TLVY/U_eArjkxm_I/AAAAAAAAC2w/wCYgpwiKFCk/009_thumb%25255B2%25255D.png?imgmax=800
This TFS group is not allowing to directly add remove users with TFS Console Admin. The option is to use the g+ command as shown below.
TFSSecurity /g+ groupIdentity memberIdentity [/collection:CollectionURL] [/server:ServerURL]
Example:
tfssecurity /g+ "Team Foundation Service Accounts" n:ALM\rmtfsint ALLOW /server:http://tfs:8080/tfs
Above command should be executed in Developer Command Prompt of VS. To find the Developer Command Prompt for VS 2013 in Windows 8.1, right-click on VS Shortcut and open file location.
http://lh6.ggpht.com/-Zy3nJbBoESs/U_eAt3Mb71I/AAAAAAAAC3A/E7Jgb2F9jSw/011._thumb%25255B2%25255D.png?imgmax=800
Open the VS Tools folder.
http://lh5.ggpht.com/-iz1sXe24VOE/U_eAv67-QaI/AAAAAAAAC3Q/T_9G3bfO_1E/012_thumb%25255B1%25255D.png?imgmax=800
Pin the Developer Command Prompt for VS2013 to Start Menu.
http://lh6.ggpht.com/-L8wwoPoXK0o/U_eAxy_jIWI/AAAAAAAAC3g/uspNMzSIcDs/013_thumb%25255B1%25255D.png?imgmax=800
Using VS Developer Command Prompt execute g+ command
tfssecurity /g+ "Team Foundation Service Accounts" n:ALM\rmtfsint ALLOW /server:http://tfs:8080/tfs
http://lh5.ggpht.com/-ZKNOc6U5GyY/U_eAz5tSZ_I/AAAAAAAAC3w/DEWlTaihCx4/014_thumb%25255B1%25255D.png?imgmax=800
This will add the TFS integration account to "Team Foundation Service Accounts"
http://lh3.ggpht.com/-LDkB20_A_z4/U_eA17gE3gI/AAAAAAAAC4A/ixicE_je06M/015_thumb%25255B1%25255D.png?imgmax=800
http://lh3.ggpht.com/-ovH_1HbXLV0/U_eA39ukVCI/AAAAAAAAC4Q/fZjJegHqE0w/016_thumb%25255B1%25255D.png?imgmax=800
In Release Management Client connection to TFS project collection can be successfully verified and saved.
http://lh4.ggpht.com/-NF0_inMlo9o/U_eA5yCpCoI/AAAAAAAAC4g/6bVZrEiuMTQ/017_thumb%25255B3%25255D.png?imgmax=800
Next step is to define the Release Management Stages.
http://lh4.ggpht.com/-s9CEQbrmYVA/U_eA8v5aaPI/AAAAAAAAC4w/srgHE_Dih_I/018_thumb%25255B1%25255D.png?imgmax=800