Error |Transfer domain to another Azure account

Veyselddd 1 Reputation point
2020-06-07T00:13:45.947+00:00

I'm going to transfer my domains and I get errors all the time.

9263-1.png

9213-2.png

Azure Active Directory External Identities
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 55,231 Reputation points
    2020-06-08T08:11:20.987+00:00

    Hi @Veyselddd

    • If the domain is federated, you need to convert the domain to standard by Running below cmdlet on the ADFS Server:

    Convert-MsolDomainToStandard -DomainName your-domain.net -SkipUserConversion:$true -PasswordFile C:\pwd.txt

    • If AD Connect is synchronizing users with UPN suffix of your-domain.net, disable directory synchronization by using below cmdlet:

    Set-MsolDirSyncEnabled -EnableDirSync $false

    • Change all UPNs to use your-tenant.onmicrosoft.com domain suffix

    Get-MsolUser -All | foreach {Set-MsolUserPrincipalName -ObjectId $_.ObjectId -NewUserPrincipalName ($_.UserPrincipalName.Split(“@”)[0] + “@your-tenant.onmicrosoft.com”)}

    • If any distribution groups are using your-domain.net in email address, you need to change that to use your-tenant.onmicrosoft.com domain suffix as well:

    Get-DistributionGroup -ResultSize Unlimited | ForEach {Set-DistributionGroup -Identity $_.Name -primarysmtpaddress ($_.primarysmtpaddress.Split(“@”)[0] + “@your-tenant.onmicrosoft.com”)}

    • Run below cmdlet to confirm if no user is using your-domain.net in email address:

    Get-MsolUser -DomainName labhh.com -all

    If any user is still using the custom domain, change/remove that.

    • Now you can try transferring the domain again. Alternatively, you can remove the domain by using below cmdlet and add it to another tenant.

    Remove-MsolDomain -DomainName your-domain.net -Force

    -----------------------------------------------------------------------------------------------------------

    Please do not forget to "Accept the answer" wherever the information provided helps you. This will help others in the community as well.