🔥 3-day streak
Microsoft DevOps Engineer Expert49 / 138
Question 49 of 138

Your team runs an Azure Pipelines YAML pipeline on a Microsoft-hosted ubuntu-latest agent. The build job requires a very specific version of Node.js (18.14.2) plus several native build tools that are not present on the hosted image, and you want to avoid spending several minutes each run installing them with a script step. You already publish a prebuilt Docker image containing exactly the required toolchain to your Azure Container Registry. What is the most efficient way to have the build steps execute inside that toolchain image on the hosted agent?

Reviewed for accuracy · Report an issueNext question