Please make sure your application can handle transient failures. Please take a look at this article.
Sometimes that error comes as result of intermittent login failures on specific regions as you can read in this thread. Make sure Azure (here) is not reporting any issues on the region where the database is located. Examine also Resource Health on Azure Portal. It is located on the left vertical panel related to your Azure SQL database.