Can't delete Azure AD Tenant

josh rpg 0 Reputation points
2023-09-10T00:36:59.2766667+00:00

I cannot delete a Azure AD tenant despite having all checks passed and deleting all service principals and disabled all the principals I can.

Yes I have followed everything in this article multiple times.

User's image

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

1 answer

Sort by: Most helpful
  1. Dillon Silzer 57,491 Reputation points
    2023-09-10T01:33:20.0366667+00:00

    Troubleshooting Steps:

    To ensure a thorough troubleshooting process, please follow these steps:

    Step 1: Verify Enterprise Apps Check if there are any Enterprise Apps that might not have been identified by the Tenant Deletion process. Even if all your checks have passed, it's essential to be thorough.

    Step 2: Open PowerShell ISE as Administrator On your Windows desktop, open PowerShell ISE with administrative privileges.

    Step 3: Install the Required Module In the PowerShell ISE, type the following command and press Enter to install the necessary module:

    Install-Module MSOnline
    

    Step 4: Connect to MSOnline Enter the following command to connect to MSOnline:

    Connect-MsolService
    

    Step 5: Provide Global Admin Credentials Input the credentials of a global administrator for your Azure tenant. For example:

    • User: admin@[organization].onMicrosoft.com
    • Password: [password]

    Step 6: Check for Service Principals If there is any output, run the following command to list and remove service principals:

    Get-MsolServicePrincipal | Remove-MsolServicePrincipal
    

    Note: You may see a lot of red output, which indicates applications that cannot be deleted from the tenant but won't obstruct the deletion process.

    Step 7: Log Back Into Azure Tenant Log back into your Azure tenant.

    Step 8: Retry Deletion Try to delete the Azure tenant once more.

    These steps should help you ensure that no lingering Enterprise Apps or service principals are preventing the deletion of your Azure tenant.

    Cited from https://learn.microsoft.com/en-us/answers/questions/964809/unable-to-delete-azure-ad-tenant-even-though-there


    If this is helpful please accept answer.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.