I can't get databricks to talk to my storage account. Error 403

Dev, Roger (RIS-HBE) 0 Reputation points
2025-06-09T17:46:54.1166667+00:00

I can't get the data bricks to mount my data lake storage. I get error 403 no matter what I do.

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,492 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Chandra Boorla 13,885 Reputation points Microsoft External Staff Moderator
    2025-06-09T18:54:05.5033333+00:00

    @Dev, Roger (RIS-HBE)

    It looks like you're encountering a 403 Forbidden error while trying to mount your Data Lake Storage in Databricks. This usually indicates a permissions or network access issue.

    Here are a few troubleshooting steps that might help you:

    Permissions

    Make sure the identity Databricks is using (such as a Service Principal or managed identity) has the appropriate RBAC role assigned to the storage account or container, like:

    • Storage Blob Data Reader (for read access), or
    • Storage Blob Data Contributor (for read/write access)

    You can assign these roles through the Azure Portal > Storage Account > Access Control (IAM).

    Authentication Configuration

    If you're using OAuth with a Service Principal, double-check:

    • Client ID, tenant ID, and secret are correct
    • The secret hasn’t expired
    • The secret is stored correctly in Databricks Secret Scope
    • You’re using abfss:// in your source path for ADLS Gen2

    Network Restrictions

    If your storage account has firewall rules or private endpoint configurations:

    • Ensure the Databricks workspace’s outbound IP addresses are allowed
    • If using VNet injection, verify private DNS and route settings

    Please refer to the below links for useful insights.

    I hope this information helps. Please do let us know if you have any further queries.

    Kindly consider upvoting the comment if the information provided is helpful. This can assist other community members in resolving similar issues.

    Thank you.


  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Pritam Kabiraj 235 Reputation points Microsoft External Staff Moderator
    2025-06-13T04:51:04.9266667+00:00

    Hi Dev, Roger (RIS-HBE)

    A 403 Forbidden error when trying to mount Azure Data Lake Storage (ADLS) in Databricks typically means permission issues either at the Azure level (IAM, ACLs) or Databricks config level (incorrect credentials or scopes).

    Below is a step-by-step to resolve the issue.

    Approach using Account Key:

    Create mount point using Account Key using below code:

    
    dbutils.fs.mount(
    
      source = "wasbs://<container_name>@<storage_account_name>.blob.core.windows.net",
    
      mount_point = "/mnt/mymount",
    
      extra_configs = {"fs.azure.account.key.<storage_account_name>.blob.core.windows.net": "<account_key>"}
    
    )
    
    

    Use abfss:// if wasbs:// is not working.

    You can get the account key from Access key of your storage account:

    13-1

    Run the above code replacing with your values.

    13-2

    Check if the mounting was executed properly:

    Upload a file in your container and try to fetch from mount point using below code in your notebook:

    
    display(dbutils.fs.ls("/mnt/mymount"))
    
    

    Output should fetch your file as below:

    13-3

    Also try to write a sample dataframe using below code:

    
    data = [("A", 34), ("B", 45), ("C", 29)]
    
    columns = ["Name", "Age"]
    
    df = spark.createDataFrame(data, columns)
    
    df.write.mode("overwrite").parquet("/mnt/mymount/sample_data")
    
    

    Check if the file appears in your mounted storage ___location: 13-4

    Resources : Mount to azure storage

    I hope this information helps. Please do let us know if you have any further queries.

    Kindly consider upvoting the comment if the information provided is helpful. This can assist other community members in resolving similar issues.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.