It gives error
[RequestId=5e57b66f-b69f-4e8b-8706-3fe5baeb77a0 ErrorClass=METASTORE_DOES_NOT_EXIST] No metastore assigned for the current workspace.
using the following code
spark.conf.set(
"fs.azure.account.key.mystorageaccount.dfs.core.windows.net",
dbutils.secrets.get(scope="keyvault-secret-scope2", key="ADLS-GEN2-SECRET-KEY"))
dbutils.fs.ls("abfss://containername@mystorageaccount.dfs.core.windows.net/")
mystorageaccount: ADLS Gen2 account name
containername: Container name
scope="keyvault-secret-scope2" : scope created in Azure Databricks with Manage "All users"
key="ADLS-GEN2-SECRET-KEY" : secret in Azure key vault, having the ADLS Gen2 access key