I have databricks pointing to a storage account in Azure but the region was incorrect. Now I want to change it and point it to a different storage account. I have used the mount option with the code as below
dbutils.fs.mount(
source = "wasbs://" + mountname + "@" + storageAccount + ".blob.core.windows.net",
mount_point = root + mountname ,
extra_configs = {"fs.azure.account.key." + storageAccount + ".blob.core.windows.net":dbutils.secrets.get(scope = "", key = "")})
This executes properly, but once I use %fs ls dbfs:/mnt/ to list the directories, it shows the directories of the old storage account.
Do let me know how I can achieve this if it is possible?