Sometimes we're used to recieve service request that our customers needs to know the time spent in order to connect to their Azure SQL Database or Managed Instance or simply to check intermittent connections that they could have in their environment.
For these types of situation I would like to suggest to review two PowerShell Script that you could find on this URL that allow to obtain this information.
Enjoy!
Updated Nov 24, 2020
Version 2.0Jose_Manuel_Jurado
Microsoft
Joined November 29, 2018
Azure Database Support Blog
Follow this blog board to get notified when there's new activity