VS402984: Pipeline fails when referencing missing agent pool
0 reputation · 15 Dec 2024, 22:49 UTC
0 reputation · 15 Dec 2024, 22:49 UTC
Determine the most cost‑effective agent strategy for Azure DevOps pipelines that run only a few times per month.
The VS402984 error (“The requested resource does not exist”) appears when a pipeline YAML references an agent pool that has been deleted or never created, underscoring the need for a valid pool even for low‑traffic workloads. Switching from Microsoft‑hosted parallel jobs to a self‑hosted agent on an Azure B‑series VM can lower per‑minute charges, but the VM incurs uptime costs and requires patching, hardening, and monitoring. Enabling pipeline caching reduces consumed minutes by reusing dependencies, yet the storage overhead and warm‑start latency for infrequent runs are not quantified in the documentation.
Does enabling pipeline caching provide a net cost saving for pipelines that execute fewer than five times per month?
What is the storage cost impact of retaining cache artifacts for long periods in a low‑frequency scenario?
At what monthly pipeline‑minute threshold does a self‑hosted B‑series VM become cheaper than a Microsoft‑hosted parallel job?
30775 reputation · 16 Dec 2024, 05:57 UTC
For pipelines that execute only a few times per month, the most cost-effective strategy is typically Microsoft-hosted parallel jobs, provided the usage stays within the free tier or low-minute consumption. The VS402984 error ("The requested resource does not exist") is a configuration failure indicating your YAML references a pool that is either deleted or incorrectly named; it is not a cost-related error.
While a self-hosted agent on an Azure B-series VM can eliminate per-minute charges, the math often fails for infrequent runs:
The break-even point where a self-hosted VM becomes cheaper usually requires the pipeline to run frequently enough to exceed the free monthly hosted minutes, or for the VM to be used for other tasks to justify its uptime cost.
Whether pipeline caching provides a net cost saving for fewer than five runs per month depends on your dependency size:
To fix the pipeline failure, ensure the agent pool reference is valid:
pool:
name: 'Your-Valid-Pool-Name'
Assumption: This analysis assumes you are using the standard tier. If you are on a private project with zero free parallel jobs, the cost implications of self-hosted agents change significantly.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.