Azure Databricks - Mounts and SecretScope

Gopinath Rajee 656 Reputation points
2022-05-02T00:18:55.75+00:00

All,

display(dbutils.fs.mounts()) fives me the list of mounts and display(dbutils.secrets.listScopes()) gives me the list of secretscopes. How do I get the list of mounts that are associated to a secretscope?

Thanks,
grajee

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,272 questions
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA 90,446 Reputation points
    2022-05-02T09:56:11.357+00:00

    Hello @Gopinath Rajee ,

    Thanks for the question and using MS Q&A platform.

    Unfortunately, you cannot get the list of mounts that are associated to a secret scope.

    Reason: Mounts has no relationship with secret scopes.

    • dbutils.fs.mount() - Mounts the specified source directory into DBFS at the specified mount point.
    • dbutils.secrets.listScopes() - The secrets utility allows you to store and access sensitive credential information without making them visible in notebooks.

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png 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

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.