How to rename an agent pool in TFS - tfs

How to rename an existing agent pool in Team Foundation Server 2017?
I've created an agent pool in TFS 2017. Now I want to rename it for a better understanding.

We cannot rename the existing agent pool in TFS, you can delete the existing agent pool, then create a new pool with the name for a better understanding, then reconfigure the agents with the new pool.
On the Settings->Agent Pools, for each Pool Name on its right there is a small black triangle pointing down, left click on it, a context menu will appear, last menu item is 'Delete', click on that the Agent Pool will be gone after a confirmation dialog.
Deploy an agent on Windows

It is possible to change the name of the pool if you resort to using the rest API, at least for later Azure releases.
Microsoft description found here
https://learn.microsoft.com/en-us/rest/api/azure/devops/distributedtask/pools/update?view=azure-devops-server-rest-6.0

Related

TFS restoration-based move

When moving TFS from one machine to another by restoring it to new hardware (restoration-based move), the name of the old machine gets listed under the Application Tiers tab and is visible if the "Filter out machines that have not connected in more than 3 days" checkbox is unchecked.
To upgrade hardware and TFS version in one move:
Is it necessary to always keep the same machine name?
Does TFS support machine name change during restoration-based moves? (this will be in the case that we have Machine A and Machine B. Machine A is the old production tier and Machine B is the new one, where the databases will be moved and upgraded.)
Does the name machine change have any effect if TFS has an alias name for the public URL?
Thank you
First, you should confirm one thing, do you need to use the original hardware and TFS deployment or not.
You perform a move when you plan to discontinue use of the original hardware and TFS deployment. You perform a clone when you intend to continue using the original TFS instance.
Please take a look at Move or Clone Team Foundation Server from one hardware to another
If you just restored an application-tier server, for restoring an application-tier server, the name of the old application-tier server remains there is expected (See the end of this article.).
Note: The name of the old application-tier server will still appear in
the list of application-tier servers in the administration console for
Team Foundation. If you select the Filter out machines that have not
connected in more than 3 days check box, the old server will disappear
from the list within three days.
So, to avoid showing the old App Tier machine name you need to follow the steps in above tutorial-- Move or Clone Team Foundation Server from one hardware to another.
Moreover: You must install but not configure TFS on the new data-tier
server, and then use the restore function in the Scheduled Backups
node

Newly created iterations and areas are not synched

I am using TFS 2013 update 4:
Scenario:
Add a new iteration from the administration page of a project.
Go to the project Dashboard create a new work item.
Newly created ierations and areas are not shown in the relative dropdowns.
Steps taken:
Checked the server for errors in the event viewer, no issues.
Check the 'Visual Studio Team foundation Job Agent' running with no issues under the TFS admin user.
The newly created iteration exists in the collection database table 'tbl_nodes' and in the 'TFS_Warehouse' Database.
Checked the Jobs on the database and forced them to start, did not solve it.
What I was not able to do is figure out which table exactly the TFS is querying the nodes from, afterall the Stored procedures are encrypted.
Amemdment:
**the newly created iterations exist in the 'tbl_nodes' but does not exist in 'TreeNodes' table.
Since newly created iterations and areas are both in database. Try to restart Team Foundation Background Job Agent service to force synchronization in TFS server.
If it's still not help, give a try with rebooting the server, which may do the trick. You can also take a look Mark's solution in this similar issue Newly created TFS 2010 iteration not visible

How to delete agent pool in Visual Studio Team Services

I want to delete or change an existing Agent Pool from the Visual Studio Team Service. All the agents from the pool are already deleted. If I go to Settings->Agent Pools , there is only an option for "New pool...". Is it possible to delete an old one?
On the Settings->Agent Pools, for each Pool Name on its right there is a small black triangle pointing down, left click on it, a context menu will appear, last menu item is 'Delete', click on that the Agent Pool will be gone after a confirmation dialog.

Restore all security groups of the TFS 2010 collections after applying the TFSConfig repair command

We've lost our TFS and domain servers. TFS was configured to use domain accounts. We could resotre only the TFS Project Collection databases and thanks to the "TFSConfig repair" command, we finally attached them to a new TFS instance.
But all of the default security groups for repaired projects are lost (except the administrators). For example we don't have "Contributors" group anymore.
Now we want to restore these standard groups. Maybe it's possible to fix it by applying the default TFS "project proccess templates" on all existing projects and collections again.
Is there any way to address it?
As you lost the Domain server you have to follow the Move User and Service Accounts chapter of the "Move Team Foundation Server from One Environment to Another" procedure.
By the way, there's no such feature as reapplying a process template on an existing Team Project.
Have you tried to recreate at least one group that you lost? Only to know if that is working (maybe TFS will return an error because the group still exists in the database but it's not shown for whatever reason) ?
One last thing: check the TFS Scheduler Windows Service is running on the TFS Server and look for errors in the Windows Event Log.

TFS Team Build 2010 - queue build as a named user

After much messing around I've got CI implemented onto our test server. A custom workflow template builds and deploys 2 web apps (different servers), a database and a windows service. This is brill and takes all the worry out of deploying a test app.
I want to move this over to staging and live (queued manually), but doing it like this the TFS service account would need permissions on IIS for the web apps, DBOwner on the database and local admin on the service box. This is a big no-no for our tech guys!
What we could do is just give these permissions before we run the build and remove afterwards, but this means maintaining a list of what permissions to change where - ruining the convenience of one-click deployment a bit.
Ideally we'd just get the build to run using the account of the tech services guy whos got admin network-wide, is there a way to do that?
Yes you can do that via the TFS Administrator Console.
If you haven't configured your build machine, then you can choose the user during the configuration phase. You should see a Configuration Wizard page that allows you to choose a user account like this:
If your build machine is already configured, go to your build machine, then run %PROGRAMFILES%\Microsoft Team Foundation Server 2010\Tools\TfsMgmt.exe, then go to "Build Configuration", click at "Properties" link of the Build Service to open the Properties dialog, then click "stop to make changes" on the dialog, and you can change the account from the built-in account to a user one:

Resources