title: How to resolve no access in Azure Data Factory 2 to Azure DevOps Repository
body: <p>I am facing an issue on Azure Data Factory when I try to access the Azure DevOps Git Repository that I configured. The error message is: "Invalid GIT configuration. You need to gain access to the repository before you can publish any changes. Details: Authentication error - you do not have access to the provided Azure DevOps account."</p>
  
  <p>I am using the same account on both DevOps and Data Factory. My Azure portal access is "Contributor" at the subscription level and my DevOps role is Project Administrator on the project. </p>
  
  <p>Regards,
  Tania</p>
  
  <p>I've tried various combinations of creating the repository as new from Data Factory as well as using an existing one created (by myself) in Azure DevOps.</p>
  
  <p>From <a href="https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles</a> in the Open Feedback items a user mentions that "the Build-in role Data Factory Contributor this is not in Allow part:
  Action:Microsoft.DataFactory/locations/configureFactoryRepo/action" 
  I investigated the the contributor role and it appears to have the Action allowed as "Read" ?</p>
  
  <p><a href="https://i.stack.imgur.com/Tgsk8.png" rel="nofollow noreferrer">ADF Repo Settings</a></p>
  
  <p><a href="https://i.stack.imgur.com/4NC3T.png" rel="nofollow noreferrer">ADF Repo Error</a></p>