Successfully Administering and Running TFS 20082010 Neno Loje

  • Slides: 117
Download presentation

Successfully Administering and Running TFS 2008/2010 Neno Loje Consultant & Team System MVP AIT

Successfully Administering and Running TFS 2008/2010 Neno Loje Consultant & Team System MVP AIT Team. System. Pro Team Session Code: DEV 311

What this talk is about What is covered? Everything you need to set up

What this talk is about What is covered? Everything you need to set up and manage a Team Foundation Server environment What is not covered? How to use/work with TFS (e. g. version control) interactive session today at 5: 00 p. m. Prerequisites You should know what those are: Team Projects, Work Items, Areas, and Iterations.

Who is the TFS Administrator? IT department ("IT Admin") Hardware, Backup/Restore, Windows Updates Development

Who is the TFS Administrator? IT department ("IT Admin") Hardware, Backup/Restore, Windows Updates Development Team ("TFS Admin") Person of charge Creation of Team Projects Granting Permissions Consulting other team members while using TFS

Abbreviations used in this talk TFS TSWA TFPT SQL SSRS SSAS WSS = Team

Abbreviations used in this talk TFS TSWA TFPT SQL SSRS SSAS WSS = Team Foundation Server = Team System Web Access = Team Foundation Power Tools = SQL Server Reporting Services = SQL Server Analysis Services = Windows Share. Point Services (3. 0 +)

Agenda 1 st part: Team Foundation Server 2008 2 nd part: Team Foundation Server

Agenda 1 st part: Team Foundation Server 2008 2 nd part: Team Foundation Server 2010

Agenda 1 st part: Team Foundation Server 2008 Preparation Installation Post-Install Configuration All Day

Agenda 1 st part: Team Foundation Server 2008 Preparation Installation Post-Install Configuration All Day Operations 2 nd part: Team Foundation Server 2010

TFS 2008

TFS 2008

Things to do now; things to do later Things to do now Hardware/Software Authentication

Things to do now; things to do later Things to do now Hardware/Software Authentication Team Project Strategy Set up a Build process Things that can be done/changed later Hardware/Software Source Control Structure Iteration and Area Planning Methodology (partly)

Hardware Recommendations It really depends! Every brand-new server hardware will do Always a good

Hardware Recommendations It really depends! Every brand-new server hardware will do Always a good idea Increasing the amount of RAM Hard drive performance is crucial (fast hard drives are good, RAID arrays better) Splitting TFS and SQL on two machines (dual-core configuration) is best for scalability Network bandwidth >= 1 mbps / < 350 ms latency Virtualization technologies (Hyper-V, VMware, …)

Hardware Recommendations # Developers Configuration CPUs RAM HDD space Less than 20 Single Server

Hardware Recommendations # Developers Configuration CPUs RAM HDD space Less than 20 Single Server 2 x 2. 2 GHz 2. 5 GB (3 GB) 80 GB 20 – 100 Single Server 4 x 2. 2 GHz 3 GB (4 GB) 250 GB More than 100 Dual Server 2 x 2. 6 GHz / 4 x 2. 2 GHz 4 GB / 8 GB (16 GB) 500 GB This does not include the hardware for a build machine or lab! Official Hardware Requirements published by Microsoft: http: //msdn. microsoft. com/en-us/library/ms 400670. aspx http: //msdn. microsoft. com/en-us/library/ms 400749. aspx Source: http: //msmvps. com/blogs/vstsblog/archive/2009/01/06/hardwarerecommendations-for-team-foundation-server-2008. aspx

TFS Licensing Basics 1 x License for Team Foundation Server 1 x Client Access

TFS Licensing Basics 1 x License for Team Foundation Server 1 x Client Access License (CAL) per user or PC

TFS Licensing Basics 1 x License for Team Foundation Server 1 x Client Access

TFS Licensing Basics 1 x License for Team Foundation Server 1 x Client Access License (CAL) per user or PC Exception: Owners of a Visual Studio Team Edition or Team Suite already own a CAL.

TFS Licensing Basics 1 x License for Team Foundation Server 1 x Client Access

TFS Licensing Basics 1 x License for Team Foundation Server 1 x Client Access License (CAL) per user or PC Exception: Owners of a Visual Studio Team Edition or Team Suite already own a CAL. Exception: To create and view work items (only the ones you create) you don't need a CAL.

TFS Licensing Basics 1 x License for Team Foundation Server Unlimited build servers included

TFS Licensing Basics 1 x License for Team Foundation Server Unlimited build servers included Any TFS Proxy needs additional TFS license 1 x Client Access License (CAL) per user or PC Exception: Owners of a Visual Studio Team Edition or Team Suite already own a CAL. Exception: To create and view work items (only the ones you create) you don't need a CAL.

TFS Licensing Basics 1 x License for Team Foundation Server Unlimited build servers included

TFS Licensing Basics 1 x License for Team Foundation Server Unlimited build servers included Any TFS Proxy needs additional TFS license 1 x Client Access License (CAL) per user or PC Exception: Owners of a Visual Studio Team Edition or Team Suite already own a CAL. Exception: To create and view work items (only the ones you create) you don't need a CAL. TFS 2010: a TFS and CAL in every MSDN!

Authentication Where to store… … users? Active Directory or local users on TFS computer

Authentication Where to store… … users? Active Directory or local users on TFS computer … group membership? Active Directory or local groups on TFS computer … the permissions those groups will get? in Team Foundation Server Active Directory is recommended!

Team Project Strategy No "perfect" answer Team Projects are ‘big’ containers Microsoft Office (incl.

Team Project Strategy No "perfect" answer Team Projects are ‘big’ containers Microsoft Office (incl. Word, Excel, Outlook, Share. Point Server, etc. ) is one team project Millions of files in source control Thousands of Work Items A few thousand active users Each major version of Office gets an entirely new team project

Team Project Strategy Create new team projects sparingly… Areas and iterations are the preferred

Team Project Strategy Create new team projects sparingly… Areas and iterations are the preferred way to structure your projects. When to create a new team project? Different Methodology (look and rules behind Work Items are different) You want to hand over a project after it’s done (including Source Code etc. ) use own TPC! You want to hide areas from certain people (they should not be able to see the project name)

Team Project Strategy If you use multiple Team Projects (TPs)… Excel & Project can

Team Project Strategy If you use multiple Team Projects (TPs)… Excel & Project can only show data from one TP (you can use different Excel sheets to achieve this) Work Items can’t be reassigned to a different TP (they can be copied though) Built-in reports show data from one project (they can filter for areas and iterations)

Set up a build process early! Several Reports and metrics require a build process

Set up a build process early! Several Reports and metrics require a build process (with or without tests) as input the sooner you set up a build, the better!

Virtualization and TFS Should I run TFS in a virtual environment? Yes! (recommended) Why?

Virtualization and TFS Should I run TFS in a virtual environment? Yes! (recommended) Why? Snapshot support* Faster Disaster recovery Good to know SQL Server is supported in virtual configurations http: //support. microsoft. com/kb/956893/en-us (* be aware: no support for VM snapshots)

Virtualization Options Option 1 (1 VM) VM #1: TFS, SQL, SSAS, SSRS, WSS Option

Virtualization Options Option 1 (1 VM) VM #1: TFS, SQL, SSAS, SSRS, WSS Option 2 (2 VMs) VM #1: SQL, SSAS VM #2: TFS, SSRS, WSS Option 3 (Host + 1 VM) Same as Option 2, but #1 installed on the host This is the configuration we use for hosting (combines advantages of virtualization + performance)

TFS 2008 Scalability Options TFS (Single-Server) too slow? Dual-Server TFS (Dual-Server) too slow? Scale-up!

TFS 2008 Scalability Options TFS (Single-Server) too slow? Dual-Server TFS (Dual-Server) too slow? Scale-up! SQL Logs are huge? Turn them off. Perf issues with OLAP queries? Move SSAS http: //msdn. microsoft. com/en-us/library/aa 721760. aspx Perf issues with SQL Reports? Move SSRS Perf issues with Project portals? Move MOSS Perf issues with remote location? TFS Proxy Perf issues with Build server? TFS Proxy, Hotfix, Optimize (e. g. incremental GET) Perf issues with Web Access Move TSWA Source: http: //msmvps. com/blogs/vstsblog/archive/2008/07/09/yourtfs-user-base-is-growing-scale-up-or-out. aspx

Build Server performance Optimize Build Process e. g. Incremental GET instead of full GET

Build Server performance Optimize Build Process e. g. Incremental GET instead of full GET Change logging verbosity http: //blogs. msdn. com/aaronhallberg/archive/2007/05/03/tfsbuild-rsp-and-logging-verbosity-in-orcas. aspx Install TFS 2008 SP 1 (on TFS & Build Server) Aaron Hallberg from Microsoft says: […] change in TFS Build SP 1 which reduced build log noise by cutting out the build steps for projectto-project references […] the fix in SP 1 didn't actually fix the problem, at least not completely. Source: http: //msmvps. com/blogs/vstsblog/archive/2009/01/31/hotfix-for-team-build 2008 -sp 1 -reducing-project-to-project-references-in-build-log-kb 958845. aspx

Build Server performance (II) A hot fix is finally available that will address the

Build Server performance (II) A hot fix is finally available that will address the remaining parts of the problem http: //code. msdn. microsoft. com/KB 958845 http: //support. microsoft. com/kb/958845 VSTS MVP colleague Mathias Olausson reports: “before SP 1 the build time was about 2 h 30 min, with SP 1 build time in average 65 minutes and with the build hotfix we’re now down to less than 40 minutes. The build log has changed from 5500 lines down to 550. ”

Localized Versions of TFS I recommend using the English version of TFS Reasons Vocabulary

Localized Versions of TFS I recommend using the English version of TFS Reasons Vocabulary used in books and the web is English Some translations make me sad (some original English messages as well) TFS Power Tools are available in English only Incompatibility with some templates/tools/fixes You can move from English localized (one-way) You can still have localized VS & Team Explorer! (beware of Service Packs…)

Installation Follow the latest TFS Installation Guide http: //www. microsoft. com/downloads/details. aspx? Family. ID=ff

Installation Follow the latest TFS Installation Guide http: //www. microsoft. com/downloads/details. aspx? Family. ID=ff 12844 f-398 c-4 fe 9 -8 b 0 d-9 e 84181 d 9923 Make sure the server name has no underscore http: //msmvps. com/blogs/vstsblog/archive/2009/01/11/beaware-don-t-use-underscores-in-server-names. aspx To save one step you can integrate the TFS SP 1 into the TFS Setup (“slipstream”). http: //msmvps. com/blogs/vstsblog/archive/2008/08/11/visualstudio-2008 -net-2 -5 -and-tfs-2008 -service-pack-1 -released. aspx Required for SQL Server 2008

Slipstream Step 1 - Preparation Copy the contents of the "AT" folder from your

Slipstream Step 1 - Preparation Copy the contents of the "AT" folder from your TFS installation media to your hard drive. In my case: I: ISOsAT-RTM Download the TFS Service Pack 1 http: //www. microsoft. com/downloads/details. aspx? Family. ID=9 e 40 a 5 b 6 -da 41 -43 a 2 -a 06 d-3 cee 196 bfe 3 d File name: en_visual_studio_team_system_2008_team_foundation_se rver_service_pack_1_x 86_x 64 wow. exe

Slipstream Step 2 – Extract the Service Pack package Command: Servicepack. exe /extract: Target.

Slipstream Step 2 – Extract the Service Pack package Command: Servicepack. exe /extract: Target. Folder

Slipstream Step 3 – Create admin installation package Command: Msiexec /a vs_setup. msi /p

Slipstream Step 3 – Create admin installation package Command: Msiexec /a vs_setup. msi /p TFS 90 sp 1 -KB 949786. msp TARGETDIR=Target. Folder

Slipstream Step 3 – Create admin installation package A ready to use setup (TFS

Slipstream Step 3 – Create admin installation package A ready to use setup (TFS 2008 including SP 1) will now created in TARGETDIR.

Slipstream Step 4 – Ready to be installed A ready to use setup was

Slipstream Step 4 – Ready to be installed A ready to use setup was created in TARGETDIR:

Where to install which SP? Machine TFS single server / TFS Application Tier TFS

Where to install which SP? Machine TFS single server / TFS Application Tier TFS SP 1 VS SP 1 Yes, if Visual Studio is installed. Install this prior to TFS SP 1. TFS Data Tier No Team System Web Access No (on separate machine) No Yes TFS Build Server Yes, if Visual Studio is installed. Install this prior to TFS SP 1. TFS Proxy Visual Studio User Office User Yes No No No Yes Source: http: //msmvps. com/blogs/vstsblog/archive/2008/10/09/vs-amp-tfs-sp 1 what-to-apply-on-which-machine. aspx

Installation Verification How can I verify TFS is setup up correctly? 1. Invoke a

Installation Verification How can I verify TFS is setup up correctly? 1. Invoke a TFS web service: https: //localhost/services/v 1. 0/Registration. asmx and look for "vstfs" in the xml result. 2. Try to create a new Team Project 3. Run TFS Best Practices Analyzer (BPA) from TFPT 4. Process the Cube

Congratulations! TFS is now installed successfully. Is it ready to be used? Sadly: No!

Congratulations! TFS is now installed successfully. Is it ready to be used? Sadly: No! Let's begin with: Post-Installation Configuration

Windows Server 2008 and higher You are likely to hit this issue Assumption You

Windows Server 2008 and higher You are likely to hit this issue Assumption You have all admin rights of the world But… Can't create a new team project (you are missing permissions the message says!) Documents and Reports in TE show a red X You can access http: //<server>/Reports just fine Solution http: //support. microsoft. com/kb/896861/en-us

Enable Work Item Meta Data Filtering This is a new feature in TFS 2008

Enable Work Item Meta Data Filtering This is a new feature in TFS 2008 SP 1 Disabled by default (for compatibility reasons) Benefits Security: you can hide team project names Performance: only the meta-data for the team projects where a user permissions to will be transferred to the clients (not all metadata). Source: http: //msmvps. com/blogs/vstsblog/archive/2008/10/06/tfstip-enabling-work-item-meta-data-filtering. aspx

Enable Work Item Meta Data Filtering How to configure it Add to web. config

Enable Work Item Meta Data Filtering How to configure it Add to web. config (in folder: %Program. Files%Microsoft Visual Studio 2008 Team Foundation ServerWeb ServicesWork. Item. Trackingweb. config) <add key ="filter. Client. Metadata" value="true"/> <add key ="excluded. User. Agents" value="Web. Access: w 3 wp: witfields: witimport: witexport: witadmin"/> Source: http: //msmvps. com/blogs/vstsblog/archive/2008/10/06/tfstip-enabling-work-item-meta-data-filtering. aspx

Turn off label deletion when deleting builds By default: When you delete a build

Turn off label deletion when deleting builds By default: When you delete a build The corresponding build label gets delete as well You can configure that behavior. Add to web. config (in folder: %Program. Files%Microsoft Visual Studio 2008 Team Foundation ServerWeb Servicesweb. config) <add key="Preserve. Labels. On. Build. Deletion" value="true" /> Source: http: //blogs. msdn. com/buckh/archive/2008/10/20/tfs-2008 -sp 1 new-setting-to-delete-a-build-without-deleting-the-build-label. aspx

IIS Recycling Times By default, IIS application pools get "recycled" at an interval of

IIS Recycling Times By default, IIS application pools get "recycled" at an interval of all 1740 minutes Better: Specify a fixed time (for each app pool) Share. Point does that by default

TFSServer. Scheduler Dependency Configure TFS Server Scheduler to depend on SQL Server A problem

TFSServer. Scheduler Dependency Configure TFS Server Scheduler to depend on SQL Server A problem mostly on slow machines Command sc. exe config TFSServer. Scheduler depend= MSSQL Source: http: //blogs. msdn. com/dstfs/archive/2008/07/09/fun-with-thetfsserverscheduler-service. aspx

Configuring TFS for SSL/HTTPs You can access TFS remotely via 1) a VPN connection

Configuring TFS for SSL/HTTPs You can access TFS remotely via 1) a VPN connection (no configuration necessary) 2) via SSL/HTTPs(extra configuration required) Read more about the configuration: http: //msdn. microsoft. com/en-us/library/aa 833873. aspx Recommendation Use default port 443 for TFS! (many firewalls block non-standard HTTPs ports!)

Extend %PATH% variable Paths to add: x: Program FilesMicrosoft Visual Studio 2008 Team Foundation

Extend %PATH% variable Paths to add: x: Program FilesMicrosoft Visual Studio 2008 Team Foundation ServerTF Setup x: Program FilesMicrosoft Visual Studio 2008 Team Foundation ServerTools x: Program FilesMicrosoft Visual Studio 9. 0Common 7IDE Background: The 1 st path contains Bis. Subscribe. exe The 2 nd path contains tfsadminutil. exe The 3 rd path contains TF. exe Note: TFPT. exe add itself to %PATH% Source: http: //msmvps. com/blogs/vstsblog/archive/2009/01/09/adding-tfstools-to-your-path-environment-variable. aspx

Configure mail server settings Windows Share. Point Services (WSS) via » Central Administration Web

Configure mail server settings Windows Share. Point Services (WSS) via » Central Administration Web Site Operations » Outgoing e-mail settings http: //technet. microsoft. com/en-us/library/cc 288949. aspx SQL Server Reporting Services (SSRS) via » Reporting Services Configuration Tool http: //technet. microsoft. com/en-us/library/ms 345234. aspx Team Foundation Server via web. config file (if not set at installation time) http: //msdn. microsoft. com/en-us/library/ms 400808. aspx Team System Web Access http: //msmvps. com/blogs/vstsblog/archive/2007/08/27/enabling-email -functionality-in-team-system-web-access-tswa. aspx

Configure Web Access Links Work Item-Links in e-mails open up this site:

Configure Web Access Links Work Item-Links in e-mails open up this site:

Configure Web Access Links Step 1 – Register TSWA with TFS Beginning with TFS

Configure Web Access Links Step 1 – Register TSWA with TFS Beginning with TFS 2008 SP 1 you can register your Web Access server with your TFS. Benefits: TFS links to Web Access in e-mails (instead of it's own, read-only web pages) Source: http: //msmvps. com/blogs/vstsblog/archive/2009/01/11/changingtfs-emails-to-link-to-team-system-web-access-part-2. aspx

Configure Web Access Links Step 1 – Register TSWA with TFS Command tfsadminutil /TSWAUri:

Configure Web Access Links Step 1 – Register TSWA with TFS Command tfsadminutil /TSWAUri: http: //<server>: 8090/

Configure Web Access Links Step 1 – Register TSWA with TFS

Configure Web Access Links Step 1 – Register TSWA with TFS

Configure Web Access Links But now we have a new problem…

Configure Web Access Links But now we have a new problem…

Configure Web Access Links Step 2 – Install Hot fix (KB 957196) Get it

Configure Web Access Links Step 2 – Install Hot fix (KB 957196) Get it from here: http: //code. msdn. microsoft. com/KB 957196

Configure Web Access Links Check-In notifications now point to Web Access!

Configure Web Access Links Check-In notifications now point to Web Access!

Configure Web Access Links Step 3 – Modify XSLT file But still: Work Item

Configure Web Access Links Step 3 – Modify XSLT file But still: Work Item notification mails point to the wrong portal Open file Work. Item. Changed. Event. xsl (from folder: %Program. Files%Microsoft Visual Studio 2008 Team Foundation ServerWeb Servicesv 1. 0Transforms) Look for the following text <xsl: value-of select="Display. Url" /> and replace it… Source: http: //msmvps. com/blogs/vstsblog/archive/2007/08/31/changing-tfs-emailnotifications-to-link-to-team-system-web-access. aspx

Configure Web Access Links Step 3 – Modify XSLT file With this expression: <xsl:

Configure Web Access Links Step 3 – Modify XSLT file With this expression: <xsl: value-of select="concat(substringbefore(Display. Url, ': 8080/Work. Item. Tracking/Work. Item. aspx ? artifact. Moniker='), ': 8090/wi. aspx? id=', substringafter(Display. Url, 'artifact. Moniker='))" />

Configure Web Access Links and finally

Configure Web Access Links and finally

SQL Backup and Maintenance Prerequisites SQL Server Integration Services (SSIS) Create a Maintenance Plan

SQL Backup and Maintenance Prerequisites SQL Server Integration Services (SSIS) Create a Maintenance Plan for Backup Nightly full-backup of all SQL databases Create a Maintenance Plan for Optimization Rebuild indexes (e. g. once a week)

SQL Server transaction log files Transaction Log files just won't stop growing You can

SQL Server transaction log files Transaction Log files just won't stop growing You can turn them off (switch to simple recovery mode in SQL slang) You don't really need them for TFS More info: http: //support. microsoft. com/kb/873235 Source: http: //msmvps. com/blogs/vstsblog/archive/2009/08/09/stop-sql-servertransaction-log-ldf-files-from-growing-indefinitely. aspx

Turn off OLAP flight recorder (in SSAS) SQL Management Studio » Connect to Analysis

Turn off OLAP flight recorder (in SSAS) SQL Management Studio » Connect to Analysis Services » Properties Set "Log Flight Recorder Enabled" to false Source: http: //technet. microsoft. com/en-us/library/cc 304417. aspx

Move and Set Size of Cache Folders You can move cache folders out to

Move and Set Size of Cache Folders You can move cache folders out to separate hard drives (if available) for performance Version Control cache Change web. config (in folder: X: Program FilesMicrosoft Visual Studio 2008 Team Foundation ServerWeb ServicesVersion. Control) Web Access cache Change web. config file (in folder: X: Program FilesMicrosoft Visual Studio 2008 Team System Web Access) Also you can specify the size for both caches! Source: http: //msdn. microsoft. com/en-us/library/ms 400793. aspx

Anti-Virus Software and TFS Exclude folders from virus scan software: 1. TFS Version Control

Anti-Virus Software and TFS Exclude folders from virus scan software: 1. TFS Version Control Cache folder 2. Team System Web Access Cache folder 3. SQL Database folders Check if AV software is also blocking ports More virus scanning recommendations for: Windows Server SQL Server WSS/Share. Point Server

Hunting DCOM errors in event log

Hunting DCOM errors in event log

Hunting DCOM errors in event log Run Component Services Computers » My Computer »

Hunting DCOM errors in event log Run Component Services Computers » My Computer » DCOM Config » IIS WAMREG admin Service » Properties Click "Edit" (in Launch and Activation Permissions) Grant permissions to NETWORK SERVICE: Local Launch Location Activation

Area Sorting Problem You might experience that if you sort Work Items by Area,

Area Sorting Problem You might experience that if you sort Work Items by Area, sorting is not correct SQL script to check for the problem SELECT COUNT(*) FROM [dbo]. [Tree. Nodes] c JOIN [dbo]. [Tree. Nodes] p ON c. [Parent. ID] = p. [ID] JOIN [dbo]. [Fields] f ON p. [Type. ID] = f. [Parent. Fld. ID] AND c. [Type. ID] <> f. [Fld. ID] WHERE c. [ID] <> 0 Result: 0 = No problem != 0 run fix script

Area Sorting Fix begin tran This script will correct sorting You can also schedule

Area Sorting Fix begin tran This script will correct sorting You can also schedule it (e. g. once a day) SET QUOTED_IDENTIFIER ON set xact_abort on set nocount on exec dbo. Box. Car. Admin. Data. Changes null, null WHILE(1=1) BEGIN UPDATE c SET c. [Type. ID] = f. [Fld. ID] FROM [dbo]. [Tree. Nodes] c JOIN [dbo]. [Tree. Nodes] p ON c. [Parent. ID] = p. [ID] JOIN [dbo]. [Fields] f ON p. [Type. ID] = f. [Parent. Fld. ID] AND c. [Type. ID] <> f. [Fld. ID] WHERE c. [ID] <> 0 IF(@@ROWCOUNT = 0) BREAK

Setting Admin Permissions Set a up group for TFS Administrators You just have to

Setting Admin Permissions Set a up group for TFS Administrators You just have to do that once (for each TFS)… 1. 2. 3. 4. Create a security group in Active Directory TFS: Add it to Team Foundation Administrators SSRS: Add to Content Manager role on root folder WSS: Add to Farm Administrators Group

Setting Team Project Permissions Set a up groups for a new Team Project You

Setting Team Project Permissions Set a up groups for a new Team Project You have to do that once for each team project: 1. Create security groups in Active Directory Team Leads Developers 2. TFS: Create two new groups on the TFS and your Active Directory groups as members Set permissions for the two new groups 3. SSRS: Add to Browser role on team project folder 4. WSS: Add Design / Contribute permissions

demo Setting Team Project Permissions

demo Setting Team Project Permissions

Now backup your machine! You invested a lot of time to configure it In

Now backup your machine! You invested a lot of time to configure it In case of an recovery You have a readily configured partition with TFS You just need a recent DB backup And can be up and running in less than an hour!

Most Recent Version Latest version of TFS/Visual Studio + latest Service Packs (*) +

Most Recent Version Latest version of TFS/Visual Studio + latest Service Packs (*) + latest version of TFS Power Tools

Client Installation order is very important 1. 2. 3. 4. 5. Install Excel/Project 2003/2007

Client Installation order is very important 1. 2. 3. 4. 5. Install Excel/Project 2003/2007 Install Visual Studio 2008 Install Team Explorer 2008 Install Visual Studio 2008 SP 1 Install VSTS 2008 Database Edition GDR R 2* only if you own VSTS 2008 Dev, DB or Suite 6. Install Team Foundation Power Tools 10/2008 Note: install VS 2005 first, then VS 2008 for parallel use.

Checking for non-patched clients How to check discover users without SP 1 installed TFS

Checking for non-patched clients How to check discover users without SP 1 installed TFS Server Manager from the Power Tools Tfs. Server. Manager. exe in the Power Tools folder Source: http: //msmvps. com/blogs/vstsblog/archive/2009/02/09/discoverusers-without-visual-studio-sp 1 -installed. aspx

demo Using TFS Server Manager

demo Using TFS Server Manager

Checking for clients without TFPT How to make sure users have TFPT installed Turn

Checking for clients without TFPT How to make sure users have TFPT installed Turn on Changeset Comments Policy Part of Power Tools If Power Tools are not installed:

Index of TFS Command Line Tools TFSAdmin. Util TFSSecurity TFSDelete. Project TFSReg TFSField. Mapping

Index of TFS Command Line Tools TFSAdmin. Util TFSSecurity TFSDelete. Project TFSReg TFSField. Mapping witimport/witexport witfields glimport/glexport Setup. Warehouse Source: http: //msdn. microsoft. com/en-us/library/ms 253088. aspx

TFS Version Detection Source: http: //blogs. msdn. com/bharry/archive/2008/01/15/checkingyour-tfs-version-and-extending-trials. aspx

TFS Version Detection Source: http: //blogs. msdn. com/bharry/archive/2008/01/15/checkingyour-tfs-version-and-extending-trials. aspx

Unlock files checked out by others Three options Use TF. exe (command-line) Command: TF.

Unlock files checked out by others Three options Use TF. exe (command-line) Command: TF. exe lock itemspec /lock: None Use Visual Studio Right-click a folder in source control Find in Source Control Choose "Status…" Right-click » "Undo" Use TFS Sidekicks (freeware) http: //www. attrice. info/cm/tfs/ Source: http: //msmvps. com/blogs/vstsblog/archive/2009/08/04/see-andpossibly-unlock-files-are-checked-out-by-others. aspx

demo Unlock files check-out by others

demo Unlock files check-out by others

TFS Performance Reporting Pack Includes 6 reports Execution Time Summary & per User Source

TFS Performance Reporting Pack Includes 6 reports Execution Time Summary & per User Source Control Request Queue Top Users Bypassing Proxies Historical Performance Trends Recent Performance Trends Source: http: //msmvps. com/blogs/vstsblog/archive/2009/02/09/reports-for -measuring-tfs-performance. aspx

demo TFS Performance Reporting Pack

demo TFS Performance Reporting Pack

Some more things you can do… Disable auto-connecting to TFS on VS start http:

Some more things you can do… Disable auto-connecting to TFS on VS start http: //msmvps. com/blogs/vstsblog/archive/2009/06/29/disable -auto-connect-to-tfs-on-vs-startup. aspx Disable Team Members Node http: //msmvps. com/blogs/vstsblog/archive/2009/01/09/q-how -do-i-disable-the-team-members-feature-of-tfpt. aspx

Even more things that can go wrong How to fix TF 53010: Create OLAP

Even more things that can go wrong How to fix TF 53010: Create OLAP failed http: //msmvps. com/blogs/vstsblog/archive/2009/01/08/howto-fix-tf 53010 -create-olap-failed. aspx Workaround for TF 30207 when creating a new team project and red X on Reports in TE http: //msmvps. com/blogs/vstsblog/archive/2009/01/08/workar ound-for-tf 30207 -when-creating-a-new-team-project-and-red-x -on-reports-in-team-explorer. aspx Unable to publish test results from VS to TFS http: //msmvps. com/blogs/vstsblog/archive/2009/05/30/unable -to-publish-test-results-from-visual-studio-to-tfs. aspx

TFS 2010

TFS 2010

Agenda 1 st part: Team Foundation Server 2008 2 nd part: Team Foundation Server

Agenda 1 st part: Team Foundation Server 2008 2 nd part: Team Foundation Server 2010 What’s new for Administrators? Enterprise TFS Management Team Project Collections Improved Setup Experience Upgrade Process from TFS 2005/2008 to 2010 Compatibility

Beta Disclaimer It‘s still beta! It has tons of bugs…

Beta Disclaimer It‘s still beta! It has tons of bugs…

Team Foundation Server 2008: Enterprise-capable SCM Up to 3600 users on a single deployment

Team Foundation Server 2008: Enterprise-capable SCM Up to 3600 users on a single deployment Scale up / Scale out Utilizes SQL Server (2005 or 2008) Atomic transactions Backup/restore like any other database Can be clustered/mirrored Massive storage Reporting Services / Analysis Services Efficient storage

Team Foundation Server 2008: Setup & Admin Pains Many pre-requisites, limited configuration options No

Team Foundation Server 2008: Setup & Admin Pains Many pre-requisites, limited configuration options No administration UI Many tasks require command-line Some tasks require registry edits Log files hard to find

Simplified Setup Requires minimal inputs Reduction of pre-requisites Ability to script setup Logs at

Simplified Setup Requires minimal inputs Reduction of pre-requisites Ability to script setup Logs at your fingertips Application tier (AT) supported on 64 -bit

TFS 2010 Installation

TFS 2010 Installation

TFS 2010 Installation (2)

TFS 2010 Installation (2)

TFS 2010 Installation (3)

TFS 2010 Installation (3)

TFS 2010 Installation (4)

TFS 2010 Installation (4)

TFS 2010 Installation (5)

TFS 2010 Installation (5)

TFS 2010 Basic Installation

TFS 2010 Basic Installation

Administrative User Interface MMC-based admin UI for common tasks Change service accounts Configure data

Administrative User Interface MMC-based admin UI for common tasks Change service accounts Configure data tier Configure SSL Add /change Share. Point Configure reporting/analysis services Configure Team System Web Access Manage project collections Access log files

demo TFS 2010 Admin Console

demo TFS 2010 Admin Console

Team Foundation Server 2008: Enterprise Pains Application tier (AT) requires 32 -bit Team projects

Team Foundation Server 2008: Enterprise Pains Application tier (AT) requires 32 -bit Team projects can’t be isolated Individual team projects not portable across TFS instances Individual team projects not available for backup/restore Team projects limited to 250 -500* per TFS instance * Actual # depends on process templates being used

Enterprise TFS Management (ETM) Team Project Collection Contains team projects Portable across TFS instances

Enterprise TFS Management (ETM) Team Project Collection Contains team projects Portable across TFS instances Can backup/restore in isolation Scale out application tier Load balancing Redundancy

Team Project Collections (TPC) New concept 1 TPC = 1 SQL database After upgrading

Team Project Collections (TPC) New concept 1 TPC = 1 SQL database After upgrading from TFS 2005/2008 all team projects will be in the "Default collection" TPCs are isolated No WI queries, no branching & merging Unique WI and CS IDs, separate Build Controllers 1 cube, data warehouse, SSRS server for all TPCs In Team Explorer you connect to a TPC (not TFS)

Team Project Collections (TPC) Benefits What you can do now Backup/Restore single TPCs, rather

Team Project Collections (TPC) Benefits What you can do now Backup/Restore single TPCs, rather than whole TFS Move a TPC to other server for scalability reasons Hand-over a TPCs to a customer

Team Project Collections (TPC) How to migrate to the new collections After upgrade All

Team Project Collections (TPC) How to migrate to the new collections After upgrade All team projects get upgraded into a single team project collection You can split your team projects into TPCs By using the clone command (detach/attach) you can move team projects to a new TPC Note: only to a new, not an existing TPC

Enterprise TFS Management (ETM) TFS Cluster Application Tiers Team Project Collection Data Tiers Team

Enterprise TFS Management (ETM) TFS Cluster Application Tiers Team Project Collection Data Tiers Team Project 1 Team Project 2 Team Project 3 Application DB VIP N LB Team Project 4 Team Project 5 Team Project 6 Team Project 7

Organizations & Team Projects Teams IT Organizational Hierarchy FInancial Team Project Collections Expense-It! Team

Organizations & Team Projects Teams IT Organizational Hierarchy FInancial Team Project Collections Expense-It! Team Projects TP Accounting FY 08 Shared Services Sales FY 09 Contact Manager Credit Card Service Coding Tools TP TP TP Applications Releases

TFS 2010 Prerequisites Things you can prepare in advance (on the server) Upgrade to

TFS 2010 Prerequisites Things you can prepare in advance (on the server) Upgrade to SQL Server 2008 SQL Server 2005 not supported. Upgrade to WSS 3. 0 SP 2 / Share. Point 2007 SP 2 (dropping support for WSS 2. 0) WSS 2. 0 not supported. HDD free space min 1. 5 x current TFS databases

TFS 2010 Prerequisites (II) Things you can prepare in advance (on the server) Optional:

TFS 2010 Prerequisites (II) Things you can prepare in advance (on the server) Optional: Upgrade to Windows Server 2008 Windows Server 2003 still supported. Optional: Update to 64 -bit 32 -bit still supported. Optional: System Center Virtual Machine Mgr Required for the new Lab Management features

TFS 2010 Prerequisites Things you can prepare in advance (on the client) Upgrade to

TFS 2010 Prerequisites Things you can prepare in advance (on the client) Upgrade to Office 2007 SP 1 required to use the new features from Excel/Project (agile workbooks, hierarchies, etc. ) Upgrade to Visual Studio 2010 VS 2005 & 2008 will receive patches but only offer limited functionality Upgrade to Windows XP SP 3 Windows 2000 no longer supported

TFS 2010 Lab Management Prerequisites Domain Hyper-V Host SCVMM + SCVMM Library TFS Test

TFS 2010 Lab Management Prerequisites Domain Hyper-V Host SCVMM + SCVMM Library TFS Test Controller Build Controller Visual Studio Ultimate or Test Essentials VMs (with Build, Test, Lab Agent)

The Update Process Server Upgrade Option A ("In-place") Uninstall TFS 2008, then install TFS

The Update Process Server Upgrade Option A ("In-place") Uninstall TFS 2008, then install TFS 2010 (will upgrade the database). Option B ("New server") Copy databases to new server, during TFS 2010 install point to the old databases (recommended for upgrades to 64 -bit TFS) Info: There will be only a single database file for all team projects converted from TFS 2008. Remember: Build and Proxy Servers need to be Source: http: //blogs. msdn. com/bkrieger/archive/2009/10/21/teamupgraded at the same time as TFS! foundation-server-2010 -upgrade. aspx

The Update Process Team Project Upgrade A bunch TFS 2010 features won't work after

The Update Process Team Project Upgrade A bunch TFS 2010 features won't work after upgrading Upgrade Guide Enable the Agile Planning Workbooks Enable Test Management Enable Lab Management Enable Reports Source: http: //blogs. msdn. com/allclark/archive/2009/10/13/enabling-new-application-lifecyclemanagement-features-for-visual-studio-2010 -beta-2 -in-upgraded-team-projects. aspx

VS 2005/2008 accessing TFS 2010 Requires an update (GDR) Non-updated clients will be rejected

VS 2005/2008 accessing TFS 2010 Requires an update (GDR) Non-updated clients will be rejected on connect Adds support for Connect to Team Project Collections (e. g. http: //myserver: 8080/Collection 1) New Version Control schema (mostly renames) Navigation to portals, shared docs, and reports Work Item Controls for Test Cases (read-only) Visual indication of queries that require new client Publish Test Results Source: http: //support. microsoft. com/kb/974558/en-us

VS 2005/2008 accessing TFS 2010 You will need the new Team Explorer 2010 for

VS 2005/2008 accessing TFS 2010 You will need the new Team Explorer 2010 for Administrative functions (e. g. create team project) Hierarchical Work Item Queries Source: http: //blogs. msdn. com/teams_wit_tools/archive/2009/05/18/teamexplorer-2010 -beta-1 -compatibility. aspx

Using VS 2010 with TFS 2008 * is only available in VS and is

Using VS 2010 with TFS 2008 * is only available in VS and is limited to unit tests

Some more points on TFS 2010 Sharepoint log files growing out of control Beta

Some more points on TFS 2010 Sharepoint log files growing out of control Beta 2: you need to be admin on the SQL machine

question & answer

question & answer

Resources www. microsoft. com/teched www. microsoft. com/learning Sessions On-Demand & Community Microsoft Certification &

Resources www. microsoft. com/teched www. microsoft. com/learning Sessions On-Demand & Community Microsoft Certification & Training Resources http: //microsoft. com/technet http: //microsoft. com/msdn Resources for IT Professionals Resources for Developers

Related Content DEV 313 Architecture Discovery and Validation with Visual Studio 2010 Today at

Related Content DEV 313 Architecture Discovery and Validation with Visual Studio 2010 Today at 13: 30, Paris 2 – Hall 7 -1 c DEV 02 -IS You Are Still Using Microsoft Visual Source. Safe? Today at 17: 00, Interactive Theatre 2 - Orange DEV 312 Using and Extending Visual Studio 2010 Architecture and Modeling Tools Tomorrow at 10: 45, Europa 2 – Hall 7 -3 b Repeat Architecture Discovery and Validation with Visual Studio 2010 Tomorrow at 13: 00, Interactive Theatre 1 - Red

Complete an evaluation on Comm. Net and enter to win an Xbox 360 Elite!

Complete an evaluation on Comm. Net and enter to win an Xbox 360 Elite!

© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows Vista and other product names

© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U. S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.