title: Can't connect to ADLS Gen2 from Azure Data Factory
body: <p>I create a linked server to Azure Data Lake Storage Gen2 and test connection WITH file path is working.</p>
  <p>After that I try to create a pipeline but get an error that I can't connect to the same file I tested the connection with.</p>
  <p><a href="https://i.stack.imgur.com/bPSI7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bPSI7.png" alt="linked server test OK" /></a></p>
  <p><a href="https://i.stack.imgur.com/KD9MG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KD9MG.png" alt="pipeline connect to same path fail" /></a></p>
  <p>Full error msg:</p>
  <blockquote>
  <p>ADLS Gen2 operation failed for: Storage operation '' on container 'cseo' and path 'standa...' get failed with 'Operation returned an invalid status code 'Forbidden''.
  Possible root causes: (1). It's possible because the service principal or managed identity don't have enough permission to access the data. (2).
  Please check storage network setting whether public network access is disabled. If disabled, use Managed Virtual Network IR and create Private Endpoint to access.
  <a href="https://docs.microsoft.com/en-us/azure/data-factory/managed-virtual-network-private-endpoint" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/data-factory/managed-virtual-network-private-endpoint</a>. <a href="https://docs.microsoft.com/en-us/azure/data-factory/tutorial-copy-data-portal-private" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/data-factory/tutorial-copy-data-portal-private</a>
  (3). It's possible because some IP address ranges of Azure Data Factory are not allowed by your Azure Storage firewall settings.
  Azure Data Factory IP ranges please refer <a href="https://docs.microsoft.com/en-us/azure/data-factory/azure-integration-runtime-ip-addresses." rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/data-factory/azure-integration-runtime-ip-addresses.</a>.
  Account: 'cseo...'. FileSystem: 'cseo'. Path: 'standar...'. ErrorCode: 'AuthorizationPermissionMismatch'.
  Message: 'This request is not authorized to perform this operation using this permission.'. RequestId: '0b94...'. TimeStamp: '... GMT'..
  Operation returned an invalid status code 'Forbidden'
  Activity ID: 29....</p>
  </blockquote>
  <p>According to <a href="https://stackoverflow.com/questions/69769292/error-when-i-am-trying-to-connect-between-azure-data-factory-and-azure-data-lake">another answer</a> I should be getting at leat contributor access but that was <strong>denied</strong> by the owner of the Data Lake.</p>
  <p>From Databricks the same account works and I can access the table.</p>