Hello @Oscar Sanchez ,
The error message you are encountering indicates that the service principal required for Microsoft Entra Domain Services is missing from your Azure Active Directory tenant. To resolve this issue, you can check for the missing service principal and recreate it if necessary.
- Check for Missing Service Principals:
In the Microsoft Entra admin center, navigate to Enterprise applications and select All applications. Look for the application ID associated with the service principal that is reported as missing. - Recreate the Service Principal:
If the service principal with the application ID is missing you can recreate it using Microsoft Graph PowerShell. Install the Microsoft Graph PowerShell module if you haven't done so, and run the following command:
If needed, install the Microsoft Graph PowerShell module and import it as follows:Install-Module Microsoft.Graph -Scope CurrentUser
New-MgServicePrincipal -AppId "--give your app id"
If you are still facing the issue Re-register the Microsoft Entra namespace by following this document: Re-register the Microsoft Entra namespace
For additional Information follow: Known issues: Service principal alerts in Microsoft Entra Domain Services , Common errors and troubleshooting steps for Microsoft Entra Domain Services
Hope this information helps. Let us know if you have any additional queries. Happy to assist you further.