I can´t add a new subdomain in Office365

I 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”

I ran the following cmdlet from my ADFS server on premises.

Set-MsolADFSContext –Computer (FQDN of my ADFS server)
Then I ran the following cmdlet
New-MSOLFederatedDomain -DomainName i.in.com


2 Comments on “I can´t add a new subdomain in Office365”

  1. DEB says:

    Really useful!
    We got a real pain in the arse with sub-domains! Sure this make my day!!


  2. junaid says:

    I was able to add a subdomain by using the command – New-Msoldomain -Name subdomain.contoso.com -Authentication Verified


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s