Quick Fix – Microsoft Intune Enrollment App Missing

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.

Unknown's avatarAbout Robert Pearman
Robert Pearman is a UK based IT worker bee. He has been working within the IT Industry for what feels like forever. Robert likes Piña colada and getting caught in the rain, he also enjoys writing about Technology like PowerShell or System Automation but not as much as he used to. If you're in trouble, and you can find him, maybe you can ask him a question.

Leave a reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.