title: How do I resolve a failure to start service to run private build agent on Azure running Linux VM
body: <p>I have installed and run interactively a private build agent for Azure DevOps on Linux.</p>
  
  <p>However, when attempting to follow documentation to setup as a service it's failing to run.  It usually completes the install successfully.  But, starting the service always returns an error.</p>
  
  <p><strong>Configuration</strong>: New VM running Ubuntu 18.04LTS, secured with AAD and JIT, logged in with VM Admin permissions.</p>
  
  <p><strong>Error</strong>:</p>
  
  <pre class="lang-sh prettyprint-override"><code>$ sudo ./svc.sh install
  Creating launch agent in /etc/systemd/system/vsts.agent.xxx.linux-agent-01.service
  Run as user: xxx@microsoft.com
  Run as uid: 1613914
  gid: 1613914
  $ sudo ./svc.sh start
  Failed to start vsts.agent.xxx.linux-agent-01.service: Unit vsts.agent.xxx.linux-agent-01.service is not loaded properly: Exec format error.
  See system logs and 'systemctl status vsts.agent.xxx.linux-agent-01.service' for details.
  Failed: failed to start vsts.agent.xxx.linux-agent-01.service
  $
  </code></pre>
  
  <p>When attempting to run I get this:</p>
  
  <pre class="lang-sh prettyprint-override"><code>3$ sudo ./svc.sh status
  
  /etc/systemd/system/vsts.agent.edgewebui.LinuxAgent03.service
  ● vsts.agent.edgewebui.LinuxAgent03.service - VSTS Agent (edgewebui.LinuxAgent03)
     Loaded: error (Reason: Exec format error)
     Active: inactive (dead)
  
  Feb 28 18:59:18 build-agent-linux systemd[1]: /etc/systemd/system/vsts.agent.edgewebui.LinuxAgent03.service:7: Invalid user/group…osoft.com
  Hint: Some lines were ellipsized, use -l to show in full.
  </code></pre>
  
  <p>Any suggestions on why this isn't working.  </p>