TFS Job Agent Recovery
TeamFoundationServer2017.TfsJobAgentRecovery (Recovery)
Recovery for the TfsJobAgent Service. It attempts to restart the service.
Element properties:
Member Modules:
Source Code:
<Recovery ID="TeamFoundationServer2017.TfsJobAgentRecovery" Accessibility="Public" Enabled="true" Target="TeamFoundationServer2017.TfsApplicationTierServer" Monitor="TeamFoundationServer2017.TfsJobAgentServiceMonitor" ResetMonitor="false" ExecuteOnState="Error" Remotable="true" Timeout="300">
<Category>Custom</Category>
<WriteAction ID="TfsJobAgentRecoveryRestart" TypeID="Windows!Microsoft.Windows.ServiceControlManager.StartService">
<ComputerName>ComputerName1$Target/Property[Type="TeamFoundationServer2017.TfsApplicationTierServer"]/ATComputerName$</ComputerName>
<ServiceName>$Target/Property[Type="TeamFoundationServer2017.TfsApplicationTierServer"]/JobAgentServiceName$</ServiceName>
</WriteAction>
</Recovery>