How to Fix the Managed-to-Federated Domain Error in Update-MgDomain
Question details
The user is encountering an error when attempting to change a managed subdomain to federated authentication using the Update-MgDomain cmdlet.

- Product
- Microsoft Entra ID
- Device & OS
- not provided
- Scenario
- Using Microsoft Graph PowerShell to update the authentication type of a subdomain.
- Observed behavior
- Update-MgDomain fails to apply the federated authentication type because subdomains automatically inherit their authentication settings from the root domain.
Ensure you have Global Administrator privileges in Microsoft Entra ID and the latest version of the Microsoft Graph PowerShell SDK installed before executing domain changes.
Promote the Subdomain to a Root Domain
To apply a different authentication type, you must first break the inheritance by promoting the subdomain to a root domain.
By design, Microsoft Entra ID subdomains inherit the authentication configuration (managed or federated) of their parent root domain. The Update-MgDomain cmdlet cannot override this inheritance directly. Promoting the subdomain effectively isolates it, allowing you to configure its authentication independently.
Open PowerShell as an administrator and run the 'Connect-MgGraph' cmdlet. Ensure you authenticate with an account that has the required directory scopes (e.g., Domain.ReadWrite.All).
Use the appropriate Microsoft Graph endpoint or PowerShell script provided in Microsoft's official documentation to promote your target subdomain to a root domain within your tenant.
Once the domain is successfully promoted and recognized as a root domain, run the 'Update-MgDomain' cmdlet again to change its authentication type from managed to federated.

Manage Your IT Documentation Efficiently with WPS Office
While resolving complex Microsoft Entra ID deployments, you still need a reliable office suite for logging IT scripts, generating reports, and writing technical documentation. WPS Office is a highly compatible, free, and lightweight alternative to Microsoft Office.
- 1. Download the Installer: Visit the official WPS Office website and click the free download button.
- 2. Run the Installation: Open the downloaded installer file and follow the quick setup wizard.
- 3. Start Creating: Launch WPS Office and instantly open your existing Microsoft Office documents to continue working.

Frequently Asked Questions
Why does Microsoft Entra ID force subdomains to inherit authentication types?
Microsoft Entra ID enforces inheritance by default to simplify administration and ensure consistent security policies across a unified namespace. To apply different security or authentication policies, the subdomain must be promoted.
Can I promote a subdomain using the Microsoft Entra admin center UI?
Currently, advanced domain structure changes, such as promoting a managed subdomain to a root domain to change its authentication type, generally require the use of Microsoft Graph API or the Microsoft Graph PowerShell SDK.
Where can I find more help if Update-MgDomain still fails?
If you continue to experience issues after promoting the domain, it is highly recommended to seek assistance on the Microsoft Q&A forums under the Microsoft Graph SDK or Azure Active Directory tags.




