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.
If this is helpful please accept answer.