Quick Fix – Microsoft Intune Enrollment App Missing
May 29, 2025 Leave a comment
I am lucky enough to have access to Microsoft CDX (https://cdx.transform.microsoft.com/) which allows you to very quickly create environments for demonstration purposes. Each environment lasts 90 days and there are a variety of options available depending on what sort of content or service you wish to demo.
Whilst the environments are prebuilt to include data, users and settings to support the demonstration, they are essentially brand new M365 tenants and as such some features or settings are missing.
Today I was creating a Conditional Access Policy and found that the Intune Enrollment service principal was missing.
No longer being blessed with a good memory I could not think of the correct command to run, instead I kept finding the very helpful:

For some reason whilst Microsoft indicate what you need to do, they don’t include how to do it, and most websites list the old New-AzureADServicePrincipal cmdlet.
So all that is to say, run the following command when connected to Microsoft Graph PowerShell:
New-MgServicePrincipal -AppId "d4ebce55-015a-49b5-a083-c84d1797ae8c"
Back to your lives citizens.
