MSOnline is the version 1 module for connecting to Azure. Later version 2 is called Azure Active Directory. Both can be used to connect to Azure, but their command differs. For more information you can check here. To use the module we have to install it not already installed.
Once installed, you can connect using the below command, and it will work with MFA, and wont need separate application like exchange.
- KB170056