Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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.
Appreciate any guidance on this.
Thanks!
Solved! Go to Solution.
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.
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.
Hi @Abhishek_MAQ ,
Thanks for reaching out to the Microsoft fabric community forum.
Thanks for your prompt response
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.
Check out the November 2025 Fabric update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!