Team Foundation Server (TFS) Administration

Set up TFS on a server

ou can use a basic installation of TFS to share your code and improve collaboration with customers and team members. If you don’t already have TFS, you can set it up on your own server by following the steps in this topic: Install TFS, Install the build service, and Install Team Explorer. If you don’t want to manage your own server, you can use Team Foundation Service instead. If you’d rather install TFS in a different configuration, you can learn how in Team Foundation Server install guide.

Install TFS

  1. Download TFS. You can install TFS on a client or on a server operating system. For clients, use Windows 7 or Windows 8, 32-bit or 64-bit. For servers, you have to use 64-bit. Go here for the complete list of system requirements for TFS.

    If you install on a server operating system, you can add a SharePoint portal and SQL Server reporting later, even if you skip those features during initial installation.

  2. Use the Basic configuration wizard for a quick and simple installation.

    Use TFS basic

  3. After finishing, close the basic configuration wizard.

    TFS success!Once you’ve installed TFS, you might need to add antivirus exceptions. Read this KB article for more information.

  1. After finishing the basic configuration wizard, you can install the build service on the same server. The build service automates builds of your software projects. Launch the build service configuration wizard.

    Select TFS build install wizard

  2. Close the wizard after it finishes. Now your build server is ready to go.

    Build install wizard success

Although Team Explorer isn’t necessary for most administration tasks, it does have some administrative features, and it is the only way to create the team projects your software development teams will need. Installing it on the server is a convenient way to ensure that you can create projects whenever necessary without having to go to another computer.

  1. Browse the directory where you downloaded the setup files for Team Foundation Server, and open the Team Explorer folder.
  2. Find the vs_TeamExplorer application and run it.

You are ready to connect to TFS and start creating your first team projects!

Create a team project

Visual Studio 2013

You create a team project in Team Foundation Server (TFS) to establish a repository for source code and a place for teams to plan, track progress, and collaborate.

If you have a team project already, and want to start coding an application project, then see one of the following topics: Develop your app in Team Foundation version control, Get started using Git, or Creating Solutions and Projects.

If you don’t want to manage an on-premises server, you can create a team project using Visual Studio Online. This topic applies only to creating a team project when you have deployed TFS on-premises.

  1. If you’re not a member of the Project Collection Administrators Group, get added as one. To create team projects you must have the Create new projects permission set to Allow.
  2. Ask your TFS administrator about the following resources and get additional permissions as needed:
    • Which team project collection you should connect to when you create your team project? If you installed TFS using the Basic Configuration Wizard, you have only one project collection named DefaultCollection. Unless you work in an enterprise organization and will be supporting hundreds of team projects, you should add all your team projects to a single project collection. If you need to create additional collections, go here.
    • Has SQL Server Analysis Services and SQL Server Reporting Services been configured for the deployment? If so, ask your administrator to add you as a member of the Team Foundation Content Managers group on the server that hosts SQL Server Reporting Services. Without these permissions, you’ll be unable to create a team project.
    • Has a SharePoint Web application been configured for your deployment? If you want to configure a SharePoint portal when you create your team project, ask the SharePoint administrator to give you Full Control permissions on the server that hosts SharePoint Products. Otherwise, you can skip this step and configure a portal at a later time.
  3. From Team Explorer 2013, connect to the server and team project collection where you want to create your team project.

    Select team project link on the Connect page in Team ExplorerTeam Explorer is installed with Visual Studio. Or, you can install Team Explorer for free.

    You must connect from a client that is at the same version level as TFS. That is, you must connect to TFS 2013 from Team Explorer 2013.

    Connect to Team Foundation Server dialog box

    Tip Tip
    If you are running Team Explorer from a server that hosts SharePoint Products and SQL Server Reporting Services, you might need to run Visual Studio as an administrator.
  4. If it’s your first time connecting to TFS, you’ll need to add TFS to the list of recognized servers.

    Servers button on the Connect to Team Foundation Server dialog box. Add button on the Add/Remove TFS. Name of server in the Add TFS dialog box. OK button.

  5. Open the New Team Project Wizard.

    New link on Connect page (Team Explorer)

  6. Name the team project. Don’t specify more than 64 characters.

    Specify the Team Project Settings page in the New Team Project dialog boxAnd, note that after you’ve created a team project, you can’t change its name.

  7. Choose a process template. For a comparison of the default process templates, see Work with team project artifacts.

    Select a Process Template page in the New Team Project dialog box

  8. Choose your source control system.

    Specify Source Control Settings page in the New Team Project dialog boxNot sure which system to use? Learn more here.

  9. Unless your team project collection is configured to support a SharePoint project portal, you’re done.

    Confirm Team Project Settings page in the New Team Project dialog boxIf the Next button is active, you can configure your project portal.

    If the wizard encounters a problem, you’ll receive an error message and a link to the project creation log. Review the log for specific errors and exceptions. See Q & A later in this topic for additional information.

  10. When you’re finished, you can see your team project in Team Explorer. You can also choose the Web Access link to connect to your team project using the Team Web Access.

Add team members to a team

Visual Studio 2013

Members of a team project can contribute to source control, work item tracking, and other team activities. If you don’t yet have a team project, create one. To add teams to a team project, go here.

Add users or groups

  1. If you’re not yet an administrator, get added as a team administrator. Only administrators can add members to a team or team project.
  2. On the TFS home page, choose your team or team project. If you don’t see your team project listed, use Browse all to select it.

    Select team project from TFS home page

  3. Manage members from the team home page.

    Manage members for a team or team project

  4. Add an individual Windows user account or a group.

    Choose to add Windows accounts or a TFS group

    Account entry box on Add a user or group dialog

    The first time an account is added to TFS, you must enter the full domain name and the alias. Then you can then browse for that name by display name as well as account name. To learn more, see Set up groups for use in TFS deployments.

    Tip Tip
    You must enter user and group names one at a time. However, after entering a name, the account is added to the list, and you can type another name in the Identities text box before choosing to save your changes.
  5. To verify that you’ve added all accounts, return to the home page and view the list of team members.

    Verify team member list

  6. Send the URL for your team project (for example, http://fabrikamprime:8080/tfs/DefaultCollection/Fabrikam%20Fiber%20Website) to the new team members so that they can start contributing to the team project.

By default, team members inherit the permissions afforded to members of the team project Contributors group. Members of this group can add and modify source code, create and delete test runs, and create and modify work items. They can collaborate with other team members and check in work to the team’s code base or collaborate on a Git team project.

Team member default permissions

Create a backup plan

  1. If you’re not an administrator for TFS, a member of the SQL Server System Administrators group, and (if your deployment uses SharePoint Products) a member of the Farm Administrators group, get those permissions now.

    In addition, the service account for TFS (TFSService) must have SQL Server Perform Back Up and Create Maintenance Plan permissions set to Allow on each instance of SQL Server that hosts the databases that you want to back up, and Full Control on the network share, folder, or storage device where the backups will be kept.

  2. Open the administration console for TFS and on the Scheduled Backups page, launch the wizard for creating a backup schedule.

    The Schedule Backups node in the console

  3. Backups must be stored on a network-accessible location, and both the account that configures the scheduled backup and the service account for TFS must have Full Control for that location. You can also choose how long a backup set will be kept and the file extensions used for backup types.

    Specify the network path for the backups

  4. If your server is configured with SMTP support, you can select email alerts for specific events. If not, all selections will be dimmed.

    Alerts are only available if SMTP is configured

  5. Choose between two default schedules, or create your own custom schedule.

    Choose a preconfigured or custom schedule

  6. Complete the wizard. If your deployment uses reporting, you will be prompted for a password in order to back up the encryption key for reporting.

  7. Once you’ve configured the scheduled backups, you can allow them to run as scheduled. You can also choose to take an immediate backup, which will back up your data right away while leaving your plan in place. This is particularly recommended if your scheduled backups will not occur for a significant amount of time, or if you do not already have a recent backup available.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s