title: Error when trying to mount a directory on Azure Data Lake from Azure Databricks
body: <p>There are many people having problems with Mounting an Azure DataLake Container, and this problem can have multiple root causes.</p>
  <p>configs = {&quot;fs.azure.account.auth.type&quot;: &quot;OAuth&quot;,
  &quot;fs.azure.account.oauth.provider.type&quot;: &quot;org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider&quot;,
  &quot;fs.azure.account.oauth2.client.id&quot;: &quot;client_id&quot;,
  &quot;fs.azure.account.oauth2.client.secret&quot;: &quot;secret_value&quot;,
  &quot;fs.azure.account.oauth2.client.endpoint&quot;: &quot;https://login.microsoftonline.com/tenant_id/oauth2/token&quot;}</p>
  <p>dbutils.fs.mount(
  source = f&quot;abfss://aggregated@{account_name}.dfs.core.windows.net/&quot;,
  mount_point = &quot;/mnt/aggregated&quot;,
  extra_configs = configs)</p>
  <p>Please be aware of the error message.</p>
  <p>ExecutionError: An error occurred while calling o487.mount.
  : Operation failed: &quot;This request is not authorized to perform this operation.&quot;, 403, HEAD, https://&lt;account_name&gt;.dfs.core.windows.net/aggregated/?upn=false&amp;action=getAccessControl&amp;timeout=90
  at shaded.databricks.azurebfs.org.apache.hadoop.fs.azurebfs.services.AbfsRestOperation.execute(AbfsRestOperation.java:246)
  at shaded.databricks.azurebfs.org.apache.hadoop.fs.azurebfs.services.AbfsClient.getAclStatus(AbfsClient.java:955)
  at shaded.databricks.azurebfs.org.apache.hadoop.fs.azurebfs.services.AbfsClient.getAclStatus(AbfsClient.java:937)
  at shaded.databricks.azurebfs.org.apache.hadoop.fs.azurebfs.AzureBlobFileSystemStore.getFileStatus(AzureBlobFileSystemStore.java:893)</p>