I can´t add a new subdomain in Office365
Posted: October 29, 2015 Filed under: Exchange 2013, Office 365 1 CommentI tryed today to add a new subdomain in Office 365 and I get the following error:
“i.in.com is a subdomain of a domain that was added by using the Microsoft Online Services
Module for Windows PowerShell so you´ll need to also use Windows PowerShell to add i.in.com
To Microsoft Online Services”
When I try to add i.in.com subdomain from Windows Powershell i get the following error.
“Unable to add this domain. It is a subdomain and its authentication type is different from
the authentication type of the root domain”
New-MsolDomain -Name i.in.com
New-MSOLFederatedDomain -DomainName i.in.com
“Failed to connect to Active Directory Federation Services 2.0 on the local machine.
Please try running Set-MsolADFSContext before running this command again”
Solution:
I ran the following cmdlet from my ADFS server on premises.
Connect-Msolservice
Set-MsolADFSContext –Computer (FQDN of my ADFS server)
Then I ran the following cmdlet
New-MSOLFederatedDomain -DomainName i.in.com
Really useful!
We got a real pain in the arse with sub-domains! Sure this make my day!!
😀
LikeLike