szymon_dybczak
Esteemed Contributor III

Hi,

The recommended approach is to add Unity Catalog resource to your Databricks App. As per documentation: 

"Add Unity Catalog volumes as Databricks Apps resources so your app can read from and write to files and directories stored in Unity Catalog with governance and access control. Volumes provide persistent storage for unstructured data, such as configuration files, model artifacts, logs, or other file-based data that your app needs."

Here's a step by step tutorial of how to configure it:

Add a Unity Catalog volume resource to a Databricks app - Azure Databricks | Microsoft Learn

When you successfully deploy Volume resource to your databricks apps then the volume path will be expose through environment variable:

szymon_dybczak_0-1763408128757.png

And you can interact with Volumes using standard os python module like they showed in documentation:

Work with files in Unity Catalog volumes | Databricks on AWS

szymon_dybczak_1-1763408209816.png