Cannot access my Azure Portal after trying to remove old tenant

Laurent Knafo 56 Reputation points
2022-12-01T07:28:27.39+00:00

Hi,

I tried to delete an old tenant following the instructions here:
https://learn.microsoft.com/en-us/azure/active-directory/enterprise-users/directory-delete-howto#remove-enterprise-apps-that-you-cant-delete

Now, I can't login into my azure portal and get the following error:

265908-image.png

AADSTS7000112: Application 'c44b4083-3bb0-49c1-b47d-974e53cbdf3c'(Azure Portal) is disabled.

I tried this but it neither works:

Get-MsolServicePrincipal -AppPrincipalId c44b4083-3bb0-49c1-b47d-974e53cbdf3c | Set-MsolServicePrincipal -AccountEnabled $true

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,313 questions
{count} vote

Accepted answer
  1. JamesTran-MSFT 36,871 Reputation points Microsoft Employee
    2022-12-07T17:53:38.447+00:00

    @Laurent Knafo
    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'll repost your solution in case you'd like to "Accept" the answer.

    Issue:
    When trying to delete your old Azure AD tenant following our Delete a tenant in Azure Active Directory documentation, and after following the Remove enterprise apps that you can't delete section, you weren't able to login to the Azure Portal and received the AADSTS7000112: Application '.....974e53cbdf3c'(Azure Portal) is disabled error message.

    Solution:
    After many unsuccessful attempts Get-MsolServicePrincipal -AppPrincipalId ....974e53cbdf3c | Set-MsolServicePrincipal -AccountEnabled $true, finally succeeded and you're able to login into the Azure portal.

    Thank you again 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.

2 additional answers

Sort by: Most helpful
  1. Laurent Knafo 56 Reputation points
    2022-12-07T05:31:29.3+00:00

    Hi James,

    Thank you for the answer.

    Finally, after many unsuccesful attempts,

    Get-MsolServicePrincipal -AppPrincipalId c44b4083-3bb0-49c1-b47d-974e53cbdf3c | Set-MsolServicePrincipal -AccountEnabled $true

    finally worked and I'm able to login into the portal.

    1 person found this answer helpful.
    0 comments No comments

  2. Willie Chaffin 5 Reputation points
    2023-09-03T03:38:21.5833333+00:00
    Clarity to Laurent Knafo fix in this article, that fixed my issue too. Thank You, good work.
    
    First, this PS code fixed the issues I was having with unable to login to AZURE at https://azure.microsoft.com/en-us/get-started/azure-portal. When I input my user id, I was not ever offered password input as expected, but the server was throwing this error.
    
    Sorry, but we’re having trouble signing you in.
    AADSTS7000112: Application 'c44b4083-3bb0-49c1-b47d-974e53cbdf3c'(Azure Portal) is disabled.
    
    FIX
    Run as administrator POWER SHELL
    
    Ensure these command run to add azure support to PS.
      uninstall-module AzureAD (if previously installed)
      install-module AzureAD
      install-module AzureADPreview
      install-module MSOnline
      Connect-MsolService (Login to AZURE account)
    
      THE FOLLOWING PS SYNTAX WILL ENABLE THE DISABLED SECURITY PRINCIPAL AND ALLOWED ME TO LOGIN.
    
      Get-MsolServicePrincipal -AppPrincipalId c44b4083-3bb0-49c1-b47d-974e53cbdf3c | Set-MsolServicePrincipal -AccountEnabled $true
    
    Many Thanks for this FIX.
    
    
    
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.