cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Access azure storage account from databricks notebook using pyspark or SQL

Ambi
New Contributor III

I have a storage account - Azure BLOB Storage

There I had container. Inside the container we had a CSV file. Couldn't read the file using the access Key and Storage account name.

Any idea how to read file using PySpark/SQL? Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions

Atanu
Databricks Employee
Databricks Employee
5 REPLIES 5

Hubert-Dudek
Esteemed Contributor III

@Ambiga Dโ€‹ , How to mount Azure Data Lake Storage - https://community.databricks.com/s/feed/0D53f00001eQGOHCA4

How to mount blob storage (remember to allow network access to storage from your databricks workspace):

configs = {"fs.azure.account.key.YOUR_STORAGE.blob.core.windows.net" : "YOUR_KEY"}
 
dbutils.fs.mount(
  source = "wasbs://YOUR_CONTAINER@YOUR_STORAGE.blob.core.windows.net",
  mount_point = "/mnt/YOUR_FOLDER",
  extra_configs = configs)

Ambi
New Contributor III

@Hubert Dudekโ€‹ , Thank you for the the solution. Couldn't create the private endpoint in the network access. We will work on this and update you.

Hubert-Dudek
Esteemed Contributor III

Hi, have you managed to mount?

Atanu
Databricks Employee
Databricks Employee

@Ambiga Dโ€‹ you need to mount the storage https://docs.databricks.com/data/data-sources/azure/azure-storage.html#mount-azure-blob-storage-cont... you can follow this,thanks.

jose_gonzalez
Databricks Employee
Databricks Employee

Hi @Ambiga Dโ€‹,

Just a friendly follow-up. Did any of our previous replies help you to resolved this issue? Please let us know if you still need help

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group