You can create an Azure Automation Runbook that periodically checks the uptime of VMs in your scale set and reboots them if they exceed a certain threshold. Azure Automation allows you to run PowerShell or Python scripts on a schedule or in response to specific triggers.
Is the Agent Pool Maintenance script customizable?
Loren Merriman (Kalvi Consulting Services Inc)
1
Reputation point
For our largest pool, 500-700 virtual machines, we have enabled the Maintenance Job.
Are we able to edit this maintenance script that we enabled?
We have noticed that machines with an uptime of more than 60 days start having Agent / Azure Task failures that cause failures in builds until the virtual machine is rebooted. We would like to add an uptime check to the maintenance job's script and reboot machines as part of this operation.
Community Center | Not monitored
Community Center | Not monitored
Tag not monitored by Microsoft.
1 answer
Sort by: Most helpful
-
Cloudoire Academy 23,595 Reputation points Volunteer Moderator2023-09-09T13:51:04.0833333+00:00