Where are TFS Admin Console Settings Saved? - tfs

this may sound like a silly question but our IT department wants us to use their approved backup tool instead of using the standard back solution that comes packaged within TFS2010. My question is, is there a config file holding all settings found within the TFS Admin Console or are all these values saved within the TFS_Configuration table.
Please note that we are using TFS2010
Thanks

The settings are indeed stored in the config database.

Related

TFS Reporting pointing to old server

I had a problem with TFS that forced me to restore TFS to a new server. Everything is working fine except for the Warehouse, Analysis Services and the Reports.
Mainly the report keeps pointing to the old server, and when I try to edit it by pointing to new server TFS Administration Console returns the following message:
I do not wish to restore my old reports; I would like to create all the TFS reporting from scratch. Would someone please point me to the correct place to start?
Thanks!
To target the report to the new server, please follow the steps below:
1). Go the TFS Administration Console, go to Application Tier -> Reporting, then click the Edit link.
2). On the Reporting dialog, check the Use Reporting checkbox.
3). On the Warehouse tab, type the new server name on the Server field.
4). On the Analysis Service tab, specify the new server name in the Server field, Database name, and user account information.
5). On the Reports tab, type your new server name and click the Populate URLs button to have these reporting server URLs populated. Then type the user account information.
This was finally solved by clicking the "Specify non-default instance" checkbox, without entering any value in the following combobox. TFS has created the Warehouse and Analysis database by itself.

Restore tfs collection from mdf/ldf

My server running TFS express crashed. I managed to mount the disk and extract mdf/ldf file for my TFS collection. Here is what I did next:
Built a new machine (with the same name/IP address) and installed SQL Express/TFS server express.
From SQL Server Management Studio, attached the mdf/ldf files. I can now see TFS_MyCollection as a new database.
From TFS Administrative console, clicked on "Attach Collection."
However, the new database is not being listed.
I went through a bunch of links on the Internet. https://social.msdn.microsoft.com/Forums/en-US/d949edf3-1795-448a-a1cc-39555ce87b50/tfs-2010-installation-error had a similar situation. Based on the suggestion, I had attached the database. I also looked at https://msdn.microsoft.com/en-us/library/ms404869(VS.80).aspx. However, this one talks about using backup/restore, which is not my case.
I must be missing some configuration step. Please advice. Regards.
You cant just attach a collection that was never detached.
You need to unconfigure your TFS instance (tfconfig.exe setup /uninstall:all) and then restore all of the databases.
You will need to restore each collection and the configuration DB. They are currently a set. Once you have all of the databses attached/restored you need to run the setup and "configure application tier only".
https://msdn.microsoft.com/en-us/library/ms404869.aspx
You need to follow the documentation for moving hardware. Make sure that you follow each step.
Note: You should take backups!

Change credentials per server?

I've installed opshub on my pc that is on domain ABC. I have succesfully migrated projects from a TFS server on domain ABC to visual studio online. Now I've added a TFS server that is in domain DEF and it doesn't ask me for credentials for that server. I just get a blank collection list, I think its trying to use my current credentials from domain ABC. How can I get it to ask me for the credentials to domain DEF when trying to access that server?
User level authentication details are stored inside Team Foundation cache directory under following locations. If you have already authenticated for the TFS server then details for that server is stored inside cache directory. This won't ask you credentials again while you are doing next migration.
If you want to authenticate with the new credentials for different domain you need to clear data from the following directories.
C:\Users{User}\AppData\Local\Microsoft\Team Foundation\4.0\Cache
C:\Users{User}\AppData\Local\Microsoft\Team Foundation\5.0\Cache
Make sure original folders remains there (Cache). Just remove contents of those directories. Also make sure you close all the applications which uses TFS cache like visual studio, opshub migration utility.
See http://blogs.msdn.com/b/visualstudioalm/archive/2012/08/29/clearing-the-credentials-for-connecting-to-a-team-foundation-server.aspx for correct answer. It worked for me.

Backing up documents of TFS server

I have been given a task of Backing up of documents in TFS server. I am not sure how to proceed with this. Google search didnot return anything usable.
How can i do this. Please share your experiences.
The Sharepoint library used by Team Explorer's "documents" folder is stored in the two STS_* databases on the SQL server.
Note that partial backups/restores are not supported in TFS 2005/2008. Restoring just the Sharepoint databases without the other ones (especially the TfsIntegration database) would leave you in an inconsistent state. As of TFS 2010 you can do backups/restores at the collection level.
Not exactly sure what documents you are referring to, since TFS follows 3-tier model, will backing up databases that hold your desired data solve your problem?
In my case Documents in TFS were stored in sharepoint site that gets installed when we install TFS. WSS_Content is the name of the database that holds all documents and their version history.
In my case this database was not a part of the maintenance plan in sql server.
So, I modified the maintenance plan and now this database is getting backed up along with other databases.

Is it possible to edit files during a Team Build?

I'm looking for a way to edit a configuration file (web.config in an asp.net project) in a Team Build.
Specifically I'm looking at either uncommenting or adding identiy impersonate in the config file before copying the built web application to its destination.
I know that it's possible to have multiple config files and copy one over the other (we're using this approach to have different configurations for development, production, demo, etc), but in this case it would be nice to keep the configuration in a single file since the only change here is whether or not identity impersonate should be false or true.
I've been googling for a while now without finding any solution to this, but maybe there are someone here which could either help me figure out how or simply state that it's not possible. Any ideas?
Have a look at http://www.codeplex.com/sdctasks
It's a set of build tasks which allow you to do all sorts of fun things. There are several tasks which are web(site) related, but if it comes to it, there are XML tasks too which should allow you to manipulate the file appropriately
The XmlPoke msbuild 4.0 task will help you, and this is buit in. Here's the link: http://msdn.microsoft.com/en-us/library/ff598687.aspx

Resources