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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Abhishek_MAQ
Microsoft Employee
Microsoft Employee

Using Managed Identity for Fabric Lakehouse SQL Analytics Authentication

Hello,

I was able to connect to the Fabric Lakehouse SQL Analytics endpoint using pyodbc along with DefaultAzureCredential for authentication in local. However, after switching to Managed Identity and deploying the solution on an Azure Container App, the authentication no longer works.

  • Is Managed Identity currently supported for authenticating to Fabric Lakehouse?
  • If not, what are the recommended alternatives or best practices for secure authentication in this scenario?

Appreciate any guidance on this.

Thanks!

1 ACCEPTED SOLUTION
Shahid12523
Community Champion
Community Champion

Managed Identity is not yet supported for connecting from Azure apps (like Container Apps) to Fabric Lakehouse SQL Analytics.

Use Service Principal (SPN) with Microsoft Entra ID instead:

Register an SPN in Entra ID.

Enable “Service principals can use Fabric APIs” in tenant settings.

Grant the SPN workspace + item-level access (e.g., “Read all SQL endpoint data”).

Connect with Authentication=ActiveDirectoryServicePrincipal.

 

👉 Managed Identity works in Data Factory/Synapse pipelines, but for app workloads, SPN is the recommended secure option.

Shahed Shaikh

View solution in original post

4 REPLIES 4
v-lgarikapat
Community Support
Community Support

Hi @Abhishek_MAQ ,

Thanks for reaching out to the Microsoft fabric community forum.

@Shahid12523 

Thanks for your prompt response

@Abhishek_MAQ 

 

I wanted to follow up and confirm whether you’ve had the opportunity to review the information provided by @Shahid12523   If you have any questions or need further clarification, please don’t hesitate to reach out.

 

We truly appreciate your continued engagement and thank you for being an active and valued member of the community.

If you're still experiencing any challenges, please don’t hesitate to reach out  we’d be more than happy to assist you further.

We look forward to hearing from you.

Best regards,
Lakshmi

Hi @Abhishek_MAQ ,

 

We’d like to confirm whether your issue has been successfully resolved. If you still have any questions or need further assistance, please don’t hesitate to reach out. We’re more than happy to continue supporting you.

 

We appreciate your engagement and thank you for being an active part of the community.


Best Regards,
Lakshmi.

 

Hi @Abhishek_MAQ ,

We’d like to confirm whether your issue has been successfully resolved. If you still have any questions or need further assistance, please don’t hesitate to reach out. We’re more than happy to continue supporting you.

 

We appreciate your engagement and thank you for being an active part of the community.


Best Regards,
Lakshmi.

Shahid12523
Community Champion
Community Champion

Managed Identity is not yet supported for connecting from Azure apps (like Container Apps) to Fabric Lakehouse SQL Analytics.

Use Service Principal (SPN) with Microsoft Entra ID instead:

Register an SPN in Entra ID.

Enable “Service principals can use Fabric APIs” in tenant settings.

Grant the SPN workspace + item-level access (e.g., “Read all SQL endpoint data”).

Connect with Authentication=ActiveDirectoryServicePrincipal.

 

👉 Managed Identity works in Data Factory/Synapse pipelines, but for app workloads, SPN is the recommended secure option.

Shahed Shaikh

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Fabric Update Carousel

Fabric Monthly Update - September 2025

Check out the September 2025 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.