question

MBII-3318 avatar image
0 Votes"
MBII-3318 asked iwannoor-5779 answered

Delete tenant - Enterprise Applications

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.


office-teams-windows-itproazure-ad-tenantazure-ad-user-management
image.png (19.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JamesTran-MSFT avatar image
1 Vote"
JamesTran-MSFT answered Anise-2215 published

@MBII-3318
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.


image.png (23.0 KiB)
image.png (33.9 KiB)
· 8
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks James for your reply.

Yes, all enterprise applications have already been set to "Enable for User Sign-In?" --> NO, none are listed as enabled anymore

54024-image.png

I'm assuming the steps to installing the Powershell Modules is through Cloud shell, I have no other link for utilizing Azure as this is only because of the use of MS Teams.

Going through Cloud Shell I get this:

54043-image.png

I do not intend on signing up for a subscription just for the sake of deleting this account. Any other alternatives?

0 Votes 0 ·
image.png (16.1 KiB)
image.png (12.6 KiB)

@MBII-3318
Thank you for the quick response! The PowerShell commands I provided along with the installation of the AzureAD PowerShell modules, were for Azure PowerShell on your desktop and not on the Azure Portal.


Have you tried creating a support request? I was able to create a technical support request without a subscription in my tenant. If you're able to create a support request, you can share the SR number with me and I can monitor and make sure that your issue gets routed to the correct team.

Creating a Support Request with/without a subscriptionID:
53989-image.png



If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue.

0 Votes 0 ·
image.png (28.1 KiB)
image.png (47.9 KiB)

Thanks James.

Did not realize that Windows Powershell existed and could interface with Azure.

So went through the steps for installing the Azure Powershell modules and removed all the Microsoft first party applications listed in the Enterprise Application list.
54637-image.png

It looks like it is still an issue:
54638-image.png

I will go ahead and create a support request to see if that will result in a solution. Thank you for your help.


1 Vote 1 ·
image.png (15.9 KiB)
image.png (23.2 KiB)
Show more comments
JimmyYang-MSFT avatar image
0 Votes"
JimmyYang-MSFT answered MBII-3318 commented

Hi @MBII-3318,

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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the response Jimmy.

Yes, subscription was successfully cancelled as part of the steps taken when following:

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

It was after the subscription showed as successfully cancelled that Enterprise Applications not being deleted became an issue preventing the deletion of tenant.

53976-image.png


0 Votes 0 ·
image.png (22.9 KiB)
MBII-3318 avatar image
7 Votes"
MBII-3318 answered NedkoGeshevNodexio commented

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.

· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @MBII-3318,

Thanks for sharing your solution about it. I have converted your comment to answer and you can mark it as a answer. It will help others who have the same issue can easily find the solution from this thread.

0 Votes 0 ·

@MBII-3318
Thank you for the update! I'm glad that you were able to resolve your issue and thank you for posting your solution, so others in the community experiencing the same issue can easily find this.

0 Votes 0 ·

Thanks for posting. Worked great.

0 Votes 0 ·

Thank you so much to everybody who have contributed to this solution. Had the same issue and this approach worked perfectly fine. Thank you!

0 Votes 0 ·
iwannoor-5779 avatar image
0 Votes"
iwannoor-5779 answered

Thank you so much. Worked for me also.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.