Delete tenant - Enterprise Applications

MBII 46 Reputation points
2021-01-05T14:51:12.777+00:00

Hello,

I'm trying to Delete an MS Teams Free Organization and have been going through the steps outlined in:

https://support.microsoft.com/en-us/office/delete-your-teams-free-organization-2c28cfcf-3fbf-497c-938f-8815a8f6a6b9

Everything had been going smoothly (All Users deleted, admin email and password setup) up until I completed the cancel and delete of applicable subscription. After the required 72 hour delete waiting period, all subscriptions showed up with green checkmarks but Enterprise Applications, formerly a green checkmark, now requires deletion of all Enterprise Applications. All the applications listed are Microsoft First Party Applications. I've tried most of the suggested solutions found in forums such as disabling user sign in for all the MS First Party Apps. There are steps associated to using powershell but I cannot access cloudshell powershell as I do not have an Azure subscription. Looking for alternative solutions as it would not make sense to obtain an Azure subscription just for this purpose.

The MS First party apps in question are as follows:
53568-image.png

Any help would be appreciated.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
8,907 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,101 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. MBII 46 Reputation points
    2021-01-11T21:08:53.2+00:00

    Success. Alex got me through the following steps to remove all the associated applications to clear out the Enterprise Application requirement.

    • On your windows desktop search, Open PowerShell ISE as Administrator
    • Install the needed module, type at promt: Install-Module MSOnline
    • Then type at prompt: 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.

    Enterprise Application should now have a green check mark and you should be able to go through delete tenant

    Thank you for your help as well James.

    8 people found this answer helpful.

  2. JamesTran-MSFT 36,346 Reputation points Microsoft Employee
    2021-01-05T22:30:14.2+00:00

    @MBII
    Thank you for your post!

    For your MS Teams app, can you try disabling the "Enabled for users to sign-in" option to "No", save your changes, and see if that resolves your issue? If not, can you try that for the rest of your apps.
    53733-image.png

    You can also try going to your enterprise apps to see if any are enabled and disable or delete them to see if that helps:
    Enterprise Applications -> All Applications -> "Application Type - Enterprise Application", "Application Status - Enabled"
    53637-image.png

    Lastly, you can always try installing the AzureAD PowerShell modules onto your current PC, get a full list of AzureADServicePrincipals, see if there are any that you created that needs to be removed.

    Connect-AzureAD  
    Get-AzureADServicePrincipal  
    Remove-AzureADServicePrincipal -ObjectId "<ObjectID of Service Principle"  
    

    Referenced link:
    How do I delete an Azure Enterprise Application given the delete button is disabled?

    If you have any other questions or are still having issues deleting your tenant, 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.

    1 person found this answer helpful.

  3. JimmyYang-MSFT 48,121 Reputation points Microsoft Vendor
    2021-01-06T09:48:19.6+00:00

    Hi @MBII ,

    As a supplement, you may try to cancel Teams subscription by sign in Office 365 Admin center by above admin account -> Billings -> Subscriptions -> More actions -> Cancel Trial to see if it can meet your need.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  4. iwan noor 1 Reputation point
    2021-10-15T09:10:19.79+00:00

    Thank you so much. Worked for me also.

    0 comments No comments