Welcome to a journey where we explore the integration of Azure Databricks with Microsoft Fabric, focusing on the mirroring capabilities that can enhance your data management and analytics experience. If you’re wondering whether to use a shortcut or mirror your data, you’re not alone. Let’s dive into the details!
Understanding the Basics
Recently, while working on a lake house, I realized I needed more product data but didn’t have direct access. So, I reached out to my team, who informed me they process that data using Azure Databricks. The initial suggestion was to export and import the data, but I quickly pointed out that with Microsoft Fabric, I could mirror Azure Databricks directly, given the right prerequisites.
Here’s what you need to know: your Azure Databricks must be registered with Unity Catalog, which is the first requirement. Once that’s set, you can leverage the mirroring feature in Microsoft Fabric to access your data seamlessly.

Setting Up the Mirroring
Once you’ve confirmed that your Azure Databricks workspace meets the necessary prerequisites, you can set up the mirror. Here are the key steps:
- Ensure you have the EXTERNAL USE SCHEMA privilege on the schema containing the tables you want to mirror.
- Enable the preview feature for mirrored Azure Databricks catalogs in your tenant settings.
- Confirm that your Azure Databricks workspace isn’t behind a private endpoint or firewall.
After ensuring all prerequisites are in place, head over to Microsoft Fabric, create a new item, and select Mirrored Azure Databricks Catalog. The connection string is straightforward; copy it from Azure Databricks and paste it into Fabric. The system will automatically recognize the connection.

Choosing Tables and Syncing
When you’re prompted, select the catalogs and schemas you want to include. For this demo, I chose a couple of tables from the product management schema. It’s essential to note that only the schema will be copied over to Fabric; data will be accessed via shortcuts, meaning no actual data movement occurs from Azure Databricks to Fabric.
By enabling the option to automatically sync future catalog changes, any new tables added to your selected schema will also be reflected in your mirrored database in Fabric.

Querying the Mirrored Data
Once the mirror is set up, you can start querying the data directly from Microsoft Fabric. For example, if I want to query the product data, I’d execute a simple SQL command like:
SELECT * FROM pm.products;
This allows me to run queries against the data housed in Azure Databricks without needing to import or replicate it physically. The beauty of using shortcuts means that I can access real-time data effortlessly.

Handling Schema Changes
One of the most significant advantages of mirroring is its seamless handling of schema changes. If the team managing the Azure Databricks data adds a new column or makes any schema adjustments, these changes automatically reflect in the mirrored tables in Fabric. You don’t need to intervene; the system takes care of it.

Managing Data Changes
Now, what happens when there’s an update in the data? If your data undergoes changes in Azure Databricks, those changes will also be mirrored in Microsoft Fabric. This means you can always query the latest data without manual updates. For instance, if I run an update statement in Databricks and refresh my view in Fabric, I’ll see the updated information immediately.

Real-World Applications of Mirroring
The mirroring capabilities of Azure Databricks and Microsoft Fabric can significantly impact various business scenarios. Here are a few applications:
- Data Analysis: Analysts can access and analyze large datasets without the need for data duplication, enabling more efficient reporting and insights.
- Data Governance: Organizations can maintain strict control over their data while still allowing teams to access the necessary information for their projects.
- Collaboration: Teams can work together more effectively by sharing access to the same datasets without the complications of data management.

Conclusion
In summary, the integration of Azure Databricks with Microsoft Fabric through mirroring presents a powerful solution for organizations looking to streamline their data analytics processes. By leveraging mirroring capabilities, businesses can ensure they are always working with the most up-to-date data while enjoying the benefits of a unified analytics platform.
As organizations navigate the complexities of data management, tools like Microsoft Fabric will be essential in simplifying and enhancing data operations. For those interested in boosting their data skills, consider exploring Power BI training to further enhance your capabilities in this space.


