Hi
I am trying to create mount point in Azure Databricks, but mount point creation is failing with below error message
DBUtils.FS Handler.mount() got an unexpected keyword argument 'extra_config'
I am using following code
def setup_mount(storage_account_name,container_name):
client_id="XXX"
tenant_id="XXX"
client_secret="XXX"
print(1)
configs={"fs.azure.account.auth.type.sasformulaone.dfs.core.windows.net":"OAuth",
"fs.azure.account.oauth.provider.type.sasformulaone.dfs.core.windows.net":"org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider",
"fs.azure.account.oauth2.client.id.sasformulaone.dfs.core.windows.net":f"{client_id}",
"fs.azure.account.oauth2.client.secret.sasformulaone.dfs.core.windows.net":f"{client_secret}",
print(2)
dbutils.fs.mount(
source = f"wasbs://{container_name}@{storage_account_name}.dfs.core.windows.net/",
mount_point = f"/mnt/{storage_account_name}/{container_name}",
xtraconfigs = configs)
print(3)
display(dbutils.fs.mounts())