Unable to delete Azure tenant

C Francis 1 Reputation point
2022-09-26T13:56:28.29+00:00

Hello,

I'm currently unable to delete our tenant due to a license-based subscription that I am unable to locate to mark for deletion. My issue is similar to this previous post (unable-to-delete-azure-active-directory-tenant.html). I attempted to write support but was unable to proceed without a Subscription Id.

Any help would be greatly appreciated.

244830-image.png
244797-image.png
244748-image.png

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

2 answers

Sort by: Most helpful
  1. JimmySalian-2011 41,926 Reputation points
    2022-09-26T14:44:16.937+00:00

    HI,

    There are some rules and pre-reqs before you can delete a Azure Tenant:

    There can be no users in the Azure AD tenant except one global administrator who is to delete the organization. Any other users must be deleted before the organization can be deleted. If users are synchronized from on-premises, then sync must first be turned off, and the users must be deleted in the cloud organization using the Azure portal or Azure PowerShell cmdlets.
    There can be no applications in the organization. Any applications must be removed before the organization can be deleted.
    There can be no multi-factor authentication providers linked to the organization.
    There can be no subscriptions for any Microsoft Online Services such as Microsoft Azure, Microsoft 365, or Azure AD Premium associated with the organization. For example, if a default Azure AD organization was created for you in Azure, you cannot delete this organization if your Azure subscription still relies on this organization for authentication. Similarly, you can’t delete a organization if another user has associated a subscription with it.

    Did you followed the steps and process listed here -:

    directory-delete-howto

    cancel-azure-subscription

    ==
    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


  2. JamesTran-MSFT 36,461 Reputation points Microsoft Employee
    2022-09-29T23:13:54.917+00:00

    @C Francis
    Thank you for your post and I apologize for the delayed response!

    When it comes to deleting your Azure AD tenant and running into the Delete all license-based subscriptions required action. The recommended step would be to create a support request so our support team can find and delete the subscription(s). However, since you don't have any active subscriptions to create a support request, you can try to capture a browser trace. which will show what license needs to be deleted. For more info.
    Note: If you have another tenant with an active Azure Subscription, you can use that tenant to create an Azure Support Request.

    After capturing a browser trace, you should hopefully find an error similar to the below.

    HttpStatusCode: 403  
    Message:  
    "Company .... has non-deleted assigned plans with subscribedPlanId <planId>, and thus subscriptions. Please remove all subscriptions before deletion."  
    

    Now that you have the subscribedPlanId from the error message, you can navigate to Graph Explorer and search for the skuId to see what license-based subscription you're still subscribed to. Once you find out what subscription needs to be deleted, if it's an Azure Subscription, you'll have to follow our Cancel your Azure subscription documentation in order to remove the license-based subscription.

    List subscribedSkus REST API

     #List all of your subscribedSkus:  
     GET https://graph.microsoft.com/v1.0/subscribedSkus  
          
     #List only the skuIds making it easier to sort through:  
     GET https://graph.microsoft.com/v1.0/subscribedSkus?$select=skuId  
    

    246263-image.png

    Additional Links:
    Troubleshoot common Cost Management errors
    No subscriptions found sign in error for Azure portal

    I hope this helps!

    If you have any other questions, 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.