RestartTFSJobAgent

TeamFoundationServer2012.RestartTFSJobAgent (Recovery)

Restarts the TFSJobAgent Service

Element properties:

TargetTeamFoundationServer2012.TFSApplicationTier
MonitorSystem.Health.EntityState
Reset MonitorFalse
RemotableTrue
Timeout300
CategoryCustom
Enabledtrue
AccessibilityPublic

Member Modules:

ID Module Type TypeId RunAs 
StartTFSJobAgentService WriteAction Microsoft.Windows.ServiceControlManager.StartService Default

Source Code:

<Recovery ID="TeamFoundationServer2012.RestartTFSJobAgent" Accessibility="Public" Enabled="true" Target="TeamFoundationServer2012.TFSApplicationTier" Monitor="Health!System.Health.EntityState" ResetMonitor="false" ExecuteOnState="Error" Remotable="true" Timeout="300">
<Category>Custom</Category>
<WriteAction ID="StartTFSJobAgentService" TypeID="Windows!Microsoft.Windows.ServiceControlManager.StartService">
<ComputerName>ComputerName1$Target/Property[Type="TeamFoundationServer2012.TFSApplicationTier"]/TFSATComputerName$</ComputerName>
<ServiceName>TFSJobAgent</ServiceName>
</WriteAction>
</Recovery>