Forum Discussion
Deleted
Jul 24, 2019Only list custom created Service Principals
For a customer I'm currently in the process of analyzing the impact of migrating several subscriptions to another tenant. Therefore we would also need to recreate several service principals linked to...
Joni_Nieminen
Jul 24, 2019Copper Contributor
DeletedYou could use 'az ad sp list --filter' or 'Get-AzureADServicePrincipal -Filter' to start with.
Optionally 'Get-AzureADServicePrincipal | ? $_.DisplayName -NotContains 'Microsoft''
- DeletedJul 25, 2019
Joni_Nieminen This won't correctly identify the custom ones as when other SaaS applications are connected they also show up here.
Service principals don't seem to have a property like "Custom Created" for example to clearly see the difference with the ones from SaaS apps.
If there would be a list with application ID from the major SaaS companies this would also already help to filter the list.