Must not run with Sudo issue on AzureDevOps agent in Linux machines

This error occurs when we are trying to install an AzureDevOps agent using root as user and also for some other issues

Apply the below fix in the code below which will help you to solve this issue

export AGENT_ALLOW_RUNASROOT="1"

Once the above command is run you will able to run ./config.sh script again to install the agents in your linux machine

And you will get a message like the one shown below


Shan

I am an Azure DevOps expert who has worked on TFS/Azure DevOps from 2012 as part of my job.