Forum Discussion

aComputingChap's avatar
aComputingChap
Copper Contributor
Jul 22, 2024

Cannot remove custom domain

Hi all. 

Hoping for some advice from the community. I've been waiting for MS support for over a month, and it seems with each new technician we talk with, we just go through the same actions, which have been for the most part nothing different than what we had tried prior to raising the support ticket. Escalation options seem to have been exhausted. So, you could probably appreciate that I'm extremely disappointed with the support service so far.

The issue is that we cannot remove a domain from a tenant. The domain is shown as meeting the requirements for removal. We receive a generic error when we attempt to remove the domain from the Console or via Msol (Powershell). When we attempt to remove the domain from AzureAD (Powershell) using Remove-AzureADDomain command, we get an error that states "Details: PropertyName - supportedServices, PropertyErrorCode - DomainSupportedServiceUnsetNotAllowed". The Domain supported services are "SupportedServices : {Email, OfficeCommunicationsOnline, MoeraDomain}".

 

History: When the domain was initially added, it became stuck in a loop between "Setup Incomplete"   and "Domain setup is complete" None of the KB or forum articles resolved this loop. In the end I added the supported services manually using the using the documented Set-AzureAdDomain command. The loop was resolved, and the domain showed as Verified. However users were unable to receive email and we were only able to add txt DNS records.


Our goal is to scrap the original tenant due to the uncertainty of domain tenant health and remove the domain from the tenant to be used in a new tenant, however we are unable to do so as per my earlier documented error. I've attempted to unset the variable trying a multitude of "bracketed null" variations to no avail. 

Any insight into a resolution would be appreciated.

    • aComputingChap's avatar
      aComputingChap
      Copper Contributor
      Hi Kidd Ip, Thanks for your response. See that's the thing, there is nothing that is visible in the portal or using any of the Powershell modules (AzureAD, MSOnline nor Exchange)

      We've even gone to the trouble of making a new Global Admin granting every administration role possible, deleting the old and clearing all deleted users. It's very odd
    • aComputingChap's avatar
      aComputingChap
      Copper Contributor

      Hi KingsleyU. Thanks for your response. Within Entra (GUI) the delete fails with a generic error. "Bad Request, Unable to delete domain". The Remove-AzureAD (Entra powershell) command at least provides us the error. @KingsleyUKingsleyU 

      • KingsleyU's avatar
        KingsleyU
        Brass Contributor

        aComputingChap 

         

        some dependency might be preventing deletion. also, you might be unable to re-add or use the domain in the same tenant. you may provide more details of the error using
        $error | Export-Clixml ./error.xml
        or raise a support ticket for the data protection team to assist.

Resources