Hi Rupesh Kumar Mishra ,
Welcome to Microsoft Q&A, Thank you for posting your query.
Azure Databricks is unable to locate the Blob Storage container you're trying to mount.
Below are the steps to mount:
- Check Storage Account and Container Names are correct.
- Container should exist in storage account.
- In your code, you're mixing an access key with Databricks secrets. Instead of using dbutils.secrets.get(). You're already providing the storage_account_key directly, so you don't need to use the secrets function unless your key is stored in the Databricks secret scope.
-
storage_account_name = "rupeshblob001"
container_name = "testcontainer"
mount_point = "/mnt/iotdata"
Use access key directly
storage_account_key = "dxtmnXpJyY/A5CrERQ0Qqj/otBPh0GBBRqGYVbWhSHamxq4uLHtF1Fh3ZrKNU5RGtaItAqCPFx4w+AStIJrj3Q=="
Mount the storage
dbutils.fs.mount(
source = f"wasbs://{container_name}@{storage_account_name}.blob.core.windows.net",
mount_point = mount_point,
extra_configs = {f"fs.azure.account.key.{storage_account_name}.blob.core.windows.net": storage_account_key}
)
- If you've regenerated the storage account keys recently, you may be using an outdated key.
Please refer the below Microsoft Documentation.
https://video2.skills-academy.com/en-us/azure/databricks/dbfs/mounts
Please let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.