Run Azure self hosted agent as service
Open a Command Prompt as an administrator.
Run the following sc create command to create the service:
sc create my-agent binPath= "C:\Windows\System32\cmd.exe /c C:\agent\run.cmd"
If you want to configure the service to start automatically with ...
hassandevops.com1 min read