Azure DevOps Pipelines - debug resource issues

November 28, 2023

If you are a user of pipelines in Azure DevOps, you might have encountered resource limit issues in pipeline agents. Let's discuss this issue in detail and how a recently released feature will prevent this issue


The pipelines fail from time to time due to resource limits. for example, the pipeline can fail when the disk on the agent becomes full. The error message will say something along the lines of "No space left on the device". How can this issue be prevented or we can know the resource issues in advance? Let's discuss further.

Prevent agent resource issues:

Recently the pipeline logs have been enhanced to include the resource utilisation data.

If you are often facing agent resource-related failures in the pipelines, enable the debug logging to debug the issues further.

Temporarily enable debug logs:

If you want to debug only a specific run of the pipeline, "Enable system diagnostics" when executing the pipeline.

debug pipeline run

Permanently enable debug logs:

To enable the debug logging permanently, edit the pipeline

edit the pipeline

click on variables

pipeline variable

create a new variable called "system.debug" and set its value to true

pipeline debug true

Please see the pipeline log below which can now show CPU, Memory, and Disk usage

2023-11-28T06:52:06.0734877Z ##[section]Starting: Job
2023-11-28T06:52:06.0812898Z ##[debug]Agent running environment resource - Disk: available:24840.00MB out of 85160.00MB, Memory: used 2MB out of 6921MB, CPU: usage 94.26
2023-11-28T06:52:06.0856805Z ##[debug]Cleaning agent temp folder: /home/vsts/work/_temp
2023-11-28T06:52:06.0895478Z ##[debug]Skipping overwrite %TEMP% environment variable
2023-11-28T06:52:06.2577360Z ##[section]Starting: Initialize job


While debugging failures or slowness in pipelines information about resource usage in logs can be very useful.

Thanks for reading, Goodbye until next week!

Profile picture

Written by Thillai Madhavan who lives and works in India. Stay updated by following him on LinkedIn.

All the information on this website - - is published in good faith and for general information purposes only. does not make any warranties about the completeness, reliability and accuracy of this information. Any action you take upon the information you find on this website (, is strictly at your own risk. will not be liable for any losses and/or damages in connection with the use of our website. From our website, you can visit other websites by following hyperlinks to such external sites. While we strive to provide only quality links to useful and ethical websites, we have no control over the content and nature of these sites. These links to other websites do not imply a recommendation for all the content found on these sites. Site owners and content may change without notice and may occur before we have the opportunity to remove a link that may have gone 'bad'. Please be also aware that when you leave our website, other sites may have different privacy policies and terms which are beyond our control. Please be sure to check the Privacy Policies of these sites as well as their "Terms of Service" before engaging in any business or uploading any information. By using our website, you hereby consent to our disclaimer and agree to its terms. Should we update, amend or make any changes to this document, those changes will be prominently posted here
© 2024, OrganicDevOps