Error when setting up Office 365 setting in AD Manager

Error when setting up Office 365 setting in AD Manager

I set up the Azure AD manager module on the server which AD manager operates on. I followed instructions provided on the page to log in to Azure AD and test connection and all worked. When I then go back to AD Manager and try to connect I get error message (see attachment). My account is set up for Office 365 Administration. What do I need to do to make this work?
                New to ADManager Plus?

                  New to ADSelfService Plus?