Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified as a Fabric Data Engineer: Check your eligibility for a 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700. Get started

Reply
g3kuser
Frequent Visitor

Connecting to Fabric database using workspace identity

Hi,

I am trying connect to Fabric Database from Notebook by using pyodbc and jdbc library. I was able to successfully authenticate via Service Principal that required me to set secret. Our infra would prefer to use Workspace Managed Identity as authentication so as to avoid secret rotations. I tried different options but getting error on Authentication option as ActiveDirectoryManagedIdentity,ActiveDirectoryMSI but got error as Unknown realm choice.

I noticed the options allowed in Fabric database to include only 

ActiveDirectoryInteractive, ActiveDirectoryServicePrincipal, or ActiveDirectoryPassword.

Authentication in SQL database - Microsoft Fabric | Microsoft Learn

 

Any solution for usage of workspace identity?

 

Thanks,

 

Gayatri

1 ACCEPTED SOLUTION
v-ssriganesh
Community Support
Community Support

Hi @g3kuser,

Thank you for reaching out to the Microsoft fabric Community Forum.

We understand you’re looking to connect to a Fabric Database from a Notebook using Workspace Managed Identity for authentication, as this would better align with your infrastructure's preference to avoid secret rotations.

At the moment, Workspace Managed Identity authentication is primarily supported for accessing external data sources (e.g., Azure Data Lake Storage Gen2 and other Microsoft Entra (formerly Azure AD)-enabled services).

Using Workspace Identity to authenticate directly with Fabric databases (e.g., Data Warehouse, Lakehouse SQL Endpoint) is not currently supported.

For connecting to Fabric databases, the currently supported authentication methods are:

  • ActiveDirectoryInteractive
  • ActiveDirectoryServicePrincipal
  • ActiveDirectoryPassword

For reference:
Workspace identity - Microsoft Fabric | Microsoft Learn
Authenticate with Microsoft Fabric workspace identity - Microsoft Fabric | Microsoft Learn

We recognize that support for Workspace Identity in database connections would be a valuable feature. We encourage you to submit your feedback or upvote existing ideas in the Fabric Ideas forum. Customer feedback is crucial in shaping future updates, and your input could help prioritize this feature in upcoming releases. Below is the link for the Fabric Ideas forum:
Home

If this helps, then please Accept it as a solution and dropping a "Kudos" so other members can find it more easily.
Thank you.

View solution in original post

1 REPLY 1
v-ssriganesh
Community Support
Community Support

Hi @g3kuser,

Thank you for reaching out to the Microsoft fabric Community Forum.

We understand you’re looking to connect to a Fabric Database from a Notebook using Workspace Managed Identity for authentication, as this would better align with your infrastructure's preference to avoid secret rotations.

At the moment, Workspace Managed Identity authentication is primarily supported for accessing external data sources (e.g., Azure Data Lake Storage Gen2 and other Microsoft Entra (formerly Azure AD)-enabled services).

Using Workspace Identity to authenticate directly with Fabric databases (e.g., Data Warehouse, Lakehouse SQL Endpoint) is not currently supported.

For connecting to Fabric databases, the currently supported authentication methods are:

  • ActiveDirectoryInteractive
  • ActiveDirectoryServicePrincipal
  • ActiveDirectoryPassword

For reference:
Workspace identity - Microsoft Fabric | Microsoft Learn
Authenticate with Microsoft Fabric workspace identity - Microsoft Fabric | Microsoft Learn

We recognize that support for Workspace Identity in database connections would be a valuable feature. We encourage you to submit your feedback or upvote existing ideas in the Fabric Ideas forum. Customer feedback is crucial in shaping future updates, and your input could help prioritize this feature in upcoming releases. Below is the link for the Fabric Ideas forum:
Home

If this helps, then please Accept it as a solution and dropping a "Kudos" so other members can find it more easily.
Thank you.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

JanFabricDE_carousel

Fabric Monthly Update - January 2025

Explore the power of Python Notebooks in Fabric!

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.