I created virtual machine scale set and i followed the below documentation to configure it as an agent pool in azure devops.
After configuring , i cant find the agents under the agent pool created in Devops.
When i checked the instances in VMSS, the instances are update with latest model and they are up and running.On furthur anlaysis I found that there was an issue installing extension for devops on the instance
Below are the logs from the faulty VM
[2024-03-26T12:45:11.409Z] Executing: C:\Packages\Plugins\Microsoft.VisualStudio.Services.TeamServicesAgent\1.31.0.0\enable.cmd
[2024-03-26T12:46:09.198Z] Execution Complete.
######
Execution Output:
[2024-03-26T12:45:14] Sequence Number: 1
[2024-03-26T12:46:08] Error occured during Enable Pipelines Agent Error
[2024-03-26T12:46:08] System.Management.Automation.RuntimeException: .agent file not found. The agent was not set up correctly.
Execution Error:
######
Number of Tries: 1
Command C:\Packages\Plugins\Microsoft.VisualStudio.Services.TeamServicesAgent\1.31.0.0\enable.cmd of Microsoft.VisualStudio.Services.TeamServicesAgent has exited with Exit code: -1