0

I am new to azure and databricks, I learned that how to mount blob and utilize but there are few doubts which I have and I did not found any answers to any documentation yet. So please help me to explain these:

dbutils.fs.mount(
  source = "wasbs://<container-name>@<storage-account-name>.blob.core.windows.net",
  mount_point = "/mnt/<mount-name>",
  extra_configs = {"<conf-key>":dbutils.secrets.get(scope = "<scope-name>", key = "<key-name>")})

here "/mnt/<mount-name>" refers to which location, is it some virtual file location which is used to mount and later use it.

Also, what is the need of dbutils.secrets.get.

If anyone can explain it will be great help to my learning.

Thanks.

Ganesa Vijayakumar
  • 2,422
  • 5
  • 28
  • 41
raghav
  • 185
  • 1
  • 2
  • 13

2 Answers2

1

Secrets allow you to store and access sensitive credential information without making them visible in notebooks.

In simple words: To explain it clearly, I have used an example to mount an ADLS Gen2 without secrets and with secrets.

Without secrets?

If you want to share Notebooks on the public forums like (Stackoverflow, MSDN, or GitHub), I need to blur the keys and share with you.

enter image description here

With secrets?

I can share the Notebooks on the public forums without any modifications.

enter image description here

Reference: "Azure Databricks - Secrets".

Hope this helps. Do let us know if you any further queries.


Do click on "Mark as Answer" and Upvote on the post that helps you, this can be beneficial to other community members.

CHEEKATLAPRADEEP
  • 12,191
  • 1
  • 19
  • 42
1

As per my understanding mnt is nothing but a virtual starting point of a directory.
scope-name is a way to connect with your key vault.
For example: https://westeurope.azuredatabricks.net/#secrets/createScope is link to create a scope
key-name is the secret name exist in your key-vault.

Please go through the Link to get some details on this.

venus
  • 1,188
  • 9
  • 18