Jul 24 2019
01:52 AM
- last edited on
Jan 14 2022
04:38 PM
by
TechCommunityAP
Jul 24 2019
01:52 AM
- last edited on
Jan 14 2022
04:38 PM
by
TechCommunityAP
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 applications that will be moved.
Is there a way to list all of the custom created service principals in a tenant. Or some kind of list of all of the "standard" application IDs (like ones that are used by Microsoft Teams) to be able to already filter out those.
Jul 24 2019 02:43 AM
@DeletedYou could use 'az ad sp list --filter' or 'Get-AzureADServicePrincipal -Filter' to start with.
Optionally 'Get-AzureADServicePrincipal | ? $_.DisplayName -NotContains 'Microsoft''
Jul 25 2019 09:33 AM
@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.