Azure AD: Cannot delete tenant

WDSpider 1 Reputation point
2020-09-13T00:17:49.547+00:00

In my eagerness to cleanup an unused AD tenant, I deleted a couple of azure functions that had managed identities specified for them. Now, I'm being blocked on being able to delete the AD tenant as these managed identities are still showing up as enterprise applications. I've attempted to delete these now disconnected identities from both the portal and powershell; however the deletions fail with 'Access Denied' errors even though I'm logged in as Global Admin for said AD tenant.

How do I resolve this so I can delete the unused tenant as desired?

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

2 answers

Sort by: Most helpful
  1. T. Kujala 8,706 Reputation points
    2020-09-13T05:38:00.65+00:00

    Hi @WDSpider ,

    Make sure that you have made the all steps provided by the link below.

    https://learn.microsoft.com/en-us/azure/active-directory/users-groups-roles/directory-delete-howto

    0 comments No comments

  2. VipulSparsh-MSFT 16,231 Reputation points Microsoft Employee
    2020-09-13T15:25:36.65+00:00

    @WDSpider Thanks for reaching out. If you say that you are a global admin and still you get a Access Denied error, you need to contact the Microsoft support to be able to delete it.

    https://support.microsoft.com/en-in/help/4051701/global-customer-service-phone-numbers

    We will need to confirm few things in order to help you. Please contact support on this.

    -----------------------------------------------------------------------------------------------------------------

    If the suggested response helped you resolve your issue, please do not forget to accept the response as Answer and "Up-Vote" for the answer that helped you for benefit of the community.