Enterprise applications prevent’s you from deleting Azure AD Tenant

Hi guys,
after taking really long to delete my Azure Test Tenants (Enterprise applications prevented from deleting AD Tenant, but App don’t show up in Azure Portal), I make it easier for you:

Install AzureAD Powershell Modules:

Install-Module -Name AzureAD

Connect to your Azure Active Directory:

Connect-AzureAD -TenantID „yourtenantID“

Delete all your Enterprise Apps

Get-AzureADApplication | Remove-AzureADApplication

Delete all Service Principals

Get-AzureADServicePrincipal

<em>Remove-AzureADServicePrincipal -objectid &lt;ObjectId from above&gt;</em>

Still not working? In one case I had to disable the LinkedIn-Userconnections. You can do this within AzureAD Portal -> Users -> User settings -> LinkedIn account connections -> No.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.

*

code