Use az:// and abfs:// protocols to access Azure storage
mainThe az:// and abfs:// protocols allow you to interact with Azure Blob Storage and ADLS Gen2. You can use these protocols with libraries like dask by passing storage_options containing your credentials.
Accepted URI formats:
PROTOCOL://container/path-part/filePROTOCOL://container@account.blob.core.windows.net/path-part/filePROTOCOL://container@account.dfs.core.windows.net/path-part/file
import dask.dataframe as dd
storage_options={'account_name': ACCOUNT_NAME, 'account_key': ACCOUNT_KEY}
# Using abfs protocol
ddf = dd.read_csv('abfs://{CONTAINER}/{FOLDER}/*.csv', storage_options=storage_options)
# Using az protocol
ddf = dd.read_parquet('az://{CONTAINER}/folder.parquet', storage_options=storage_options)