I can't delete a tenant in azure AD

Rafael Augusto Miranda 21 Reputation points
2022-07-10T19:53:20.59+00:00

I created an azure AD tenant as a lab for my study, but now I can't delete a tenant in azure AD. I don't understand the reason for not deleting and what the link with Azure DevOps is

219304-erro1.png
219313-erro2.png

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

Accepted answer
  1. 2022-07-10T21:21:34.483+00:00

    Hello @Rafael Augusto Miranda , the error is caused by the Azure DevOps app service principal still present in your tenant. Please remove it using the following PowerShell script and a work or student (not personal) account:

       Connect-AzureAD -TenantId <TENANT ID>  
       Get-AzureADServicePrincipal -Filter "appId eq '499b84ac-1321-427f-aa17-267ca6975798'"|Remove-AzureADServicePrincipal  
    

    Let us know if this answer was helpful to you or if you need additional assistance. If it was helpful, please remember to accept it and complete the quality survey so that others in the community with similar questions can more easily find a rated solution.


0 additional answers

Sort by: Most helpful

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.