adls_account:str="<storage-account-name>"adls_container:str="<container-name>"adls_dir:str="<dir-path>"mount_point:str="/mnt/<mount-path>"client_id=dbutils.secrets.get(scope="<scope-name>",key="adb-client-id")client_secret_id=dbutils.secrets.get(scope="<scope-name>",key="adb-client-secrete-id")tenant_id=dbutils.secrets.get(scope="<scope-name>",key="adb-tenant-id")endpoint:str=f"https://login.microsoftonline.com/{tenant_id}/oauth2/token"ifadls_dir:source:str=f"abfss://{adls_container}@{adls_account}.dfs.core.windows.net/{adls_dir}"else:source:str=f"abfss://{adls_container}@{adls_account}.dfs.core.windows.net"# Connecting using Service Principal secrets and OAuthconfigs:Dict[str,str]={"fs.azure.account.auth.type":"OAuth","fs.azure.account.oauth.provider.type":"org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider","fs.azure.account.oauth2.client.id":client_id,"fs.azure.account.oauth2.client.secret":client_secret_id,"fs.azure.account.oauth2.client.endpoint":endpoint}# Mount ADLS Storage to DBFS only if the directory is not already mountedifnotany(mount.mountPoint==mount_pointformountindbutils.fs.mounts()):dbutils.fs.mount(source=source,mount_point=mount_point,extra_configs=configs)