Hi @Siv Siri ,
I understand that you are seeing the Adal timeout error in your Entity Framework app on your Azure VM and getting the InnerException:
AdalException: The request has timed out. at ADALNativeWrapper.ADALGetAccessToken
I'm not sure if you have already seen the troubleshooting document for this issue, but this error often occurs access to the Azure Active Directory is blocked by your proxy or firewall.
To resolve this issue, try the following steps:
1) In addition to the outgoing port 1433, open your proxy or firewall for additional URLs or IP ranges. The full range is documented in Troubleshoot Azure AD connectivity
2) Make sure that the proxy server has the required URLs opened.
3) Open *.windows.net
4) Make sure that the bare minimum connection requirements documented in the table are met.
5) Upgrade to ADAL 6.0. 1
It is also worth noting that ADAL support is going away in December, so the recommendation is to migrate to MSAL.
Let me know if this helps.
Marilee
-
If this answer helped resolve your question, please remember to "mark as answer" so that others in the community with similar questions can more easily find a solution.