Navigate to Microsoft Online Services Module by going to Start-> All Programs -> Microsoft Online Services
Right click on Microsoft Online Services Module for Windows PowerShell and click Run as administrator
Run Connect-MsolService -Credential $cred. This cmdlet connects PowerShell session to your Office 365 account.
Now that you have converted configured your domain for identity federation, the next step for Single Sign-on is to set up Active Directory synchronization.