How to: Secure data in Microsoft Fabric mirrored databases from Azure SQL Managed Instance (Preview)
This guide helps you establish data security in your mirrored Azure SQL Managed Instance database in Microsoft Fabric.
Security requirements
The System Assigned Managed Identity (SAMI) of your Azure SQL Managed Instance needs to be enabled, and must be the primary identity. To configure or verify that the SAMI is enabled, go to your SQL Managed Instance in the Azure portal. Under Security in the resource menu, select Identity. Under System assigned managed identity, select Status to On.
- After enabling the SAMI, if the SAMI is disabled or removed, the mirroring of Azure SQL Managed Instance to Fabric OneLake will fail.
- After enabling the SAMI, if you add a user assigned managed identity (UAMI), it will become the primary identity, replacing the SAMI as primary. This will cause replication to fail. To resolve, remove the UAMI.
Fabric needs to connect to the Azure SQL Managed Instance. For this purpose, create a dedicated database user with limited permissions, to follow the principle of least privilege. For a tutorial, see Tutorial: Configure Microsoft Fabric mirrored databases from Azure SQL Managed Instance (Preview).
Important
Any granular security established in the source database must be re-configured in the mirrored database in Microsoft Fabric. For more information, see SQL granular permissions in Microsoft Fabric.
Data protection features in Microsoft Fabric
You can secure column filters and predicate-based row filters on tables to roles and users in Microsoft Fabric:
You can also mask sensitive data from non-admins using dynamic data masking: