Today I am very excited to announce that Azure service principal has been added as an authentication type for a set of data sources that can be used in Dataset, Dataflow, Dataflow Gen2 and Datamart.
Azure service principal is a security identity that is application based and can be assigned permissions to access your data sources. Service principals are used to safely connect to data, without a user identity. Learn more about service principals.
SPN authentication type for SQL data source won't work with DQ dataset
Supported data sources
- Azure Synapse analytics
- Azure SQL database
- Azure data Lake gen 2
- Azure data lake
- Azure blob storage
- Web
- Dataverse
- SharePoint online
Note: Service principal authentication is not supported for SQL data source with Direct Query in datasets
How to use service principals to connect to your data in dataflows gen 2
In this example, we will show how you can use service principal to connect to an Azure Data Lake gen 2 through dataflows gen 2. Later in the article we show how you can use service principals in datasets.
Prerequisite
- Create a service principal using the Azure portal.
- Grant permission for the application to have read access on the data source. In the example of data lake, make sure the application has storage blob data reader access.
Connect to your data using Service Principal within dataflows gen
- Navigate to https://app.fabric.microsoft.com/
- Select Azure Data Lake Storage Gen2 as source
- Fill in the URL and select create new connection
- Change Authentication kind to Service Principal
Select_service_principal_as_authentication_type
- Fill in Tenant ID. You can find the tenant ID in the Azure Portal.
Find_tenant_ID_in_Azure_portal
- Fill in the Service principal ID
Find_client_ID_in_Azure_portal
8. Fill in the Service principal key
Service_principal_support_to_connect_to_data_in_Dataflow_Datamart_Dataset_and_Da
- Click Next
How to use service principals to connect to your data in datasets
Prerequisite
- Create a service principal using the Azure portal.[ Create an Azure AD app and service principal in the portal - Microsoft Entra | Microsoft Learn]
- Grant permission for the application to have read access on the data source.
- Have a dataset published to te service.
Connect to data using Service Principal within datasets
- Navigate to https://app.fabric.microsoft.com/
- Navigate to the dataset settings page
Open_dataset_settings_page
- Navigate to the data source credentials and click edit credentials
Service_principal_support_to_connect_to_data_in_Dataflow_Datamart_Dataset_and_Da
Service_principal_support_to_connect_to_data_in_Dataflow_Datamart_Dataset_and_Da
- Fill in Tenant ID. You can find the tenant ID in the Azure Portal.
Find_tenant_ID_in_Azure_portal
- Fill in the Service principal ID
Find_client_ID_in_Azure_portal
- Fill in the Service principal key
Service_principal_support_to_connect_to_data_in_Dataflow_Datamart_Dataset_and_Da
- Click Sign in
Other resources
- Join the Fabric community to post your questions, share your feedback, and learn from others.
- Visit Microsoft Fabric Ideas to submit feedback and suggestions for improvements and vote on your peers' ideas!
- Check our Known Issues page for up to date on product fixes!
Have any questions or feedback? Leave a comment below!