lakehouse.databricks.common.create_mount
- lakehouse.databricks.common.create_mount(spark, mounting_point, container, storage_account_name, scope_name, service_credential_key_name, service_credential_secret_name, service_credential_directory_key_name, folder='')
A function to create a mount point within the Databricks Cluster
Parameters
- sparkspark context
spark context passed from the calling spark instance
- mounting_pointstring
the name of the mounting point to be created
- containerstring
the azure storage account container
- storage_account_namestring
the azure storage account name
- scope_namestring
The name of the databricks secret scope
- service_credential_key_namestring
The name of the key vault secret that contains the service principal id
- service_credential_secret_namestring
The name of the key vault secret that contains the service principal secret
- service_credential_directory_key_namestring
The name of the key vault secret that contains the azure active directory id
- folderstring
the folder root within the container where the mount with start, default = ''
Returns
- In the case of an Exception a JSON object describing the error is returned
{"error-message": f"error creating {mounting_point}- {Exception}"}