Hello @braxx ,
You are experiencing this AttributeError at line3 because there is no command called saskey = dbutils.secret.get
it should be saskey = dbutils.secrets.get
.
There is no command called
dbutils.secret.get
To mount a Blob Storage container or a folder inside a container, use the following command:
storagename = "chepra"
containername="sampledata"
saskey = dbutils.secrets.get(scope = "azurestorage", key = "azurestoragekey")
dbutils.fs.mount(
source = "wasbs://sampledata@chepra.blob.core.windows.net/",
mount_point = "/mnt/"+ containername +"/",
extra_configs = {"fs.azure.sas." + containername + "." + storagename + ".blob.core.windows.net":""+ saskey +""})
Hope this helps. Do let us know if you any further queries.
------------
Please don’t forget to Accept Answer
and Up-Vote
wherever the information provided helps you, this can be beneficial to other community members.