Forum Discussion

fr33zypop's avatar
fr33zypop
Copper Contributor
Feb 14, 2024

Adding Subdomain to Entra ID but gets set automatically as federated.

I have a customer that is trying to added a subdomain (subdomain.contoso.com) to entra id for cloud only user accounts. Curranty they have the root domain (contoso.com) syncing from onprem AD that is federated but this subdomain should not be tied back to that domain. 

 

I have tried these scripts with only errors. 

 

Set-MsolDomainAuthentication -DomainName subdomain.domain.edu -Authentication managed.

***********

Connect-AzureAD

New-AzureADDomain -Name subdomain.domain.edu

 

Connect-MgGraph -Scopes Domain.ReadWrite.All

Update-MgDomain -DomainId subdomain.domain.edu -BodyParameter @{isRoot=$true} 

 

ERROR - Update-MgDomain : isRoot property is read-only.

***********

Any assistance with this would be appreciated.

Resources