Create new TFS Team Project Collection

When your Team Foundation Server (TFS) hosts multiple team projects, you can manage them more efficiently by grouping them together and assigning the same resources to them. A group of team projects is called a Team Project Collection.

When you install TFS, a default collection (DefaultCollection) is created to contain all Team Projects. When you create a collection, you specify the logical and physical resources that team projects within that collection can use. All the artifacts and data that those team projects use are stored in the single database of the collection.

This article describes the basic setup and configuration of a new Team Projekt Collection using a Microsoft Team Foundation Server 2015 Express (German).

Please note that must have administrative privileges to perform some of the following steps.

How do I do that?

Step 1: Create own Windows Group

  1. Run Computer Management Console (compmgmt.msc) as administrator.
  2. Select [Computer Management (local) > System > Local Users and Groups > Groups].
  3. Select action [New Group…] to start adding a new group.
    1. Enter a [Group Name] – i.e. Developers.
    2. Optionally: enter a [Description] – i.e. Group used as TFS users and administrators.
    3. Press [Add…] to add members to group.
    4. Search and select all users which should have access to TFS collections and projects; afterwards press [OK] to continue.
    5. Press [Create] to create the group and [Close] finish the process.

Step 2: Create new TFS Team Project Collection

  1. Run TFS Management Console (TfsMgmt.exe).
  2. Select [{tfs-server-name} > Application Tier > Team Project Collections].
  3. Press [Create Collection] to start creation process.

    1. Enter [Name] and [Description] for the collection to be created; press [Next] to continue.
    2. Take over prefilled settings for [SQL Server Instance] and [Database]; press [Next] to continue.
    3. Confirm settings by pressing [Verify].
    4. Press [Create] to create the collection and [Next] to continue.
    5. Press [Close] to finish the process.

Step 3: Assign Authorizations to new TFS Team Project Collection

  1. In TFS Management Console select [{tfs-server-name} > Application Tier > Team Project Collections > MyFirstCollection].
  2. Select [Common] and press [Group Membership].
  3. Optionally: Make the members of the Windows group Developers to administrators of this collection:
    1. Select entry [**Project Collection Administrators] in Groups list and press [Properties…] to start assignment.
    2. Select option [Windows User or Group] and press [Add…].
    3. Search and select the group Developers; afterwards press [OK] to add the group.
    4. Press [OK] to finish.
  4. Make the members of the Windows group Developers to users of this collection:
    1. If, as described above, the members of the Windows group Developers have already been administrators of this collection, no further steps are necessary, because collection administrators are automatically also users of the collection.
    2. If the members of the Windows group Developers are not administrators of this collection, but only users of the collection, follow the steps for the [**ProjectCollection Valid Users] entry in Groups list.
  5. If desired, proceed as well for  Build Administrators ([**Project Collection Build Administrators]) and Build-Service Accounts ([**Project Collection Build Service Accounts]).
  6. Press [Close] to finish the process.

What has just happened?

A new  Team Project Collection MyFirstCollection was created and can be access using http://{Computername}:8080/tfs/MyFirstCollection/ . The necessary database was created in MS SQL Server Express and runs under the local SQL Server Instance named {Computername}\SqlExpress.

What has just happened?

Set up the connection to the new Team Project Collection in Visual Studio and create new Team Projects for it with Visual Studio.

Further Information

Posted in Development, Infrastructure, Configuration, Teamwork, Testing & QA
Tags: , , , , , , , , ,