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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
Pratik_0527
Regular Visitor

Fabric Lakehouse connection Getting Rerouted

Hi All,

 

We are trying to connect to Fabric lakehouse using SQL Endpoint with Oauth and MSAL. We are sending the Fedauth for connection but in the respose we are receiving the ENVCHANGE  and our connection is getting Rerouted after that to a new Endpoint.

1. Is it a expected behaviour? 

2. If not then do we need to send some extra flag/info to make the Fabric server acknowledge the connection request.

 

We are able to connect to SQL database hosted in the same Fabric facility using same code setup. In this case we are receiving the FEDAUTH_INFO token and connecting to the Database successfully. 

 

Can someone guide is on this?

Thanks

6 REPLIES 6
v-prasare
Community Support
Community Support

Hi @Pratik_0527,

As we haven’t heard back from you, we wanted to kindly follow up to check if there is any progress on above mentioned issue. if you got any updates i requet you to please post here and accept as solution. This will help other community members with similar issues find answers easily.

 

 

 

 

Thanks,

Prashanth Are

MS Fabric community support

v-prasare
Community Support
Community Support

Hi,

 

we are looking into it, will post answer once we are done here.

 

 

 

Thanks,

Prashanth Are

MS Fabric community support

Hi @v-prasare ,

 

Thank for reverting, We are stuck at a point and some quick guidance is really appreciated

Hi @Pratik_0527

In the context of Microsoft Fabric, especially when using OAuth and MSAL for authentication, the system might redirect connection to a different endpoint to ensure optimal performance and security. This is particularly true when connecting to the SQL analytics endpoint of a Lakehouse, which is designed to handle SQL queries over Delta tables. The system may reroute connections to balance loads or to direct them to the appropriate compute resources.

 

refer to below docs for more info:

https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-sql-analytics-endpoint

https://learn.microsoft.com/en-us/fabric/data-warehouse/connectivity

 

 

 

Thanks,

Prashanth Are

MS Fabric community support

Thanks for the reply Prashanth,

 

We raised this issue with the Fabric team and currently checking with them on how to handle this rerouting issue and establish the connection.

Thanks for the confirmation here @Pratik_0527 .  please do post any updates here for visibilty on this issue.

Helpful resources

Announcements
May FBC25 Carousel

Fabric Monthly Update - May 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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