Now open Windows Azure Active Directory Module for Windows PoweShell and connect with Office 365.
$livecred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
Set-ExecutionPolicy RemoteSigned -Force
Import-PSSession $Session
Connect-MsolService -Credential $livecred
Enter with the account @*.onmicrosoft.com
Ok, you are in your domain into PowerShell.
Now you need set the ADFS Server.
Set-MsolADFSContext –Computer computer_name
OK, then, you will convert your domain. I understand who you already create your tenant and active your domain. I will use the option -SupportMultipleDomain, if in the future, I can federated more domains in the same tenant.
Convert-MsolDomainToFederated –DomainName your_domain -SupportMultipleDomain
You will receive the message: Sucessfully updated ‘your_domain’ domain
I used run
Update-MsolFederatedDomain -DomainName your_domain -SupportMultipleDomain
So, I will check with the follow command:
Get-MsolDomain –DomainName your_domain
In Authentication, will Federated.
Release your session:
Remove-PSSession $Session
//