Unable to delete domain name (Azure)

Maduwanth Harish 0 Reputation points
2024-06-12T14:55:49.89+00:00

I'm attempting to remove the verified on.microsoft.com domain, but I keep encountering a "Bad Request" error. My default domain and fallback domain are different, yet I still can't delete this domain. I've tried every possible method, including using PowerShell and Graph Explorer, but I continue to receive the same error. Please Help me resolve this issue.error

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,472 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Miguel Gonçalves | AVANADE 961 Reputation points
    2024-06-12T16:27:59.1366667+00:00

    HI Maduwanth,

    It appears that the domain deletion process encounters an error because the domain is still enabled for email.

    [ATTENTION: this on.microsoft.com is a default domain that can be used for systems comunication. Be carefull]

    Check for Active Users or Services Associated with the Domain

    If applies, remove the domain from ‘accepted domains’ for Exchange "Remove-AcceptedDomain -Identity <DomainName>"

    0 comments No comments

  2. Marcin Policht 17,365 Reputation points MVP
    2024-06-12T16:53:28.48+00:00

    This is not supported - as per https://learn.microsoft.com/en-us/answers/questions/798380/is-it-possible-to-remove-extra-onmicrosoft-com-dom


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    0 comments No comments

  3. Akhilesh 7,070 Reputation points Microsoft Vendor
    2024-06-13T14:09:17.7166667+00:00

    Hi @Maduwanth Harish

    Thank you for post!

    I understand that you are unable to delete the domain name (.onmicrosoft.com) because the initial .onmicrosoft.com domain name that comes with every Entra ID which is not possible to change or delete.

    You can add a custom domain name to your Entra ID tenant and make it the primary domain name.

    Reference: Add your custom domain name to your tenant.

    Hope this helps. Do let us know if you any further queries.

    Thanks,

    Akhilesh.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.