Can't miss session! The 9 FabCon and SQLCon takeaways the community can't stop talking about. Join us on April 2nd. Register now
Hello
I currently have a setup of a couple functions residing in an Azure Function App that I would like to write data to a SQL Database within Fabric. I have added the SQL Database as a Service Connector within the Function App and when I try to validate the connection, it shows as succesful, however when I try to write data within my function, it seems to always reject my connection. I am currently using the connectionstring provided by the Service Connector in the environment variables of the Function App, but am unsure what I might be forgetting or why the connections keep being rejected. The specific error is 'HYT00 Login Timeout expired.'
I should also note that the Function App is connected to a VNet due to other necessities and uses a Managed Identity for most connections. The functions themselves use the ODBC 18 Driver to setup the connections as well. Am I forgetting something important or what could be the cause of Fabric rejecting my connection attempts?
Thanks in advance!
Solved! Go to Solution.
Hi @Pablo82
Thanks for reaching out to Microsoft Fabric Community Forum.
The 'HYT00 Login Timeout expired.' error usually indicates a network connectivity issue rather than a problem with the connection string or code.
Since your Function App is integrated with a VNet, please verify the following:
Reference :
Integrate SQL database in Microsoft Fabric with Service Connector | Microsoft Learn
Connect to Your SQL Database - Microsoft Fabric | Microsoft Learn
Authentication in SQL database - Microsoft Fabric | Microsoft Learn
Hope this helps!!
Thank You.
Hi @Pablo82 ,
it is possible that you share your Azure Function Code?
I will test your problem.
Best regards
Feel free to leave kudos or accept it as a solution. This will also help other community members.
Hi @Pablo82
We wanted to follow up to check if you’ve had an opportunity to review the previous responses. If you require further assistance, please don’t hesitate to let us know.
Hi @Pablo82
Thanks for reaching out to Microsoft Fabric Community Forum.
The 'HYT00 Login Timeout expired.' error usually indicates a network connectivity issue rather than a problem with the connection string or code.
Since your Function App is integrated with a VNet, please verify the following:
Reference :
Integrate SQL database in Microsoft Fabric with Service Connector | Microsoft Learn
Connect to Your SQL Database - Microsoft Fabric | Microsoft Learn
Authentication in SQL database - Microsoft Fabric | Microsoft Learn
Hope this helps!!
Thank You.
Hello and thank you for the help so far!
I've gone through your recommendations and can confirm that #3 Managed identity access to Fabric SQL Database is correctly configured. I'm not fully sure what is meant at #1 with the managed private endpoint? I currently only see a connecting string in the environment variables which I assume was generated once I setup the database within the service connector. As for #2 I will check with another department for any other authentication limitations in force for the function apps.
Hi
Thanks for checking on the Managed Identity configuration, that’s helpful.
For the networking part, the managed private endpoint refers to a private connectivity setup between your VNet integrated Function App and the Fabric SQL endpoint. If this isn’t configured or approved, the connection may time out (HYT00 Login Timeout expired).
Regarding the NSG / firewall validation with your internal team, could you please share an estimated timeline for when you expect to have an update on this?
I can hereby confirm the solution was found in the firewall settings of the VNet attached to the Function App, thank you very much for the help!
Thank you for the extra information! I will take this with me to our company meeting. I expect more information this week!
| User | Count |
|---|---|
| 19 | |
| 9 | |
| 8 | |
| 7 | |
| 3 |
| User | Count |
|---|---|
| 36 | |
| 30 | |
| 16 | |
| 14 | |
| 12 |