Unable to delete Azure AD tenant even though there are no errors showing

skim 21 Reputation points
2022-08-11T23:42:56.307+00:00

I have an Azure AD tenant that I would like to delete however I am unable to do so even though there are no errors showing

230594-1.png
230570-2.png

there are no logs or further error messages i can look into.

has anyone encountered this problem or know where I can look further into?

thanks

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

Accepted answer
  1. JamesTran-MSFT 36,351 Reputation points Microsoft Employee
    2022-08-12T20:22:21.477+00:00

    @skim
    Thank you for your post!

    Based off your issue, we had a few similar threads which I'll share the solution below.

    Troubleshooting Steps:
    Even though all of your checks have passed, can you make sure you don't have any Enterprise Apps that are somehow being missed by the Tenant Deletion process?

    • On your windows desktop search, Open PowerShell ISE as Administrator
    • Install the needed module, type at promt: Install-Module MSOnline
    • Then: Connect-msolservice
    • Input a global admin’s credentials for your azure tenant. (eg. User: admin@[organization].onMicrosoft.com + password)
    • If we have any output please run the following command at the prompt: Get-msolserviceprincipal | remove-msolserviceprincipal (Note you will see a lot of red output on this command, these are applications that cannot be deleted from the tenant, but will not stop you from doing so.)
    • Log in back to the Azure tenant, and try one more time to delete it.

    Additional Links:
    Unable to Delete Tenant
    Can't delete tenant, all checks are passed - Similar issue which was solved by deleting Enterprise Apps
    Delete a Tenant - Tenant can't be deleted due to Enterprise Apps

    If you're still having issues, please let me know.
    Thank you for your time and patience throughout this issue.

    ----------

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. P3 James Bates 1 Reputation point
    2022-10-18T16:38:58.39+00:00

    You also cannot delete a Tenant if your 'last account' is an Invited Account. Even if it has Global Administrator Access.

    1. You will need to create an new user
    2. Give the new user the Global Administrator role
    3. Login in as that user.
    4. Give that user the access to delete.
    5. Delete the invited user leaving only the one you are logged in with.
    6. Then you can Delete the tenant.
    0 comments No comments