Error when you try to use the New-MSOLDomain cmdlet to add a subdomain to an existing domain: "New-MsolDomain: Unable to add this domain"

Article translations Article translations
Article ID: 2666578 - View products that this article applies to.
Expand all | Collapse all

PROBLEM

You try to add a subdomain to an existing domain in a Microsoft cloud service such as Office 365, Windows Intune, or Windows Azure by using the New-MSOLDomain cmdlet. However, you receive the following error message:
New-MsolDomain: Unable to add this domain. It is a subdomain and its authentication type is different from the authentication type of the root domain.

CAUSE

This issue occurs if you try to use the New-MSOLDomain cmdlet to add a subdomain to an existing domain that's set up for federated authentication. The New-MSOLDomain cmdlet tries to add the subdomain as a standard authentication domain.

SOLUTION

To add a subdomain to a domain that's set up for federated authentication, follow these steps:
  1. Connect to Windows Azure Active Directory (Windows Azure AD) by using Windows PowerShell. For more info, go to the following Microsoft website:
    Connect to Windows Azure AD Using Windows PowerShell
  2. Use the New-MSOLFederatedDomain cmdlet.

    The syntax to add a subdomain is as follows, where <subdomain> is the name of the subdomain that you want to add:
    New-MSOLFederatedDomain -DomainName:<subdomain>

MORE INFORMATION

For more info about how to use Windows PowerShell to manage Windows Azure AD, go to the following Microsoft website:

Still need help? Go to the Office 365 Community website or the Windows Azure Active Directory Forums website.

Properties

Article ID: 2666578 - Last Review: December 11, 2013 - Revision: 13.0
Applies to
  • Windows Azure
  • Microsoft Office 365
  • Microsoft Office 365 for enterprises (pre-upgrade)
  • Microsoft Office 365 for education  (pre-upgrade)
  • CRM Online via Office 365 E Plans
  • Windows Azure Recovery Services
Keywords: 
o365 o365a o365e o365m o365062011 pre-upgrade o365022013 after upgrade KB2666578

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com