@Carvalho Antunes, Pedro Miguel Welcome to Microsoft Q&A Forum, Thank you for posting your query here!
I understand that you are encountering an issue when calling an Azure Durable Function in their production environment. The error message they received is ConnectionError: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url. The the function works in dev and locally, but not in production, and you are unable to find the root cause of the problem.
Looking at the error message its pretty clear that this issue is related to the failure in establishing the connection due to network issue.
To troubleshoot this issue, follow the below action plan:
- Open the Diagnose and solve problems from your Azure Function portal and select the Diagnostic Tools:
- Select Network Troubleshooter and select each of the options listed here one by one and check if that shows any issues. This should detect any issues on the network side. Please follow the suggestions it lists.
- On a side note, if you have Azure Function with Vnet and Private endpoint integrated, follow the steps listed here.
If none of the above action plan helps, please let me know. I will share the next set of actions and I would be happy to assist you further.
**
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.