Here is a cool tool for trubleshooting connection to Azure AD. https://aadap-portcheck.connectorporttest.msappproxy.net/