Skip to content

Instantly share code, notes, and snippets.

@PeerChristensen
Created November 15, 2021 09:25
Show Gist options
  • Save PeerChristensen/33da8f5d0a272321efecae0c8ee83d4d to your computer and use it in GitHub Desktop.
Save PeerChristensen/33da8f5d0a272321efecae0c8ee83d4d to your computer and use it in GitHub Desktop.
mount blob storage in Databricks
dbutils.fs.mount(
source = "wasbs://<container-name>@<storage-account-name>.blob.core.windows.net",
mount_point = "/mnt/Input/",
extra_configs = {"fs.azure.account.key.<storage-account-name>.blob.core.windows.net":"<access-key>"})
# Find csv files in container
os.chdir(r'/dbfs/mnt/Input')
allFiles = glob.glob("Input/*.csv",recursive=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment