If once you tried to connect to managed instance, you got the below error message, this post might help you to fix the issue.
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance