Skip to content

Commit fef9d44

Browse files
authored
Update cannot-delete-directory-azure-portal.md
1 parent 0049dc1 commit fef9d44

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

support/entra/entra-id/dir-dmns-obj/cannot-delete-directory-azure-portal.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@ You may also have to remove additional service principals. Use [Microsoft Graph
9696
1. [Install Microsoft Graph PowerShell](/powershell/microsoftgraph/installation).
9797
2. Run the `Remove-MgServicePrincipal` command to remove all service principals. This command requires at least the `Application.ReadWrite.All` permission. For more information, see [Remove-MgServicePrincipal](/powershell/module/microsoft.graph.applications/remove-mgserviceprincipal?view=graph-powershell-1.0&preserve-view=true).
9898

99-
```powershell
100-
Connect-MgGraph -Scopes "Application.ReadWrite.All" -tenant <tenant-ID>
101-
Get-MgServicePrincipal | ForEach-Object { Remove-MgServicePrincipal -ServicePrincipalId $_.Id }
102-
```
103-
104-
> [!NOTE]
105-
> You may receive an error when you remove some service principals. These principals can't be removed. However, this does not prevent you from deleting your directory. The error that you receive may resemble the following:
106-
>
107-
> Remove-MgServicePrincipal: Specified App Principal ID is Microsoft Internal.
99+
```powershell
100+
Connect-MgGraph -Scopes "Application.ReadWrite.All" -tenant <tenant-ID>
101+
Get-MgServicePrincipal | ForEach-Object { Remove-MgServicePrincipal -ServicePrincipalId $_.Id }
102+
```
103+
104+
> [!NOTE]
105+
> You may receive an error when you remove some service principals. These principals can't be removed. However, this does not prevent you from deleting your directory. The error that you receive may resemble the following:
106+
>
107+
> Remove-MgServicePrincipal: Specified App Principal ID is Microsoft Internal.
108108
109109
## Directory has one or more Multi-Factor Authentication providers
110110

0 commit comments

Comments
 (0)