Thank you for reaching out to Microsoft Q&A.
Managed DevOps Pools (MDP) are designed as a fully managed service where the build agents run in Microsoft‑owned infrastructure rather than in the customer’s Azure subscription. Because of this design, customers do not have OS‑level or agent‑service access to the underlying machines. As a result, traditional self‑hosted agent diagnostics such as the _diag folder or raw agent/system logs are not exposed. There are no hidden or downloadable agent logs in Azure DevOps for MDP, and there is no supported mechanism to export internal agent or OS logs. This limitation is intentional and aligns with the managed nature of the service only supported, surfaced diagnostics are available to customers.
Refer below points to resolve this issue or this is the workaround:
Enable verbose pipeline and agent diagnostics
You can enable the deepest supported logging by turning on system diagnostics for the pipeline run.
- From the pipeline UI: Run pipeline > Enable system diagnostics > Run
- Or in YAML, add:
variables:
system.debug: true
This enables verbose task and agent logging, which is the maximum level of agent visibility supported in Managed DevOps Pools.
Use Azure Monitor diagnostic settings for the Managed DevOps Pool resource
Managed DevOps Pools support Azure resource diagnostic logs, but only for pool‑level and provisioning information.
- Configure this in Azure Portal > Managed DevOps Pool > Monitoring > Diagnostic settings
- Available logs include Provisioning Logs and Metrics These logs help with agent provisioning, scaling, and pool lifecycle troubleshooting, but they do not include job‑execution or agent OS logs.
Understand the limitation compared to self‑hosted agents There is no equivalent of the _diag folder in Managed DevOps Pools. Agent OS logs, network stack logs, and internal agent service logs are not customer‑accessible in MDP. This behavior is by design due to the agents running in Microsoft‑managed infrastructure.
Engage Microsoft Support for suspected platform issues If you suspect a service‑side issue, you can open a Microsoft Support ticket and share pipeline run IDs and timestamps. Microsoft Support can review internal telemetry, but internal logs are not exported or shared with customers.
Consider self‑hosted or VMSS agents if deep diagnostics are required If your scenarios require full OS‑level access, deep network troubleshooting, or agent service logs, the recommended workaround is to use self‑hosted agents or VM Scale Set agents instead of Managed DevOps Pools.