Hello,
On the EntraID UI, when you go to Home --> Enterprise Applications --> All Applications, there is a default filter called "Application type == Enterprise Application".
When you download the csv from this page, you get an export of all Service Principals, i.e. not just Application type == Enterprise Application.
From this csv, I can see there are multiple different types of applications - Enterprise Application, Managed Identity, Microsoft Application, and there are some Service Principals with no application type (it is blank).
When I use the Get-MgServicePrincipal cmdlet in Powershell (or the http endpoint), there is no field called "applicationType". There is no way to identify the service principals that are Enterprise applications, Microsoft applications, managed identities, or no application type - like it does in the csv export.
Then on the flip of that, when I use New-MgServicePrincipal cmdlet in Powershell (or the http endpoint) to create a new Service Principal, there is no way to set it so that it is a Service Principal that is Enterprise application or Microsoft application, etc.. in fact, when I created a test service principal using the cmdlet, i can see that the applicationType value in the csv export is blank.
Can someone please help me in creating a Service Principals and setting it so that it is application type of Enterprise Application and also how to identify the different application types using the API?