Hey muhammed aneesh,
The delay you're seeing with the scale set agent like a classic cold start issue with scale set agents. Even though the image and size are the same, scale sets spin up new VMs on demand, and that whole process booting the VM, initializing the agent, and any background setup can add a lot of time before the actual pipeline even starts.
Try this few things:
Keep a couple of VMs always running in the scale set to avoid cold starts.
- Check that the DevOps agent and all dependencies are fully baked into the image to avoid extra setup time.
Also worth checking if there are delays in networking or agent registration right after VM spin-up.
If the standalone VM runs the job in 12 minutes, you should be able to get similar performance from scale sets with the right setup.
Hope it helps!
Please do not forget to click "Accept the answer” and Yes
wherever the information provided helps you, this can be beneficial to other community members.
If you have any other questions or still running into more issues, let me know in the "comments" and I would be happy to help you.