SlideShare una empresa de Scribd logo
1 de 30
ALM@Work 2014

Administration, Operation and
Troubleshooting with Team Foundation
Server 2013
Matteo Emili
http://mattvsts.blogspot.com
matteo.emili@live.com
http://twitter.com/MattVSTS

ALM@Work 2014
Who am I?

ALM@Work 2014

Visual Studio ALM MVP
Since 2010

Microsoft Certified Technology Specialist
Team Foundation Server

Professional Scrum Master I
Systems Engineering Advisor
Dell Software UK
ALM@Work 2014
Usual stories…

ALM@Work 2014

John installs a TFS as a trial installation for
his team…
…the team gets used to it, it works and it
gets adopted by the company…
…John receives a communication about
being the de-facto TFS Administrator of the
company Team Foundation Server!
ALM@Work 2014
TFS Administrator skills

Windows
Active
Directory
IIS
Networking
SQL Server
SharePoint
Project Server

ALM@Work 2014

SCOM
Hyper-V
SCVMM
Update Management
Migrations, consolidations
3rd party tools
…plus the development
side!
Not really…

ALM@Work 2014

• You do not need to be a master of all of
them
• A basic know-how is enough for the daily
management
• SQL Server and SharePoint are the main
areas
Your tools of choice

•
•
•
•
•
•
•

ALM@Work 2014

Administration Console
TFSConfig.exe
Web Access
Operational Intelligence
Power Tools
Attrice TFS Sidekicks
Select OSS and Codeplex projects
Tip 0 – Visual Studio ALM Rangers

ALM@Work 2014

Checkout, print, spread around as the Bible
– the Visual Studio ALM Rangers’ guidances
and tools are the best possible material for
whoever has to do with Team Foundation
Server
http://blogs.msdn.com/b/willypeter_schaub/archive/2012/03/31/understanding-thevisual-studio-alm-rangers.aspx
http://blogs.msdn.com/b/willypeter_schaub/archive/2013/05/16/visual-studio-alm-rangersolutions-catalog.aspx
TFSConfig.exe

ALM@Work 2014

The most powerful tool for TFS Management
It can set and modify every property in TFS
Handle with care!
Very handy for scripting purposes
http://msdn.microsoft.com/enus/library/ms253116.aspx
Tip 1 – no common ACL

ALM@Work 2014

Scenario: adding a new user to TFS
Answer: you must add the required
users/group to TFS, SSRS and SharePoint
How: TFS Administration Tool
(http://tfsadmin.codeplex.com/)
Tip 2 – Test Attachments Cleaning

ALM@Work 2014

Scenario: Test Cases attachments make the
DB extremely big and full of binaries
Answer: you must run the Test Attachment
Cleaner, included in the TFS Power Tools
How: TFS Power Tools
(http://visualstudiogallery.msdn.microsoft.co
m/f017b10c-02b4-4d6d-984558a06545627f)
What’s inside?

ALM@Work 2014

Best Practices Analyzer
Team Explorer Enhancements (Work item
templates not included)
Tfpt.exe command line interface
Check-in Policy Pack
Process Template Editor
Windows Shell Extension
Test Attachment Cleaner
The Best Practice Analyzer

ALM@Work 2014

Regardless of your role (fulltime Admin or
consultant or whatever) the first thing you
should do upon a TFS is running the BPA
It provides you a scan of the entire TFS
infrastructure with all the related issues
Specific scans are available as well
Very useful report to carry on
TFS Registry

ALM@Work 2014

• Team Foundation Server stores its
configuration registry in several noncontiguous keys in the Windows
Registry
• Schemaless, hierarchical key/value
• Privilege Segregation is applied
• Almost undocumented, can be hard to
query even with the Object Model
• http://msdn.microsoft.com/enus/library/aa337607(v=vs.90).aspx
Neno Loje’s TFS Registry utility

ALM@Work 2014

http://msmvps.com/blogs/vstsblog/archive/2
011/02/01/change-notification-delay-settingin-tfs-2010.aspx
Command-line tool for interacting with the
TFS Registry, built using the OM so it won’t
do anything unsupported…
ALM@Work 2014

DEMO
Tools

ALM@Work 2014
Tip 3 - backups

ALM@Work 2014

• For small to mid-sized environments, use
the Backup tool included in the OOB
installation
• Big environments require other backup
strategies and tools
• REMEMBER – SSRS Encryption Key
• REMEMBER – SQL Transaction Logs
Back to basics: the TFS Job Agent

ALM@Work 2014

• TFS has a built-in scheduler and agent
• The Job Agent runs on the tiers ensuring
all the required conditions are met for an
unattended run of a certain job
• It uses the Service Account
• More: http://msdn.microsoft.com/enus/library/ms252450.aspx
Knowing your jobs…

ALM@Work 2014

Grant Holliday sums them up here
http://blogs.msdn.com/b/granth/archive/2013
/02/13/tfs2012-what-are-all-the-differentjobs-built-in-to-tfs.aspx
Every job has a different impact on TFS.
Some of them are very heavy.
TFS Operational Intelligence

ALM@Work 2014

• It is a ‘Service Dashboard’ for every
aspect of Team Foundation Server
• Do not expect simple warning
• It was born as an experimental product,
and left in the system. It’s not something
hidden, MSFT is well aware of it
ALM@Work 2014

DEMO
TFS Operational Intelligence

ALM@Work 2014
Troubleshooting story

ALM@Work 2014

• We try to run the latest update or the
latest version in production
• TFS 2012.3 just came out
Steps – part 1

ALM@Work 2014

• TF237165 – what is that?
• Nothing relevant came out at the time…

• Check the Process Template’s transitions
• A wrong transition can lead to that error
• The PT was a OOB one

• TFS BPA to see if there was something
wrong with the web services…
• Nothing.
Steps – part 2

ALM@Work 2014

• Check the TFS Operational Intelligence
• Several -1 results came out, with full
stacktrace and tons of useful informations

• It turned out a problem with a Global List
• Global lists are above the single PT rules
evaluation, and a Project Server Global
Workflow rule was breaching the validation

• Remove the Project Server integration
• tfsadmin projectserver …
Outcome
•

ALM@Work 2014

Contact MSFT CSS
• After further investigations we got a targeted fix
and a timeframe for full resolution (TFS 2012.4)
• TFS 2012.4 contained the fix
(http://support.microsoft.com/kb/2872520)
“Assume that you have a TFS 2012 server that is
configured for synchronizing with Project Server.
When you try to save a copied work item in TFS
web access, you may receive the following error
message: TF237165: Team Foundation could
not…”
Migrations, consolidations

ALM@Work 2014

• TFS Integration Tools
• http://visualstudiogallery.msdn.microsoft.com/
eb77e739-c98c-4e36-9ead-fa115b27fefe

• VSS Upgrade Tool for TFS
• http://visualstudiogallery.msdn.microsoft.com/
867f310a-db30-4228-bbad-7b9af0089282

• Using Git is an option for migrations (Hg,
SVN, etc)
ALM@Work 2014
Grazie agli sponsor

ALM@Work 2014
ALM@Work 2014

Per voi sono solo 10 minuti persi, per noi
è utilissimo per poter crescere e
migliorare!

http://tinyurl.com/ALMAW14

Más contenido relacionado

Más de DomusDotNet

Advanced ef code first 5.0 - EF@work
Advanced ef code first 5.0 - EF@workAdvanced ef code first 5.0 - EF@work
Advanced ef code first 5.0 - EF@workDomusDotNet
 
ASP.NET MVC: sfruttare la piattaforma al 100%
ASP.NET MVC: sfruttare la piattaforma al 100%ASP.NET MVC: sfruttare la piattaforma al 100%
ASP.NET MVC: sfruttare la piattaforma al 100%DomusDotNet
 
Push Notification, Live Tile e Background Agent
Push Notification, Live Tile e Background AgentPush Notification, Live Tile e Background Agent
Push Notification, Live Tile e Background AgentDomusDotNet
 
Sviluppare per Intel® Ultrabook™
Sviluppare per Intel® Ultrabook™Sviluppare per Intel® Ultrabook™
Sviluppare per Intel® Ultrabook™DomusDotNet
 
ALM@Work - Team collaboration with visual studio alm 2012
ALM@Work - Team collaboration with visual studio alm 2012ALM@Work - Team collaboration with visual studio alm 2012
ALM@Work - Team collaboration with visual studio alm 2012DomusDotNet
 
ALM@Work - Lab management for everyone
ALM@Work - Lab management for everyoneALM@Work - Lab management for everyone
ALM@Work - Lab management for everyoneDomusDotNet
 
ALM@Work - Continuous delivery 101
ALM@Work - Continuous delivery 101ALM@Work - Continuous delivery 101
ALM@Work - Continuous delivery 101DomusDotNet
 
ALM@Work - Unit testing in Visual studio 2012
ALM@Work - Unit testing in Visual studio 2012ALM@Work - Unit testing in Visual studio 2012
ALM@Work - Unit testing in Visual studio 2012DomusDotNet
 
ALM@Work - Typical developer day
ALM@Work - Typical developer dayALM@Work - Typical developer day
ALM@Work - Typical developer dayDomusDotNet
 
We Want Web - Web Applications con MVC 3
We Want Web - Web Applications con MVC 3We Want Web - Web Applications con MVC 3
We Want Web - Web Applications con MVC 3DomusDotNet
 
WeWantWeb - WCF Data Services
WeWantWeb - WCF Data ServicesWeWantWeb - WCF Data Services
WeWantWeb - WCF Data ServicesDomusDotNet
 
ALM Revolutions - Non si vive di solo check-out e check-in
ALM Revolutions - Non si vive di solo check-out e check-inALM Revolutions - Non si vive di solo check-out e check-in
ALM Revolutions - Non si vive di solo check-out e check-inDomusDotNet
 
ALM Revolutions - Process Template Customization
ALM Revolutions - Process Template CustomizationALM Revolutions - Process Template Customization
ALM Revolutions - Process Template CustomizationDomusDotNet
 
ALM Revolutions - What's new in visual studio ALM 11
ALM Revolutions - What's new in visual studio ALM 11ALM Revolutions - What's new in visual studio ALM 11
ALM Revolutions - What's new in visual studio ALM 11DomusDotNet
 
Pomeriggio Entity Framework - WP7 e SQL Compact Edition
Pomeriggio Entity Framework - WP7 e SQL Compact EditionPomeriggio Entity Framework - WP7 e SQL Compact Edition
Pomeriggio Entity Framework - WP7 e SQL Compact EditionDomusDotNet
 
Pomeriggio Entity Framework - Database First
Pomeriggio Entity Framework - Database FirstPomeriggio Entity Framework - Database First
Pomeriggio Entity Framework - Database FirstDomusDotNet
 
Pomeriggio Entity Framework - Code First
Pomeriggio Entity Framework - Code FirstPomeriggio Entity Framework - Code First
Pomeriggio Entity Framework - Code FirstDomusDotNet
 

Más de DomusDotNet (17)

Advanced ef code first 5.0 - EF@work
Advanced ef code first 5.0 - EF@workAdvanced ef code first 5.0 - EF@work
Advanced ef code first 5.0 - EF@work
 
ASP.NET MVC: sfruttare la piattaforma al 100%
ASP.NET MVC: sfruttare la piattaforma al 100%ASP.NET MVC: sfruttare la piattaforma al 100%
ASP.NET MVC: sfruttare la piattaforma al 100%
 
Push Notification, Live Tile e Background Agent
Push Notification, Live Tile e Background AgentPush Notification, Live Tile e Background Agent
Push Notification, Live Tile e Background Agent
 
Sviluppare per Intel® Ultrabook™
Sviluppare per Intel® Ultrabook™Sviluppare per Intel® Ultrabook™
Sviluppare per Intel® Ultrabook™
 
ALM@Work - Team collaboration with visual studio alm 2012
ALM@Work - Team collaboration with visual studio alm 2012ALM@Work - Team collaboration with visual studio alm 2012
ALM@Work - Team collaboration with visual studio alm 2012
 
ALM@Work - Lab management for everyone
ALM@Work - Lab management for everyoneALM@Work - Lab management for everyone
ALM@Work - Lab management for everyone
 
ALM@Work - Continuous delivery 101
ALM@Work - Continuous delivery 101ALM@Work - Continuous delivery 101
ALM@Work - Continuous delivery 101
 
ALM@Work - Unit testing in Visual studio 2012
ALM@Work - Unit testing in Visual studio 2012ALM@Work - Unit testing in Visual studio 2012
ALM@Work - Unit testing in Visual studio 2012
 
ALM@Work - Typical developer day
ALM@Work - Typical developer dayALM@Work - Typical developer day
ALM@Work - Typical developer day
 
We Want Web - Web Applications con MVC 3
We Want Web - Web Applications con MVC 3We Want Web - Web Applications con MVC 3
We Want Web - Web Applications con MVC 3
 
WeWantWeb - WCF Data Services
WeWantWeb - WCF Data ServicesWeWantWeb - WCF Data Services
WeWantWeb - WCF Data Services
 
ALM Revolutions - Non si vive di solo check-out e check-in
ALM Revolutions - Non si vive di solo check-out e check-inALM Revolutions - Non si vive di solo check-out e check-in
ALM Revolutions - Non si vive di solo check-out e check-in
 
ALM Revolutions - Process Template Customization
ALM Revolutions - Process Template CustomizationALM Revolutions - Process Template Customization
ALM Revolutions - Process Template Customization
 
ALM Revolutions - What's new in visual studio ALM 11
ALM Revolutions - What's new in visual studio ALM 11ALM Revolutions - What's new in visual studio ALM 11
ALM Revolutions - What's new in visual studio ALM 11
 
Pomeriggio Entity Framework - WP7 e SQL Compact Edition
Pomeriggio Entity Framework - WP7 e SQL Compact EditionPomeriggio Entity Framework - WP7 e SQL Compact Edition
Pomeriggio Entity Framework - WP7 e SQL Compact Edition
 
Pomeriggio Entity Framework - Database First
Pomeriggio Entity Framework - Database FirstPomeriggio Entity Framework - Database First
Pomeriggio Entity Framework - Database First
 
Pomeriggio Entity Framework - Code First
Pomeriggio Entity Framework - Code FirstPomeriggio Entity Framework - Code First
Pomeriggio Entity Framework - Code First
 

Último

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 

Último (20)

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 

Administration, Operation and Troubleshooting with Team Foundation Server 2013

  • 1. ALM@Work 2014 Administration, Operation and Troubleshooting with Team Foundation Server 2013 Matteo Emili http://mattvsts.blogspot.com matteo.emili@live.com http://twitter.com/MattVSTS ALM@Work 2014
  • 2. Who am I? ALM@Work 2014 Visual Studio ALM MVP Since 2010 Microsoft Certified Technology Specialist Team Foundation Server Professional Scrum Master I Systems Engineering Advisor Dell Software UK
  • 4. Usual stories… ALM@Work 2014 John installs a TFS as a trial installation for his team… …the team gets used to it, it works and it gets adopted by the company… …John receives a communication about being the de-facto TFS Administrator of the company Team Foundation Server!
  • 6. TFS Administrator skills Windows Active Directory IIS Networking SQL Server SharePoint Project Server ALM@Work 2014 SCOM Hyper-V SCVMM Update Management Migrations, consolidations 3rd party tools …plus the development side!
  • 7. Not really… ALM@Work 2014 • You do not need to be a master of all of them • A basic know-how is enough for the daily management • SQL Server and SharePoint are the main areas
  • 8. Your tools of choice • • • • • • • ALM@Work 2014 Administration Console TFSConfig.exe Web Access Operational Intelligence Power Tools Attrice TFS Sidekicks Select OSS and Codeplex projects
  • 9. Tip 0 – Visual Studio ALM Rangers ALM@Work 2014 Checkout, print, spread around as the Bible – the Visual Studio ALM Rangers’ guidances and tools are the best possible material for whoever has to do with Team Foundation Server http://blogs.msdn.com/b/willypeter_schaub/archive/2012/03/31/understanding-thevisual-studio-alm-rangers.aspx http://blogs.msdn.com/b/willypeter_schaub/archive/2013/05/16/visual-studio-alm-rangersolutions-catalog.aspx
  • 10. TFSConfig.exe ALM@Work 2014 The most powerful tool for TFS Management It can set and modify every property in TFS Handle with care! Very handy for scripting purposes http://msdn.microsoft.com/enus/library/ms253116.aspx
  • 11. Tip 1 – no common ACL ALM@Work 2014 Scenario: adding a new user to TFS Answer: you must add the required users/group to TFS, SSRS and SharePoint How: TFS Administration Tool (http://tfsadmin.codeplex.com/)
  • 12. Tip 2 – Test Attachments Cleaning ALM@Work 2014 Scenario: Test Cases attachments make the DB extremely big and full of binaries Answer: you must run the Test Attachment Cleaner, included in the TFS Power Tools How: TFS Power Tools (http://visualstudiogallery.msdn.microsoft.co m/f017b10c-02b4-4d6d-984558a06545627f)
  • 13. What’s inside? ALM@Work 2014 Best Practices Analyzer Team Explorer Enhancements (Work item templates not included) Tfpt.exe command line interface Check-in Policy Pack Process Template Editor Windows Shell Extension Test Attachment Cleaner
  • 14. The Best Practice Analyzer ALM@Work 2014 Regardless of your role (fulltime Admin or consultant or whatever) the first thing you should do upon a TFS is running the BPA It provides you a scan of the entire TFS infrastructure with all the related issues Specific scans are available as well Very useful report to carry on
  • 15. TFS Registry ALM@Work 2014 • Team Foundation Server stores its configuration registry in several noncontiguous keys in the Windows Registry • Schemaless, hierarchical key/value • Privilege Segregation is applied • Almost undocumented, can be hard to query even with the Object Model • http://msdn.microsoft.com/enus/library/aa337607(v=vs.90).aspx
  • 16. Neno Loje’s TFS Registry utility ALM@Work 2014 http://msmvps.com/blogs/vstsblog/archive/2 011/02/01/change-notification-delay-settingin-tfs-2010.aspx Command-line tool for interacting with the TFS Registry, built using the OM so it won’t do anything unsupported…
  • 18. Tip 3 - backups ALM@Work 2014 • For small to mid-sized environments, use the Backup tool included in the OOB installation • Big environments require other backup strategies and tools • REMEMBER – SSRS Encryption Key • REMEMBER – SQL Transaction Logs
  • 19. Back to basics: the TFS Job Agent ALM@Work 2014 • TFS has a built-in scheduler and agent • The Job Agent runs on the tiers ensuring all the required conditions are met for an unattended run of a certain job • It uses the Service Account • More: http://msdn.microsoft.com/enus/library/ms252450.aspx
  • 20. Knowing your jobs… ALM@Work 2014 Grant Holliday sums them up here http://blogs.msdn.com/b/granth/archive/2013 /02/13/tfs2012-what-are-all-the-differentjobs-built-in-to-tfs.aspx Every job has a different impact on TFS. Some of them are very heavy.
  • 21. TFS Operational Intelligence ALM@Work 2014 • It is a ‘Service Dashboard’ for every aspect of Team Foundation Server • Do not expect simple warning • It was born as an experimental product, and left in the system. It’s not something hidden, MSFT is well aware of it
  • 22. ALM@Work 2014 DEMO TFS Operational Intelligence ALM@Work 2014
  • 23. Troubleshooting story ALM@Work 2014 • We try to run the latest update or the latest version in production • TFS 2012.3 just came out
  • 24. Steps – part 1 ALM@Work 2014 • TF237165 – what is that? • Nothing relevant came out at the time… • Check the Process Template’s transitions • A wrong transition can lead to that error • The PT was a OOB one • TFS BPA to see if there was something wrong with the web services… • Nothing.
  • 25. Steps – part 2 ALM@Work 2014 • Check the TFS Operational Intelligence • Several -1 results came out, with full stacktrace and tons of useful informations • It turned out a problem with a Global List • Global lists are above the single PT rules evaluation, and a Project Server Global Workflow rule was breaching the validation • Remove the Project Server integration • tfsadmin projectserver …
  • 26. Outcome • ALM@Work 2014 Contact MSFT CSS • After further investigations we got a targeted fix and a timeframe for full resolution (TFS 2012.4) • TFS 2012.4 contained the fix (http://support.microsoft.com/kb/2872520) “Assume that you have a TFS 2012 server that is configured for synchronizing with Project Server. When you try to save a copied work item in TFS web access, you may receive the following error message: TF237165: Team Foundation could not…”
  • 27. Migrations, consolidations ALM@Work 2014 • TFS Integration Tools • http://visualstudiogallery.msdn.microsoft.com/ eb77e739-c98c-4e36-9ead-fa115b27fefe • VSS Upgrade Tool for TFS • http://visualstudiogallery.msdn.microsoft.com/ 867f310a-db30-4228-bbad-7b9af0089282 • Using Git is an option for migrations (Hg, SVN, etc)
  • 30. ALM@Work 2014 Per voi sono solo 10 minuti persi, per noi è utilissimo per poter crescere e migliorare! http://tinyurl.com/ALMAW14