title: Cannot access Azure Devops Git repo from release pipeline using Service Principal
body: <p>We're creating Terraform modules for Azure resources;  we've given each it's own repo within a project, but when trying to call the module in the release pipeline, we get a time out, or an error 128. </p>
  
  <p>This works outside the pipeline as a user with rights to deploy, however we're using a service principal to deploy within the release pipeline, which also has the correct rights;  It looks like the issue is that Service Principals have no rights in Azure DevOps. </p>
  
  <p>We've tried initially on a hosted build agent, but have just deployed our own private agent should we need to store any permanent information. </p>
  
  <p>module "rg" {
    source    = "git::<a href="https://dev.azure.com/" rel="nofollow noreferrer">https://dev.azure.com/</a>*****/Terraform/_git/azmodresourcegroup//module?ref=v1.0"
  }</p>
  
  <p>it looks like a rights issue, but can anyone point me at a workaround for this?</p>
  
  <p>The error is either : 
  C:\Program Files\Git\bin\git.exe exited with 128: Cloning into '.terraform\modules\</p>
  
  <p>or a lengthy (30 mins) timeout.</p>