Hello anonymous user,
Thanks for the question and using MS Q&A platform.
From the error message it clearly says that - "com.microsoft.spark.notebook.msutils.InvalidCredentialsException: Please provide at least one of LinkedService name, accountKey or sasToken for authorization"
Currently these are the three authentication types are supported when trigger mount operation, via LinkeService, via accountKey and via sastoken.
Method1: Using Linked Service
mssparkutils.fs.mount(
"abfss://<FILESYSTEMNAME>@<STORAGENAME>.dfs.core.windows.net/", #ADLS GEN 2 PATH
"</MOUNTNAME>", #Mount Point Name
{ "linkedService" : "<REPLACE LINKED SERVICE NAME>"}
)
Method2: Using SAS Token
mssparkutils.fs.mount(
"abfss://<FILESYSTEMNAME>@<STORAGENAME>.dfs.core.windows.net/", #ADLS GEN 2 PATH
"</MOUNTNAME>", #Mount Point Name
{ "sasToken" : "<REPLACE SAS TOKEN KEY>"}
)
Method3: Using Account Key
mssparkutils.fs.mount(
"abfss://<FILESYSTEMNAME>@<STORAGENAME>.dfs.core.windows.net/", #ADLS GEN 2 PATH
"</MOUNTNAME>", #Mount Point Name
{ "accountKey" : "<REPLACE AACOUNT KEY>"}
)
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on or upvote button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators